A
Anukul Singhal
Hi,
Actually am stuck in a problem.
I am performing the following set of commands:
require 'watir'
ie = Watir::IE.new
ie.goto("http://www.google.com")
When I execute, it successfully opens a new browser with the correct
google url.
Now, in this code, I simply want to add:
ie.text_fieldname, "q").set 'roger federer'
If I append the above line to the above code, it will open a new session
of IE and will perform the operation of setting the text box too, but my
objective is not to open a new IE with google url but to perform the set
command in the existing browser only.
Can anyone help how to do that?
Thanks,
Anukul
Actually am stuck in a problem.
I am performing the following set of commands:
require 'watir'
ie = Watir::IE.new
ie.goto("http://www.google.com")
When I execute, it successfully opens a new browser with the correct
google url.
Now, in this code, I simply want to add:
ie.text_fieldname, "q").set 'roger federer'
If I append the above line to the above code, it will open a new session
of IE and will perform the operation of setting the text box too, but my
objective is not to open a new IE with google url but to perform the set
command in the existing browser only.
Can anyone help how to do that?
Thanks,
Anukul