In Selenium webdriver, findelement not finding elements that it used to find -


the following code used work.

            driver.findelement(by.id("username")).sendkeys("real username"); // todo: changeme             driver.findelement(by.id("password")).sendkeys("real password"); // todo: changeme             driver.findelement(by.id("checkbox")).click();             driver.findelement(by.xpath("//input[@type=\"image\"][@value=\"login\"]")).click(); 

it find , fill in username , password. find , click acceptance check box. find , click on login icon , main page appear.

i made modifications lower down in code , @ point stopped working. still finds , fills in username , password. see cursor move bit on page check box doesn't clicked , login icon doesn't clicked. program times out @ next statement waiting main page appear.

even going older version of code didn't work. last 2 lines weren't finding elements.

any ideas or appreciated.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -