jeudi 5 février 2015

how to check check box and getting whether checkbox is checked in javascript selenium

how to check check box and getting whether checkbox is checked in javascript selenium and node. I tried using .click on the element also tried using native javascript code to do that.but nothing worked for me.



driver.findElement(webdriver.By.id('//*
[@id="myTable"]/table/tbody/tr[1]/td[1]/input')).
then(function(element){
element.click().then(function(){//body goes here

};


I have edited the code in SO itself so there might be braces problem.in actual code its not the braces problem.


any solutions to do so?





Aucun commentaire:

Enregistrer un commentaire