korimo / firewatir

Automatically exported from code.google.com/p/firewatir
0 stars 0 forks source link

FireWatir 1.1 now launches new browser on linux/darwin #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Linux behaviour has changed to now launch a new firefox instance/window on
FireWatir::initialize. 

Can contructor be changed to accept a parameter to prevent this and require
the user to have launched firefox manually? I have a script that
recursively parses files in a directory and this is now quite resource
intensive with all of these firefox instances.

Original issue reported on code.google.com by glenn.gi...@gmail.com on 14 Oct 2007 at 3:53

GoogleCodeExporter commented 9 years ago
So what I understood is, first you process/parse the files and then start 
Firefox
manually?
You can use waitTime parameter to actually wait till processing is over. Or you 
can
do the processing first and then create new instance of Firefox. I may be wrong 
if I
am missing something completely here.

Original comment by ang...@gmail.com on 15 Oct 2007 at 6:55

GoogleCodeExporter commented 9 years ago
The problem is:

@f = FireWatir::Firefox.new

calls `firefox -jssh`

Which will open a new instance of firefox. Previously (at least on linux 
looking at the old code) this wasn't 
executed and the user was responsible for making sure firefox was already open 
with jssh enabled. I'd prefer 
to be able to enforce the old method as a parameter then I can ensure only one 
firefox window is ever open. 
`firefox -jssh` always opens a new window.

Original comment by glenn.gi...@gmail.com on 15 Oct 2007 at 9:36

GoogleCodeExporter commented 9 years ago
You can use attach() to connect to an already running instance.
Description:

  Used for attaching pop up window to an existing Firefox window, either by url or title.
  ff.attach(:url, 'http://www.google.com')
  ff.attach(:title, 'Google')

Original comment by ghimus on 22 Oct 2007 at 10:07

GoogleCodeExporter commented 9 years ago
Hi Ghimus,
I am not sure if what you saying works with Firewatir. As far as I know 
Firewatir
can't connect to an existing Firefox instance, which is different from a window 
pop up.

Original comment by ang...@gmail.com on 23 Oct 2007 at 6:11

GoogleCodeExporter commented 9 years ago
moved to http://jira.openqa.org/browse/WTR-384

Original comment by zeljko.f...@gmail.com on 4 Nov 2009 at 9:49

GoogleCodeExporter commented 9 years ago
Ticket moved to http://jira.openqa.org/browse/WTR. Please see comments for
the exact URL.

Original comment by zeljko.f...@gmail.com on 20 Nov 2009 at 10:39