on-internet
← Community

How to click on button when input type =Button in Selenium Web driver by using Java

Stack Overflow ·

How to click on button when input type is button , I am using below code, click on button is working but data is not saved. driver.findElement(By.cssSelector("input[type='button'][value='Save']")).click(); driver.findElement(By.cssSelector("input[@type='button'][@value='Save']")).click(); driver.findElement(By.cssSelector("input[@type='button']")).click(); And below is the development code for your reference: <input id="save_btn_expe" class="edit_forms_save_btn" type="button" value="Save">

Comments

Sign in or sign up to comment and upvote.

No comments yet.