selenium - While click event I done on a button, a message button not found is displayed -
here trying button , need click on button. when recorded same in selenium ide , exported selenium rc following code generated, here waiting button displayed , clicking on button. when run piece of code error element not found displayed.
for (int second = 0;; second++) { if (second >= 60) fail("timeout"); try { if selenium.iselementpresent("//div[@id='46abec20-9c67-4a2d-a063-43cb2cb7c8b1']/div[3]/div[2]/button"))) break; } catch (exception e) {e.printstacktrace();} thread.sleep(1000); } selenium.click("//div[@id='46abec20-9c67-4a2d-a063-43cb2cb7c8b1']/div[3]/div[2]/button"); the html code contains button is, save
i know has converted css format, not successful in doing that. can me out in this?
Comments
Post a Comment