samedi 2 février 2019

Any different method from the below to make the button click in Selenium

I am not able to click on the button even after using these all methods of selenium.

This is the button code:

<input type="button" value="Set Client" id="btnSubmit" name="btnSubmit" class="ui-button ui-corner-all ui-widget" onclick="submit_To('PossibleClients.asp');">

I tried using class, xpath, name tag.

    driver.findElement(By.id("btnSubmit")).click();
    driver.findElement(By.name("btnSubmit")).click();
    driver.findElement(By.xpath("//*[@id=\"btnSubmit\"]")).click();
    driver.findElement(By.className("ui-button")).click();

Aucun commentaire:

Enregistrer un commentaire