Friday, 6 September 2013

selenium.getText finds element but selenium.click does not

selenium.getText finds element but selenium.click does not

I have a link for which I can grab the inner text, but I cannot click it
driver.switchTo().activeElement();
String sTemp = selenium.getText("TabBar:LogoutTabBarLink");
the above works fine and
sTemp = "Log Out";
selenium.click("TabBar:LogoutTabBarLink");
the above fails for: Element is no longer valid

No comments:

Post a Comment