Watir : Working in same session of IE



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_field(:name, "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
--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • Re: Address templates in Word 2003
    ... Here is a related problem. ... that opens shows me all the templates except one I created myself. ... on the Commands tab, ...
    (microsoft.public.word.newusers)
  • Re: Watir : Working in same session of IE
    ... it successfully opens a new browser with the ... objective is not to open a new IE with google url but to perform> the set command in the existing browser only. ... "Return a Watir::IE object for an existing IE window. ...
    (comp.lang.ruby)
  • Re: Expedite accept/reject tracked changes
    ... from the All Commands category on the Commands ... This opens the dialog with buttons that do what you want. ... > This post is a suggestion for Microsoft, ... To vote for this suggestion, ...
    (microsoft.public.word.application.errors)
  • Re: Zen Vision:M isnt recognized in WMP 11
    ... Notepad opens it, ... try to install device drivers from the provided CD (device drivers for ... Another suggestion is to ensure the service Windows Driver Foundation ... the batch file to run the commands it contains ...
    (microsoft.public.windowsmedia.player)
  • Re: Watir : Working in same session of IE
    ... it successfully opens a new browser with the correct ... using?I believe when you execute the first two lines of code, ... will open IE with google url. ... new session of the browser. ...
    (comp.lang.ruby)