From: "Peña, Botp" Date: 2008-04-30T19:30:42+09:00 Subject: Re: Watir : Working in same session of IE From: Anukul Singhal [mailto:anukul.singhal@gmail.com] # Are you trying this out in Scite or is their something else # that you are # using?I believe when you execute (F5) the first two lines of code, it # will open IE with google url. # Now, with the google url already open, I want to update the # code in such # a way that I can enter the text in the search field without opening a # new session of the browser. So, if I just add the 3rd line of my code # and execute, it would definitely open a new instance of IE (since it # will execute ie = Watir::IE.new again). I want to avoid that, hoping # that there must be a logic between the first 2 lines and the 3rd line # which avoids opening a new browser. nope. scite will reexecute your code fr start. try irb, it will execute your code per line you enter. # Another idea would be to check if there is an existing instance of IE # already present and then we can just do ie.goto(url). never tried that. that would mean searching for an ie instance and then attaching an ole object on it. but i do not know the criteria since there could be many ie instances open and many google pages open. wc one then? but that would be cool though. kind regards -botp