I am a bit frustrated as this used to be working few years ago. I try again as I intend to try to use back watir and I have no idea why starting with the second element scripts are failing on the watir example
c:\watir>ruby watir.rb
This code has slept for the duration of the default timeout waiting for an Eleme
nt to exist. If the test is still passing, consider using Element#exists? instea
d of rescuing UnknownObjectException
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elements/element.rb
:507:in `rescue in wait_for_exists': timed out after 30 seconds, waiting for {:n
ame=>"entry.1000001", :tag_name=>"input"} to be located (Watir::Exception::Unkno
wnObjectException)
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:497:in `wait_for_exists'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:515:in `wait_for_present'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:533:in `wait_for_enabled'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:545:in `wait_for_writable'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/elemen
ts/element.rb:656:in `element_call'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.1.0/lib/watir/user_e
ditable.rb:11:in `set'
from watir.rb:18:in `<main>'
It fails if I remove the sleep as well.
From the example only the first text field works.
Please advise.