Joel Pearson wrote in post #1093536:
> Refresh a page:
> driver.get driver.url
>
> Waiting:
>
> http://seleniumhq.org/docs/04_webdriver_advanced.jsp#explicit-and-implicit-waits
>
> Something like this:
> _____________________________
>
> tried = false
>
> begin
>
>   driver.get "https://example.com/"
>   wait = Selenium::WebDriver::Wait.new(:timeout => 10) # seconds
>   element = wait.until { driver.find_element(:name => "username") }
>   element.send_keys "*****"
>   element = driver.find_element :name => "password"
>   element.send_keys "*****"
>   element.submit

Yes,But the username will never come,unless the intermediate page not 
getting refreshed. But it is happening 4 times out of 10.

is "driver.url" fetching the "current url" or what?

-- 
Posted via http://www.ruby-forum.com/.