reload page until it has some element using ruby selenium-webdriver
I have such code:
until @driver.find_element(:id, "ctl00_cp_lblC").displayed?
puts "invalid page solution"
enter_page
end
and i need to do some method, until page will have some element with some
id, now it throw's error, that selenium couldn't locate element with this
id. What i do wrong, and how to solve it?
Also maybe it is easier to do with watir?
No comments:
Post a Comment