selenium doesn't run when web page is loading -


i running tests have restart server clicking "restart" button. there small text being displayed near show status of server.

before clicking "restart" button, text shows "running" , after clicking it, whole web page keeps loading , text shows "restarting". after page stops loading, server starts running again , text shows "running".

i have write test case checks if text shows "restarting" when "restart" button clicked. unfortunately not able find way make selenium check if text showing "restarting" unable since webpage loading @ time.

can me out showing me way how make selenium run when webpage loading? not getting replies in google search this. great if can me out.

thanks

usually can drive browser webpage still loading. suggest find element "restarting" , keeps checking until 60 secs

in ruby, like

wait = selenium::webdriver::wait.new(:timeout => x) wait.until {driver.find_element(:id => 'restart_word')}

where x number of seconds wait.

after x seconds, timeout.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -