ie.text_field(:name, "user_name").set("") # this should activate the
element name="user_name"
sleep 1
ie.send_keys("qwerty")
For some reason it doesn't work in Vista.
Is there any good way to send keystrokes to some specific input
element? Currently I use the next ugly code that does this:
ie.text_field(:name, "user_name").set("") # this should activate the
element name="user_name"
sleep 1
ie.send_keys ("qwerty")
No, there are no error messages, but it writes the send_keys keystroke
into url tab (because it is the current active element).
I tried:
ie.text_field(:name, "name").focus
sleep 1
ie.send_keys("hello")
The result is the same. The word "hello" is displayed in the url bar.