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
Post a Comment