Re: Watir : Working in same session of IE
- From: Peña, Botp <botp@xxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 05:30:42 -0500
From: Anukul Singhal [mailto:anukul.singhal@xxxxxxxxx]
# 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
- References:
- Watir : Working in same session of IE
- From: Anukul Singhal
- Re: Watir : Working in same session of IE
- From: Peña, Botp
- Re: Watir : Working in same session of IE
- From: Anukul Singhal
- Watir : Working in same session of IE
- Prev by Date: Re: Question on Procs
- Next by Date: Re: What is attr_accessor?
- Previous by thread: Re: Watir : Working in same session of IE
- Next by thread: Re: Watir : Working in same session of IE
- Index(es):
Relevant Pages
|