Hi,
I am new to Watir webdriver and trying to write a small script which
gives input to text field.
Sample Code:
require ‘rubygems’
require ‘Watir-webdriver’
browser = Watir::Browser.new :chrome
browser.goto(“https://XXX.com”)
sleep 5
browser.text_field(:id => ‘uname’).set(“user1”)
If i execute with above code getting an error like “`assert_exists’:
unable to locate element, using {:id=>“uname”, :tag_name=>“input or
textarea”, :type=>”(any text type)“}
(Watir::Exception::UnknownObjectException)”
Please suggest…
Note that same pattern code(same syntax) is working fine with other
website. But for my required website not working.