[wtr-general] Re: firewatir and jssh

2009-05-21 Thread Angrez Singh
Class method for Firefox Attach is there in the Watir trunk. Getting latest
version will solve the problem

- Angrez

On Thu, May 21, 2009 at 12:25 PM, Bill Agee  wrote:

> If you just need to attach to a Firefox window, and don't need the same
> code to work with IE and Firefox, I believe attaching works in 1.6.2 for
> Firefox - just not the same way that IE attaching does.  If memory serves,
> you have to create a FireWatir::Firefox object first, then invoke the
> instance method "attach" on it.
>
> (Whereas with IE "attach" is a class method, and you don't have to create
> an IE object first.)  There may be some more info on the list and wiki about
> this.
>
> Otherwise, if you want to use the same code for IE and Firefox, you can
> build gems of the latest version of Watir from trunk...that is what I wound
> up doing to get the FF attach improvements. :)
>
> Thanks
> Bill
>
>
>
> On Wed, May 20, 2009 at 7:39 PM, George  wrote:
>
>>
>> Hi guys(*shuffles feet*)
>>
>> Don't suppose you can give an ETA on this?  I've been tasked to script
>> something that would require me to attach to a FF browser
>>
>> Thanks!
>>
>> George
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-05-20 Thread Bill Agee
If you just need to attach to a Firefox window, and don't need the same code
to work with IE and Firefox, I believe attaching works in 1.6.2 for Firefox
- just not the same way that IE attaching does.  If memory serves, you have
to create a FireWatir::Firefox object first, then invoke the instance method
"attach" on it.

(Whereas with IE "attach" is a class method, and you don't have to create an
IE object first.)  There may be some more info on the list and wiki about
this.

Otherwise, if you want to use the same code for IE and Firefox, you can
build gems of the latest version of Watir from trunk...that is what I wound
up doing to get the FF attach improvements. :)

Thanks
Bill


On Wed, May 20, 2009 at 7:39 PM, George  wrote:

>
> Hi guys(*shuffles feet*)
>
> Don't suppose you can give an ETA on this?  I've been tasked to script
> something that would require me to attach to a FF browser
>
> Thanks!
>
> George
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-05-20 Thread George

Hi guys(*shuffles feet*)

Don't suppose you can give an ETA on this?  I've been tasked to script
something that would require me to attach to a FF browser

Thanks!

George

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-17 Thread Darin Duphorn
That's good to know.

 

Thanks,

 

Guys

 

 

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
Sent: Friday, April 17, 2009 1:31 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: firewatir and jssh

 

The method Angrez refers to is in trunk, but has not yet been
released.
I think we need to get a new release of Watir/FireWatir out.

oops ... yeah i remember getting code and then building the gem it still
shows 1.6.2 so I was writing all this stuff with confidence :). Thanks
Bret for figuring this out. I think we should release this as soon as
possible.
 
- Angrez


Darin Duphorn wrote:
>
> I tried both of the below, but I'm still getting the message
> "undefined method 'attach' for FireWatir::Firefox:Class.
>
> I'm using Firewatir 1.6.2 on windows XP SP3
>
> * From: * watir-general@googlegroups.com [mailto:
> watir-general@googlegroups.com ] *On Behalf Of *Angrez Singh
> *Sent:* Wednesday, April 15, 2009 12:59 AM
> *To:* watir-general@googlegroups.com
> *Subject:* [wtr-general] Re: firewatir and jssh
>
> I tried the code with system() command and following might be
the
> reason it is not working:
>
> When you try to open firefox using system command it returns
when
> firefox shows up. But it doesn't wait for the default page to
be

> loaded (which is google.com <http://google.com>) so it is not
able to

> find the window with that title.
>
> Workarounds:
> 1. put sleep after system() so that your page gets loaded and
then try
> the code
>
> require 'firewatir'
>
> system("d:\\installations\\Firefox\\firefox.exe -jssh")
> sleep(5)
> $ie = FireWatir::Firefox.attach(:title,"Google")

> $ie.goto("google.com <http://google.com>")

> puts $ie.title
>
>
> 2. set the default page to blank
>
> require 'firewatir'
> system("d:\\installations\\Firefox\\firefox.exe -jssh")
> $ie = FireWatir::Firefox.attach(:title,"")

> $ie.goto("google.com <http://google.com>")

> puts $ie.title
>
>
> Both the code worked for me with Firewatir 1.6.2 on windows XP
SP2
>
> - Angrez
>
> On Wed, Apr 15, 2009 at 1:11 AM, Moochie
 <mailto:dduph...@redbrickhealth.com>> wrote:
>
>
> #open first occurance of FF
> $ie = Firefox.new :attach => true

> #Navigate it to cnn.com <http://cnn.com>
> $ie.goto "cnn.com <http://cnn.com>"

> #This now works (Doesn't Hang)
>
> system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -
> jssh")
>
> #This still fails
>
> $ie = FireWatir::Firefox.attach(:title,"Google")
>
> puts $ie.title
>
> Any suggestions?
>
>
>
>
> On Apr 13, 3:21 pm, bwaybandit  <mailto:lenridge...@gmail.com>> wrote:
> > also on XP/SP2
> >
> > On Apr 13, 3:55 pm, bwaybandit  <mailto:lenridge...@gmail.com>> wrote:
> >
> >
> >
> > > ff - 3.0.5
> > > jssh - 0.9
> >
> > > On Apr 13, 3:31 pm, " Darin Duphorn "
 <mailto:dduph...@redbrickhealth.com>>

> > > wrote:
> >
    > > > > What version of FF are you using?
> >
> > > > Even if I run from irb using system or exec it hangs.
> >
> > > > -Original Message-
> > > > From: watir-general@googlegroups.com
> <mailto:watir-general@googlegroups.com>

> [mailto:watir-general@googlegroups.com

> <mailto:watir-general@googlegroups.com>] On Behalf Of
bwaybandit
> > > > Sent: Monday, April 13, 2009 12:42 PM
> > > > To: Watir General
> > > > Subject: [wtr-general] Re: firewatir and jssh
> >
>
> > > > system("C:\\Program Files\\MozillaFirefox\\firefox.exe
-jssh"). that
> > > > works for me. If that is not working for you, y

[wtr-general] Re: firewatir and jssh

2009-04-16 Thread Angrez Singh
>
> The method Angrez refers to is in trunk, but has not yet been released.
> I think we need to get a new release of Watir/FireWatir out.
>
> oops ... yeah i remember getting code and then building the gem it still
shows 1.6.2 so I was writing all this stuff with confidence :). Thanks Bret
for figuring this out. I think we should release this as soon as possible.

- Angrez

>
> Darin Duphorn wrote:
> >
> > I tried both of the below, but I’m still getting the message
> > “undefined method ‘attach’ for FireWatir::Firefox:Class.
> >
> > I’m using Firewatir 1.6.2 on windows XP SP3
> >
> > * From: * watir-general@googlegroups.com [mailto:
> > watir-general@googlegroups.com ] *On Behalf Of *Angrez Singh
> > *Sent:* Wednesday, April 15, 2009 12:59 AM
> > *To:* watir-general@googlegroups.com
> > *Subject:* [wtr-general] Re: firewatir and jssh
> >
> > I tried the code with system() command and following might be the
> > reason it is not working:
> >
> > When you try to open firefox using system command it returns when
> > firefox shows up. But it doesn't wait for the default page to be
> > loaded (which is google.com <http://google.com>) so it is not able to
> > find the window with that title.
> >
> > Workarounds:
> > 1. put sleep after system() so that your page gets loaded and then try
> > the code
> >
> > require 'firewatir'
> >
> > system("d:\\installations\\Firefox\\firefox.exe -jssh")
> > sleep(5)
> > $ie = FireWatir::Firefox.attach(:title,"Google")
> > $ie.goto("google.com <http://google.com>")
> > puts $ie.title
> >
> >
> > 2. set the default page to blank
> >
> > require 'firewatir'
> > system("d:\\installations\\Firefox\\firefox.exe -jssh")
> > $ie = FireWatir::Firefox.attach(:title,"")
> > $ie.goto("google.com <http://google.com>")
> > puts $ie.title
> >
> >
> > Both the code worked for me with Firewatir 1.6.2 on windows XP SP2
> >
> > - Angrez
> >
> > On Wed, Apr 15, 2009 at 1:11 AM, Moochie  > <mailto:dduph...@redbrickhealth.com>> wrote:
> >
> >
> > #open first occurance of FF
> > $ie = Firefox.new :attach => true
> > #Navigate it to cnn.com <http://cnn.com>
> > $ie.goto "cnn.com <http://cnn.com>"
> > #This now works (Doesn't Hang)
> >
> > system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -
> > jssh")
> >
> > #This still fails
> >
> > $ie = FireWatir::Firefox.attach(:title,"Google")
> >
> > puts $ie.title
> >
> > Any suggestions?
> >
> >
> >
> >
> > On Apr 13, 3:21 pm, bwaybandit  > <mailto:lenridge...@gmail.com>> wrote:
> > > also on XP/SP2
> > >
> > > On Apr 13, 3:55 pm, bwaybandit  > <mailto:lenridge...@gmail.com>> wrote:
> > >
> > >
> > >
> > > > ff - 3.0.5
> > > > jssh - 0.9
> > >
> > > > On Apr 13, 3:31 pm, " Darin Duphorn "  > <mailto:dduph...@redbrickhealth.com>>
> > > > wrote:
> > >
> > > > > What version of FF are you using?
> > >
> > > > > Even if I run from irb using system or exec it hangs.
> > >
> > > > > -Original Message-
> > > > > From: watir-general@googlegroups.com
> > <mailto:watir-general@googlegroups.com>
> > [mailto:watir-general@googlegroups.com
> > <mailto:watir-general@googlegroups.com>] On Behalf Of bwaybandit
> > > > > Sent: Monday, April 13, 2009 12:42 PM
> > > > > To: Watir General
> > > > > Subject: [wtr-general] Re: firewatir and jssh
> > >
> >
> > > > > system("C:\\Program Files\\MozillaFirefox\\firefox.exe -jssh").
> that
> > > > > works for me. If that is not working for you, you might want to try
> > > > > exec BUT having said that, watch out because exec overwrites the
> > > > > existing process, so if you are calling it from another process,
> your
> > > > > originial process will hang.
> > >
> > > > > all my test machines are set up using a perl script and one of the
> > > > > setup processes launches FF. The system command I tried above was
> > from
> > > > > irb and it came back and nothing hung.
> > >
> > > > > On Apr 13, 12:31 pm, "

[wtr-general] Re: firewatir and jssh

2009-04-16 Thread Bret Pettichord

The method Angrez refers to is in trunk, but has not yet been released. 
I think we need to get a new release of Watir/FireWatir out.

Bret

Darin Duphorn wrote:
>
> I tried both of the below, but I’m still getting the message 
> “undefined method ‘attach’ for FireWatir::Firefox:Class.
>
> I’m using Firewatir 1.6.2 on windows XP SP3
>
> * From: * watir-general@googlegroups.com [mailto: 
> watir-general@googlegroups.com ] *On Behalf Of *Angrez Singh
> *Sent:* Wednesday, April 15, 2009 12:59 AM
> *To:* watir-general@googlegroups.com
> *Subject:* [wtr-general] Re: firewatir and jssh
>
> I tried the code with system() command and following might be the 
> reason it is not working:
>
> When you try to open firefox using system command it returns when 
> firefox shows up. But it doesn't wait for the default page to be 
> loaded (which is google.com <http://google.com>) so it is not able to 
> find the window with that title.
>
> Workarounds:
> 1. put sleep after system() so that your page gets loaded and then try 
> the code
>
> require 'firewatir'
>
> system("d:\\installations\\Firefox\\firefox.exe -jssh")
> sleep(5)
> $ie = FireWatir::Firefox.attach(:title,"Google")
> $ie.goto("google.com <http://google.com>")
> puts $ie.title
>
>
> 2. set the default page to blank
>
> require 'firewatir'
> system("d:\\installations\\Firefox\\firefox.exe -jssh")
> $ie = FireWatir::Firefox.attach(:title,"")
> $ie.goto("google.com <http://google.com>")
> puts $ie.title
>
>
> Both the code worked for me with Firewatir 1.6.2 on windows XP SP2
>
> - Angrez
>
> On Wed, Apr 15, 2009 at 1:11 AM, Moochie  <mailto:dduph...@redbrickhealth.com>> wrote:
>
>
> #open first occurance of FF
> $ie = Firefox.new :attach => true
> #Navigate it to cnn.com <http://cnn.com>
> $ie.goto "cnn.com <http://cnn.com>"
> #This now works (Doesn't Hang)
>
> system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -
> jssh")
>
> #This still fails
>
> $ie = FireWatir::Firefox.attach(:title,"Google")
>
> puts $ie.title
>
> Any suggestions?
>
>
>
>
> On Apr 13, 3:21 pm, bwaybandit  <mailto:lenridge...@gmail.com>> wrote:
> > also on XP/SP2
> >
> > On Apr 13, 3:55 pm, bwaybandit  <mailto:lenridge...@gmail.com>> wrote:
> >
> >
> >
> > > ff - 3.0.5
> > > jssh - 0.9
> >
> > > On Apr 13, 3:31 pm, " Darin Duphorn "  <mailto:dduph...@redbrickhealth.com>>
> > > wrote:
> >
> > > > What version of FF are you using?
> >
> > > > Even if I run from irb using system or exec it hangs.
> >
> > > > -Original Message-
> > > > From: watir-general@googlegroups.com 
> <mailto:watir-general@googlegroups.com> 
> [mailto:watir-general@googlegroups.com 
> <mailto:watir-general@googlegroups.com>] On Behalf Of bwaybandit
> > > > Sent: Monday, April 13, 2009 12:42 PM
> > > > To: Watir General
> > > > Subject: [wtr-general] Re: firewatir and jssh
> >
>
> > > > system("C:\\Program Files\\MozillaFirefox\\firefox.exe -jssh"). that
> > > > works for me. If that is not working for you, you might want to try
> > > > exec BUT having said that, watch out because exec overwrites the
> > > > existing process, so if you are calling it from another process, your
> > > > originial process will hang.
> >
> > > > all my test machines are set up using a perl script and one of the
> > > > setup processes launches FF. The system command I tried above was 
> from
> > > > irb and it came back and nothing hung.
> >
> > > > On Apr 13, 12:31 pm, " Darin Duphorn " 
> mailto:dduph...@redbrickhealth.com>>
> > > > wrote:
> > > > > Actually, when I try to run it for the systems it hangs.
> >
> > > > > How are you launching the jssh?
> >
> > > > > -Original Message-
> > > > > From: watir-general@googlegroups.com 
> <mailto:watir-general@googlegroups.com> 
> [mailto:watir-general@googlegroups.com 
> <mailto:watir-general@googlegroups.com>] On Behalf Of bwaybandit
> > > > > Sent: Monday, April 13, 2009 11:18 AM
> > > > > To: Watir General
> > > > > Subject: [wtr-general] Re: firewatir and jssh
> >
>
> > > > > If you use the system command and laun

[wtr-general] Re: firewatir and jssh

2009-04-16 Thread Darin Duphorn
I'm also using Firefox 3.08.

 

 

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Darin Duphorn
Sent: Thursday, April 16, 2009 9:57 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: firewatir and jssh

 

I tried both of the below, but I'm still getting the message "undefined
method 'attach' for FireWatir::Firefox:Class.

 

I'm using Firewatir 1.6.2 on windows XP SP3

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
Sent: Wednesday, April 15, 2009 12:59 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: firewatir and jssh

 

I tried the code with system() command and following might be the reason
it is not working:

When you try to open firefox using system command it returns when
firefox shows up. But it doesn't wait for the default page to be loaded
(which is google.com) so it is not able to find the window with that
title.

Workarounds:
1. put sleep after system() so that your page gets loaded and then try
the code

require 'firewatir'

system("d:\\installations\\Firefox\\firefox.exe -jssh")
sleep(5)
$ie = FireWatir::Firefox.attach(:title,"Google")
$ie.goto("google.com")
puts $ie.title


2. set the default page to blank

require 'firewatir'
system("d:\\installations\\Firefox\\firefox.exe -jssh")
$ie = FireWatir::Firefox.attach(:title,"")
$ie.goto("google.com")
puts $ie.title


Both the code worked for me with Firewatir 1.6.2 on windows XP SP2

- Angrez

On Wed, Apr 15, 2009 at 1:11 AM, Moochie 
wrote:


#open first occurance of FF
$ie = Firefox.new :attach => true
#Navigate it to cnn.com
$ie.goto "cnn.com"
#This now works (Doesn't Hang)

system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -
jssh")

#This still fails

$ie = FireWatir::Firefox.attach(:title,"Google")

puts $ie.title

Any suggestions?




On Apr 13, 3:21 pm, bwaybandit  wrote:
> also on XP/SP2
>
> On Apr 13, 3:55 pm, bwaybandit  wrote:
>
>
>
> > ff - 3.0.5
> > jssh - 0.9
>
> > On Apr 13, 3:31 pm, "Darin Duphorn" 
> > wrote:
>
> > > What version of FF are you using?
>
> > > Even if I run from irb using system or exec it hangs.
>
> > > -----Original Message-
> > > From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > > Sent: Monday, April 13, 2009 12:42 PM
> > > To: Watir General
> > > Subject: [wtr-general] Re: firewatir and jssh
>

> > > system("C:\\Program Files\\MozillaFirefox\\firefox.exe -jssh").
that
> > > works for me. If that is not working for you, you might want to
try
> > > exec BUT having said that, watch out because exec overwrites the
> > > existing process, so if you are calling it from another process,
your
> > > originial process will hang.
>
> > > all my test machines are set up using a perl script and one of the
> > > setup processes launches FF. The system command I tried above was
from
> > > irb and it came back and nothing hung.
>
> > > On Apr 13, 12:31 pm, "Darin Duphorn" 
> > > wrote:
> > > > Actually, when I try to run it for the systems it hangs.
>
> > > > How are you launching the jssh?
>
> > > > -Original Message-
> > > > From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > > > Sent: Monday, April 13, 2009 11:18 AM
> > > > To: Watir General
> > > > Subject: [wtr-general] Re: firewatir and jssh
>

> > > > If you use the system command and launchfirefoxlike that, that
will
> > > > load jssh
>
> > > > Now that you have jssh in memory, you need to launch the page
you want
> > > > toattachto.
>
> > > > require 'watir'
> > > > Watir.options[:browser]='firefox'
> > > > ff=Watir::Browser.new
> > > > ff.goto 'http://www.google.com'
>
> > > > (You already have a reference to the page in 'ff')
>
> > > > If you want another reference to the same page, you would say:
> > > > ff1=ff.attach(:title, /something in the title/)
>
> > > > Now you have a second reference to the page...
>
> > > > On Apr 13, 11:30 am, "Darin Duphorn"

> > > > wrote:
> > > > > How do dou start Jssh?
>

> > > > > I've tried the below, but theattachstill fails.
>
> >

[wtr-general] Re: firewatir and jssh

2009-04-16 Thread Darin Duphorn
I tried both of the below, but I'm still getting the message "undefined
method 'attach' for FireWatir::Firefox:Class.

 

I'm using Firewatir 1.6.2 on windows XP SP3

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
Sent: Wednesday, April 15, 2009 12:59 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: firewatir and jssh

 

I tried the code with system() command and following might be the reason
it is not working:

When you try to open firefox using system command it returns when
firefox shows up. But it doesn't wait for the default page to be loaded
(which is google.com) so it is not able to find the window with that
title.

Workarounds:
1. put sleep after system() so that your page gets loaded and then try
the code

require 'firewatir'

system("d:\\installations\\Firefox\\firefox.exe -jssh")
sleep(5)
$ie = FireWatir::Firefox.attach(:title,"Google")
$ie.goto("google.com")
puts $ie.title


2. set the default page to blank

require 'firewatir'
system("d:\\installations\\Firefox\\firefox.exe -jssh")
$ie = FireWatir::Firefox.attach(:title,"")
$ie.goto("google.com")
puts $ie.title


Both the code worked for me with Firewatir 1.6.2 on windows XP SP2

- Angrez

On Wed, Apr 15, 2009 at 1:11 AM, Moochie 
wrote:


#open first occurance of FF
$ie = Firefox.new :attach => true
#Navigate it to cnn.com
$ie.goto "cnn.com"
#This now works (Doesn't Hang)

system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -
jssh")

#This still fails

$ie = FireWatir::Firefox.attach(:title,"Google")

puts $ie.title

Any suggestions?




On Apr 13, 3:21 pm, bwaybandit  wrote:
> also on XP/SP2
>
> On Apr 13, 3:55 pm, bwaybandit  wrote:
>
>
>
> > ff - 3.0.5
> > jssh - 0.9
>
> > On Apr 13, 3:31 pm, "Darin Duphorn" 
> > wrote:
>
> > > What version of FF are you using?
>
> > > Even if I run from irb using system or exec it hangs.
>
> > > -Original Message-
> > > From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > > Sent: Monday, April 13, 2009 12:42 PM
> > > To: Watir General
> > > Subject: [wtr-general] Re: firewatir and jssh
>

> > > system("C:\\Program Files\\MozillaFirefox\\firefox.exe -jssh").
that
> > > works for me. If that is not working for you, you might want to
try
> > > exec BUT having said that, watch out because exec overwrites the
> > > existing process, so if you are calling it from another process,
your
> > > originial process will hang.
>
> > > all my test machines are set up using a perl script and one of the
> > > setup processes launches FF. The system command I tried above was
from
> > > irb and it came back and nothing hung.
>
> > > On Apr 13, 12:31 pm, "Darin Duphorn" 
> > > wrote:
> > > > Actually, when I try to run it for the systems it hangs.
>
> > > > How are you launching the jssh?
>
> > > > -Original Message-
> > > > From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > > > Sent: Monday, April 13, 2009 11:18 AM
> > > > To: Watir General
> > > > Subject: [wtr-general] Re: firewatir and jssh
>

> > > > If you use the system command and launchfirefoxlike that, that
will
> > > > load jssh
>
> > > > Now that you have jssh in memory, you need to launch the page
you want
> > > > toattachto.
>
> > > > require 'watir'
> > > > Watir.options[:browser]='firefox'
> > > > ff=Watir::Browser.new
> > > > ff.goto 'http://www.google.com'
>
> > > > (You already have a reference to the page in 'ff')
>
> > > > If you want another reference to the same page, you would say:
> > > > ff1=ff.attach(:title, /something in the title/)
>
> > > > Now you have a second reference to the page...
>
> > > > On Apr 13, 11:30 am, "Darin Duphorn"

> > > > wrote:
> > > > > How do dou start Jssh?
>

> > > > > I've tried the below, but theattachstill fails.
>
> > > > > system('C:\Program Files\MozillaFirefox\firefox.exe -jssh')


>
> > > > > $ie = FireWatir::Firefox.attach(:title,"Google")
>
> > > > > Thanks,
>
> > > > > 
>
> > > > > From: wa

[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Angrez Singh
can you post HTML code for this? I'll look into it.

- Angrez

On Wed, Apr 15, 2009 at 7:24 PM, Jeremy Mordkoff  wrote:

>  My thread got hijacked L Can we go back to the original problem? As of
> right now, I cannot use firewatir at all because of this problem…
>
>
>
>
>
> In firebug, I can do
>
>
>
> var results = document.evaluate("//*[name()='vgtile' and @label='Hulu']",
> document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> if (results.snapshotLength >=
> 1)
>
> {
>
> results.snapshotItem(0).oncommand();
>
> console.log("SUCCESS")
>
> }
>
>
>
>
>
> and it works every time. But in firewatir, if I do
>
>
>
> xpath="//*[name()='vgtile' and @label='Hulu']"
>
> query = "browser=window.getBrowser(); document.evaluate(\"#{xpath}\",
> document, null, 7, null).snapshotLength;"
>
> ff.js_eval(query)
>
>
>
> I get zero every time. Any ideas?  I also tried opening a direct
> connection to jssh using putty and sending
>
>
>
> getWindows()[0].getBrowser().contentDocument.evaluate("//*[name()='vgtile'
> and @label='Hulu']", document, null, 7, null).snapshotLength;
>
>
>
> and I get back 0 (zero). So this is looking more and more like a jssh
> problem.  Is there a jssh forum?
>
>
>
> JLM
>
>
>
> PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE since
> XPathResult does not seem to be defined in jssh.
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Željko Filipin
On Wed, Apr 15, 2009 at 16:11, Jeremy Mordkoff  wrote:
> Are there plans to move firewatir to a different technology

I think Bret said in a podcast that they will move to something different.

http://watirpodcast.com/bret-pettichord-on-firewatir/

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Jeremy Mordkoff
That will make it hard for me to commit to using firewatir. Are there plans to 
move firewatir to a different technology or to perhaps incorporate jssh into 
firewater? It seems very strange to me that this much effort could be invested 
in a project when the under-pinnings are unsupported.

 

JLM

 

 

 

From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On 
Behalf Of Željko Filipin
Sent: Wednesday, April 15, 2009 10:03 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: firewatir and jssh revisited

 

On Wed, Apr 15, 2009 at 15:54, Jeremy Mordkoff  wrote:
> Is there a jssh forum?

The last I heard about jssh is that it is abandonware.

Željko




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Jeremy Mordkoff
FYI...Right now, I'm working on windows XP SP3 with Firefox 3.0.8 and
jssh 0.9 on a dell laptop. I also need to get this to work on Vista SP1
and Mac OS 10.5. 

 

My thread got hijacked L Can we go back to the original problem? As of
right now, I cannot use firewatir at all because of this problem...

 

 

In firebug, I can do 

 

var results = document.evaluate("//*[name()='vgtile' and
@label='Hulu']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);

if (results.snapshotLength >= 1)


{ 

results.snapshotItem(0).oncommand();

console.log("SUCCESS")

}

 

 

and it works every time. But in firewatir, if I do 

 

xpath="//*[name()='vgtile' and @label='Hulu']"

query = "browser=window.getBrowser(); document.evaluate(\"#{xpath}\",
document, null, 7, null).snapshotLength;"

ff.js_eval(query)

 

I get zero every time. Any ideas?  I also tried opening a direct
connection to jssh using putty and sending 

 

getWindows()[0].getBrowser().contentDocument.evaluate("//*[name()='vgtil
e' and @label='Hulu']", document, null, 7, null).snapshotLength;

 

and I get back 0 (zero). So this is looking more and more like a jssh
problem.  Is there a jssh forum? 

 

JLM

 

PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE since
XPathResult does not seem to be defined in jssh. 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Željko Filipin
On Wed, Apr 15, 2009 at 15:54, Jeremy Mordkoff  wrote:
> Is there a jssh forum?

The last I heard about jssh is that it is abandonware.

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-14 Thread Angrez Singh
I tried the code with system() command and following might be the reason it
is not working:

When you try to open firefox using system command it returns when firefox
shows up. But it doesn't wait for the default page to be loaded (which is
google.com) so it is not able to find the window with that title.

Workarounds:
1. put sleep after system() so that your page gets loaded and then try the
code
require 'firewatir'

system("d:\\installations\\Firefox\\firefox.exe -jssh")
sleep(5)
$ie = FireWatir::Firefox.attach(:title,"Google")
$ie.goto("google.com")
puts $ie.title

2. set the default page to blank
require 'firewatir'
system("d:\\installations\\Firefox\\firefox.exe -jssh")
$ie = FireWatir::Firefox.attach(:title,"")
$ie.goto("google.com")
puts $ie.title

Both the code worked for me with Firewatir 1.6.2 on windows XP SP2

- Angrez

On Wed, Apr 15, 2009 at 1:11 AM, Moochie wrote:

>
> #open first occurance of FF
> $ie = Firefox.new :attach => true
> #Navigate it to cnn.com
> $ie.goto "cnn.com"
> #This now works (Doesn't Hang)
> system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -
> jssh")
> #This still fails
> $ie = FireWatir::Firefox.attach(:title,"Google")
> puts $ie.title
>
> Any suggestions?
>
>
>
> On Apr 13, 3:21 pm, bwaybandit  wrote:
> > also on XP/SP2
> >
> > On Apr 13, 3:55 pm, bwaybandit  wrote:
> >
> >
> >
> > > ff - 3.0.5
> > > jssh - 0.9
> >
> > > On Apr 13, 3:31 pm, "Darin Duphorn" 
> > > wrote:
> >
> > > > What version of FF are you using?
> >
> > > > Even if I run from irb using system or exec it hangs.
> >
> > > > -Original Message-
> > > > From: watir-general@googlegroups.com [mailto:
> watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > > > Sent: Monday, April 13, 2009 12:42 PM
> > > > To: Watir General
> > > > Subject: [wtr-general] Re: firewatir and jssh
> >
> > > > system("C:\\Program Files\\MozillaFirefox\\firefox.exe -jssh"). that
> > > > works for me. If that is not working for you, you might want to try
> > > > exec BUT having said that, watch out because exec overwrites the
> > > > existing process, so if you are calling it from another process, your
> > > > originial process will hang.
> >
> > > > all my test machines are set up using a perl script and one of the
> > > > setup processes launches FF. The system command I tried above was
> from
> > > > irb and it came back and nothing hung.
> >
> > > > On Apr 13, 12:31 pm, "Darin Duphorn" 
> > > > wrote:
> > > > > Actually, when I try to run it for the systems it hangs.
> >
> > > > > How are you launching the jssh?
> >
> > > > > -Original Message-
> > > > > From: watir-general@googlegroups.com [mailto:
> watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > > > > Sent: Monday, April 13, 2009 11:18 AM
> > > > > To: Watir General
> > > > > Subject: [wtr-general] Re: firewatir and jssh
> >
> > > > > If you use the system command and launchfirefoxlike that, that will
> > > > > load jssh
> >
> > > > > Now that you have jssh in memory, you need to launch the page you
> want
> > > > > toattachto.
> >
> > > > > require 'watir'
> > > > > Watir.options[:browser]='firefox'
> > > > > ff=Watir::Browser.new
> > > > > ff.goto 'http://www.google.com'
> >
> > > > > (You already have a reference to the page in 'ff')
> >
> > > > > If you want another reference to the same page, you would say:
> > > > > ff1=ff.attach(:title, /something in the title/)
> >
> > > > > Now you have a second reference to the page...
> >
> > > > > On Apr 13, 11:30 am, "Darin Duphorn" 
> > > > > wrote:
> > > > > > How do dou start Jssh?
> >
> > > > > > I've tried the below, but theattachstill fails.
> >
> > > > > > system('C:\Program Files\MozillaFirefox\firefox.exe -jssh')
>
> >
> > > > > > $ie = FireWatir::Firefox.attach(:title,"Google")
> >
> > > > > > Thanks,
> >
> > > > > > 
> >
> > &

[wtr-general] Re: firewatir and jssh

2009-04-14 Thread Moochie

#open first occurance of FF
$ie = Firefox.new :attach => true
#Navigate it to cnn.com
$ie.goto "cnn.com"
#This now works (Doesn't Hang)
system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -
jssh")
#This still fails
$ie = FireWatir::Firefox.attach(:title,"Google")
puts $ie.title

Any suggestions?



On Apr 13, 3:21 pm, bwaybandit  wrote:
> also on XP/SP2
>
> On Apr 13, 3:55 pm, bwaybandit  wrote:
>
>
>
> > ff - 3.0.5
> > jssh - 0.9
>
> > On Apr 13, 3:31 pm, "Darin Duphorn" 
> > wrote:
>
> > > What version of FF are you using?
>
> > > Even if I run from irb using system or exec it hangs.
>
> > > -Original Message-
> > > From: watir-general@googlegroups.com 
> > > [mailto:watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > > Sent: Monday, April 13, 2009 12:42 PM
> > > To: Watir General
> > > Subject: [wtr-general] Re: firewatir and jssh
>
> > > system("C:\\Program Files\\MozillaFirefox\\firefox.exe -jssh"). that
> > > works for me. If that is not working for you, you might want to try
> > > exec BUT having said that, watch out because exec overwrites the
> > > existing process, so if you are calling it from another process, your
> > > originial process will hang.
>
> > > all my test machines are set up using a perl script and one of the
> > > setup processes launches FF. The system command I tried above was from
> > > irb and it came back and nothing hung.
>
> > > On Apr 13, 12:31 pm, "Darin Duphorn" 
> > > wrote:
> > > > Actually, when I try to run it for the systems it hangs.
>
> > > > How are you launching the jssh?
>
> > > > -Original Message-
> > > > From: watir-general@googlegroups.com 
> > > > [mailto:watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > > > Sent: Monday, April 13, 2009 11:18 AM
> > > > To: Watir General
> > > > Subject: [wtr-general] Re: firewatir and jssh
>
> > > > If you use the system command and launchfirefoxlike that, that will
> > > > load jssh
>
> > > > Now that you have jssh in memory, you need to launch the page you want
> > > > toattachto.
>
> > > > require 'watir'
> > > > Watir.options[:browser]='firefox'
> > > > ff=Watir::Browser.new
> > > > ff.goto 'http://www.google.com'
>
> > > > (You already have a reference to the page in 'ff')
>
> > > > If you want another reference to the same page, you would say:
> > > > ff1=ff.attach(:title, /something in the title/)
>
> > > > Now you have a second reference to the page...
>
> > > > On Apr 13, 11:30 am, "Darin Duphorn" 
> > > > wrote:
> > > > > How do dou start Jssh?
>
> > > > > I've tried the below, but theattachstill fails.
>
> > > > > system('C:\Program Files\MozillaFirefox\firefox.exe -jssh')        
>
> > > > > $ie = FireWatir::Firefox.attach(:title,"Google")
>
> > > > > Thanks,
>
> > > > > 
>
> > > > > From: watir-general@googlegroups.com
> > > > > [mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
> > > > > Sent: Monday, April 13, 2009 5:55 AM
> > > > > To: watir-general@googlegroups.com
> > > > > Subject: [wtr-general] Re: firewatir and jssh
>
> > > > > I tried the following code with Firewatir 1.6.2 and it worked for me.
>
> > > > > require 'firewatir'
>
> > > > > ff = FireWatir::Firefox.attach(:title,"Google")
>
> > > > > puts ff.html
> > > > > ff.close
>
> > > > > - Angrez
>
> > > > > On Mon, Apr 13, 2009 at 1:31 PM, George 
> > > > > wrote:
>
> > > > > It was my understanding that theattachmethod doesn't work with FF,
> > > > > only with IE.  Can you confirm this?
>
> > > > > On Apr 13, 12:07 am, Angrez Singh  wrote:
>
> > > > > > For attaching to an existingFirefoxinstance you can use
> > > > > > FireWatir::Firefox.attach() method. But you need to make sure the 
> > > > > > JSSh
> > > > > is
> > > > > > running in the existing instance.
>
> > > > > > Regarding XPath i'll look

[wtr-general] Re: firewatir and jssh

2009-04-13 Thread bwaybandit

also on XP/SP2

On Apr 13, 3:55 pm, bwaybandit  wrote:
> ff - 3.0.5
> jssh - 0.9
>
> On Apr 13, 3:31 pm, "Darin Duphorn" 
> wrote:
>
> > What version of FF are you using?
>
> > Even if I run from irb using system or exec it hangs.
>
> > -Original Message-
> > From: watir-general@googlegroups.com 
> > [mailto:watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > Sent: Monday, April 13, 2009 12:42 PM
> > To: Watir General
> > Subject: [wtr-general] Re: firewatir and jssh
>
> > system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -jssh"). that
> > works for me. If that is not working for you, you might want to try
> > exec BUT having said that, watch out because exec overwrites the
> > existing process, so if you are calling it from another process, your
> > originial process will hang.
>
> > all my test machines are set up using a perl script and one of the
> > setup processes launches FF. The system command I tried above was from
> > irb and it came back and nothing hung.
>
> > On Apr 13, 12:31 pm, "Darin Duphorn" 
> > wrote:
> > > Actually, when I try to run it for the systems it hangs.
>
> > > How are you launching the jssh?
>
> > > -Original Message-----
> > > From: watir-general@googlegroups.com 
> > > [mailto:watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > > Sent: Monday, April 13, 2009 11:18 AM
> > > To: Watir General
> > > Subject: [wtr-general] Re: firewatir and jssh
>
> > > If you use the system command and launch firefox like that, that will
> > > load jssh
>
> > > Now that you have jssh in memory, you need to launch the page you want
> > > to attach to.
>
> > > require 'watir'
> > > Watir.options[:browser]='firefox'
> > > ff=Watir::Browser.new
> > > ff.goto 'http://www.google.com'
>
> > > (You already have a reference to the page in 'ff')
>
> > > If you want another reference to the same page, you would say:
> > > ff1=ff.attach(:title, /something in the title/)
>
> > > Now you have a second reference to the page...
>
> > > On Apr 13, 11:30 am, "Darin Duphorn" 
> > > wrote:
> > > > How do dou start Jssh?
>
> > > > I've tried the below, but the attach still fails.
>
> > > > system('C:\Program Files\Mozilla Firefox\firefox.exe -jssh')        
>
> > > > $ie = FireWatir::Firefox.attach(:title,"Google")
>
> > > > Thanks,
>
> > > > 
>
> > > > From: watir-general@googlegroups.com
> > > > [mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
> > > > Sent: Monday, April 13, 2009 5:55 AM
> > > > To: watir-general@googlegroups.com
> > > > Subject: [wtr-general] Re: firewatir and jssh
>
> > > > I tried the following code with Firewatir 1.6.2 and it worked for me.
>
> > > > require 'firewatir'
>
> > > > ff = FireWatir::Firefox.attach(:title,"Google")
>
> > > > puts ff.html
> > > > ff.close
>
> > > > - Angrez
>
> > > > On Mon, Apr 13, 2009 at 1:31 PM, George 
> > > > wrote:
>
> > > > It was my understanding that the attach method doesn't work with FF,
> > > > only with IE.  Can you confirm this?
>
> > > > On Apr 13, 12:07 am, Angrez Singh  wrote:
>
> > > > > For attaching to an existing Firefox instance you can use
> > > > > FireWatir::Firefox.attach() method. But you need to make sure the JSSh
> > > > is
> > > > > running in the existing instance.
>
> > > > > Regarding XPath i'll look into it & get back to you.
>
> > > > > - Angrez
>
> > > > > On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff 
> > > > wrote:
> > > > > >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > > > > > browser, found js_eval and I started munging it.
>
> > > > > > In firebug, I can do
>
> > > > > > var results = document.evaluate("//*[name()='vgtile' and
> > > > @label='Hulu']",
> > > > > > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> > > > > > if (results.snapshotLength >=
> > > > > > 1)
>
> > >

[wtr-general] Re: firewatir and jssh

2009-04-13 Thread bwaybandit

ff - 3.0.5
jssh - 0.9

On Apr 13, 3:31 pm, "Darin Duphorn" 
wrote:
> What version of FF are you using?
>
> Even if I run from irb using system or exec it hangs.
>
> -Original Message-
> From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] 
> On Behalf Of bwaybandit
> Sent: Monday, April 13, 2009 12:42 PM
> To: Watir General
> Subject: [wtr-general] Re: firewatir and jssh
>
> system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -jssh"). that
> works for me. If that is not working for you, you might want to try
> exec BUT having said that, watch out because exec overwrites the
> existing process, so if you are calling it from another process, your
> originial process will hang.
>
> all my test machines are set up using a perl script and one of the
> setup processes launches FF. The system command I tried above was from
> irb and it came back and nothing hung.
>
> On Apr 13, 12:31 pm, "Darin Duphorn" 
> wrote:
> > Actually, when I try to run it for the systems it hangs.
>
> > How are you launching the jssh?
>
> > -Original Message-
> > From: watir-general@googlegroups.com 
> > [mailto:watir-gene...@googlegroups.com] On Behalf Of bwaybandit
> > Sent: Monday, April 13, 2009 11:18 AM
> > To: Watir General
> > Subject: [wtr-general] Re: firewatir and jssh
>
> > If you use the system command and launch firefox like that, that will
> > load jssh
>
> > Now that you have jssh in memory, you need to launch the page you want
> > to attach to.
>
> > require 'watir'
> > Watir.options[:browser]='firefox'
> > ff=Watir::Browser.new
> > ff.goto 'http://www.google.com'
>
> > (You already have a reference to the page in 'ff')
>
> > If you want another reference to the same page, you would say:
> > ff1=ff.attach(:title, /something in the title/)
>
> > Now you have a second reference to the page...
>
> > On Apr 13, 11:30 am, "Darin Duphorn" 
> > wrote:
> > > How do dou start Jssh?
>
> > > I've tried the below, but the attach still fails.
>
> > > system('C:\Program Files\Mozilla Firefox\firefox.exe -jssh')        
>
> > > $ie = FireWatir::Firefox.attach(:title,"Google")
>
> > > Thanks,
>
> > > 
>
> > > From: watir-general@googlegroups.com
> > > [mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
> > > Sent: Monday, April 13, 2009 5:55 AM
> > > To: watir-general@googlegroups.com
> > > Subject: [wtr-general] Re: firewatir and jssh
>
> > > I tried the following code with Firewatir 1.6.2 and it worked for me.
>
> > > require 'firewatir'
>
> > > ff = FireWatir::Firefox.attach(:title,"Google")
>
> > > puts ff.html
> > > ff.close
>
> > > - Angrez
>
> > > On Mon, Apr 13, 2009 at 1:31 PM, George 
> > > wrote:
>
> > > It was my understanding that the attach method doesn't work with FF,
> > > only with IE.  Can you confirm this?
>
> > > On Apr 13, 12:07 am, Angrez Singh  wrote:
>
> > > > For attaching to an existing Firefox instance you can use
> > > > FireWatir::Firefox.attach() method. But you need to make sure the JSSh
> > > is
> > > > running in the existing instance.
>
> > > > Regarding XPath i'll look into it & get back to you.
>
> > > > - Angrez
>
> > > > On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff 
> > > wrote:
> > > > >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > > > > browser, found js_eval and I started munging it.
>
> > > > > In firebug, I can do
>
> > > > > var results = document.evaluate("//*[name()='vgtile' and
> > > @label='Hulu']",
> > > > > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> > > > > if (results.snapshotLength >=
> > > > > 1)
>
> > > > > {
>
> > > > >     results.snapshotItem(0).oncommand();
>
> > > > > }
>
> > > > > console.log("done")
>
> > > > > and it works every time. But in firewatir, if I do
>
> > > > > xpath="//*[name()='vgtile' and @label='Hulu']"
>
> > > > > query = "browser=window.getBrowser();
>
> > > document.evaluate(\"#{x

[wtr-general] Re: firewatir and jssh

2009-04-13 Thread Darin Duphorn

What version of FF are you using?

Even if I run from irb using system or exec it hangs.




-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On 
Behalf Of bwaybandit
Sent: Monday, April 13, 2009 12:42 PM
To: Watir General
Subject: [wtr-general] Re: firewatir and jssh


system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -jssh"). that
works for me. If that is not working for you, you might want to try
exec BUT having said that, watch out because exec overwrites the
existing process, so if you are calling it from another process, your
originial process will hang.

all my test machines are set up using a perl script and one of the
setup processes launches FF. The system command I tried above was from
irb and it came back and nothing hung.

On Apr 13, 12:31 pm, "Darin Duphorn" 
wrote:
> Actually, when I try to run it for the systems it hangs.
>
> How are you launching the jssh?
>
> -Original Message-
> From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] 
> On Behalf Of bwaybandit
> Sent: Monday, April 13, 2009 11:18 AM
> To: Watir General
> Subject: [wtr-general] Re: firewatir and jssh
>
> If you use the system command and launch firefox like that, that will
> load jssh
>
> Now that you have jssh in memory, you need to launch the page you want
> to attach to.
>
> require 'watir'
> Watir.options[:browser]='firefox'
> ff=Watir::Browser.new
> ff.goto 'http://www.google.com'
>
> (You already have a reference to the page in 'ff')
>
> If you want another reference to the same page, you would say:
> ff1=ff.attach(:title, /something in the title/)
>
> Now you have a second reference to the page...
>
> On Apr 13, 11:30 am, "Darin Duphorn" 
> wrote:
> > How do dou start Jssh?
>
> > I've tried the below, but the attach still fails.
>
> > system('C:\Program Files\Mozilla Firefox\firefox.exe -jssh')        
>
> > $ie = FireWatir::Firefox.attach(:title,"Google")
>
> > Thanks,
>
> > ____________________
>
> > From: watir-general@googlegroups.com
> > [mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
> > Sent: Monday, April 13, 2009 5:55 AM
> > To: watir-general@googlegroups.com
> > Subject: [wtr-general] Re: firewatir and jssh
>
> > I tried the following code with Firewatir 1.6.2 and it worked for me.
>
> > require 'firewatir'
>
> > ff = FireWatir::Firefox.attach(:title,"Google")
>
> > puts ff.html
> > ff.close
>
> > - Angrez
>
> > On Mon, Apr 13, 2009 at 1:31 PM, George 
> > wrote:
>
> > It was my understanding that the attach method doesn't work with FF,
> > only with IE.  Can you confirm this?
>
> > On Apr 13, 12:07 am, Angrez Singh  wrote:
>
> > > For attaching to an existing Firefox instance you can use
> > > FireWatir::Firefox.attach() method. But you need to make sure the JSSh
> > is
> > > running in the existing instance.
>
> > > Regarding XPath i'll look into it & get back to you.
>
> > > - Angrez
>
> > > On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff 
> > wrote:
> > > >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > > > browser, found js_eval and I started munging it.
>
> > > > In firebug, I can do
>
> > > > var results = document.evaluate("//*[name()='vgtile' and
> > @label='Hulu']",
> > > > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> > > > if (results.snapshotLength >=
> > > > 1)
>
> > > > {
>
> > > >     results.snapshotItem(0).oncommand();
>
> > > > }
>
> > > > console.log("done")
>
> > > > and it works every time. But in firewatir, if I do
>
> > > > xpath="//*[name()='vgtile' and @label='Hulu']"
>
> > > > query = "browser=window.getBrowser();
>
> > document.evaluate(\"#{xpath}\",
>
> > > > document, null, 7, null).snapshotLength;"
>
> > > > ff.js_eval(query)
>
> > > > I get zero every time. Any ideas?  Is there a jssh forum?
>
> > > > PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE
> > since
> > > > XPathResult does not seem to be defined in jssh.
>
> > > > JLM
>
> > > > Hi all  --- no luck on my first issue, so I have taken a different
> > &

[wtr-general] Re: firewatir and jssh

2009-04-13 Thread bwaybandit

system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -jssh"). that
works for me. If that is not working for you, you might want to try
exec BUT having said that, watch out because exec overwrites the
existing process, so if you are calling it from another process, your
originial process will hang.

all my test machines are set up using a perl script and one of the
setup processes launches FF. The system command I tried above was from
irb and it came back and nothing hung.

On Apr 13, 12:31 pm, "Darin Duphorn" 
wrote:
> Actually, when I try to run it for the systems it hangs.
>
> How are you launching the jssh?
>
> -Original Message-
> From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] 
> On Behalf Of bwaybandit
> Sent: Monday, April 13, 2009 11:18 AM
> To: Watir General
> Subject: [wtr-general] Re: firewatir and jssh
>
> If you use the system command and launch firefox like that, that will
> load jssh
>
> Now that you have jssh in memory, you need to launch the page you want
> to attach to.
>
> require 'watir'
> Watir.options[:browser]='firefox'
> ff=Watir::Browser.new
> ff.goto 'http://www.google.com'
>
> (You already have a reference to the page in 'ff')
>
> If you want another reference to the same page, you would say:
> ff1=ff.attach(:title, /something in the title/)
>
> Now you have a second reference to the page...
>
> On Apr 13, 11:30 am, "Darin Duphorn" 
> wrote:
> > How do dou start Jssh?
>
> > I've tried the below, but the attach still fails.
>
> > system('C:\Program Files\Mozilla Firefox\firefox.exe -jssh')        
>
> > $ie = FireWatir::Firefox.attach(:title,"Google")
>
> > Thanks,
>
> > ____________________
>
> > From: watir-general@googlegroups.com
> > [mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
> > Sent: Monday, April 13, 2009 5:55 AM
> > To: watir-general@googlegroups.com
> > Subject: [wtr-general] Re: firewatir and jssh
>
> > I tried the following code with Firewatir 1.6.2 and it worked for me.
>
> > require 'firewatir'
>
> > ff = FireWatir::Firefox.attach(:title,"Google")
>
> > puts ff.html
> > ff.close
>
> > - Angrez
>
> > On Mon, Apr 13, 2009 at 1:31 PM, George 
> > wrote:
>
> > It was my understanding that the attach method doesn't work with FF,
> > only with IE.  Can you confirm this?
>
> > On Apr 13, 12:07 am, Angrez Singh  wrote:
>
> > > For attaching to an existing Firefox instance you can use
> > > FireWatir::Firefox.attach() method. But you need to make sure the JSSh
> > is
> > > running in the existing instance.
>
> > > Regarding XPath i'll look into it & get back to you.
>
> > > - Angrez
>
> > > On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff 
> > wrote:
> > > >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > > > browser, found js_eval and I started munging it.
>
> > > > In firebug, I can do
>
> > > > var results = document.evaluate("//*[name()='vgtile' and
> > @label='Hulu']",
> > > > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> > > > if (results.snapshotLength >=
> > > > 1)
>
> > > > {
>
> > > >     results.snapshotItem(0).oncommand();
>
> > > > }
>
> > > > console.log("done")
>
> > > > and it works every time. But in firewatir, if I do
>
> > > > xpath="//*[name()='vgtile' and @label='Hulu']"
>
> > > > query = "browser=window.getBrowser();
>
> > document.evaluate(\"#{xpath}\",
>
> > > > document, null, 7, null).snapshotLength;"
>
> > > > ff.js_eval(query)
>
> > > > I get zero every time. Any ideas?  Is there a jssh forum?
>
> > > > PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE
> > since
> > > > XPathResult does not seem to be defined in jssh.
>
> > > > JLM
>
> > > > Hi all  --- no luck on my first issue, so I have taken a different
> > > > approach. I have installed firebug and fireunit and I have the
> > basics
> > > > working in there. Now I want to move some of this over to firewatir.
>
> > > > Is there a way to see all of the jssh interactions when running a
> > firewatir
> > > > script?
>
> > &

[wtr-general] Re: firewatir and jssh

2009-04-13 Thread Darin Duphorn

Actually, when I try to run it for the systems it hangs.

How are you launching the jssh?

-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On 
Behalf Of bwaybandit
Sent: Monday, April 13, 2009 11:18 AM
To: Watir General
Subject: [wtr-general] Re: firewatir and jssh


If you use the system command and launch firefox like that, that will
load jssh

Now that you have jssh in memory, you need to launch the page you want
to attach to.

require 'watir'
Watir.options[:browser]='firefox'
ff=Watir::Browser.new
ff.goto 'http://www.google.com'

(You already have a reference to the page in 'ff')

If you want another reference to the same page, you would say:
ff1=ff.attach(:title, /something in the title/)

Now you have a second reference to the page...

On Apr 13, 11:30 am, "Darin Duphorn" 
wrote:
> How do dou start Jssh?
>
> I've tried the below, but the attach still fails.
>
> system('C:\Program Files\Mozilla Firefox\firefox.exe -jssh')        
>
> $ie = FireWatir::Firefox.attach(:title,"Google")
>
> Thanks,
>
> 
>
> From: watir-general@googlegroups.com
> [mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
> Sent: Monday, April 13, 2009 5:55 AM
> To: watir-general@googlegroups.com
> Subject: [wtr-general] Re: firewatir and jssh
>
> I tried the following code with Firewatir 1.6.2 and it worked for me.
>
> require 'firewatir'
>
> ff = FireWatir::Firefox.attach(:title,"Google")
>
> puts ff.html
> ff.close
>
> - Angrez
>
> On Mon, Apr 13, 2009 at 1:31 PM, George 
> wrote:
>
> It was my understanding that the attach method doesn't work with FF,
> only with IE.  Can you confirm this?
>
> On Apr 13, 12:07 am, Angrez Singh  wrote:
>
>
>
> > For attaching to an existing Firefox instance you can use
> > FireWatir::Firefox.attach() method. But you need to make sure the JSSh
> is
> > running in the existing instance.
>
> > Regarding XPath i'll look into it & get back to you.
>
> > - Angrez
>
> > On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff 
> wrote:
> > >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > > browser, found js_eval and I started munging it.
>
> > > In firebug, I can do
>
> > > var results = document.evaluate("//*[name()='vgtile' and
> @label='Hulu']",
> > > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> > > if (results.snapshotLength >=
> > > 1)
>
> > > {
>
> > >     results.snapshotItem(0).oncommand();
>
> > > }
>
> > > console.log("done")
>
> > > and it works every time. But in firewatir, if I do
>
> > > xpath="//*[name()='vgtile' and @label='Hulu']"
>
> > > query = "browser=window.getBrowser();
>
> document.evaluate(\"#{xpath}\",
>
> > > document, null, 7, null).snapshotLength;"
>
> > > ff.js_eval(query)
>
> > > I get zero every time. Any ideas?  Is there a jssh forum?
>
> > > PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE
> since
> > > XPathResult does not seem to be defined in jssh.
>
> > > JLM
>
> > > Hi all  --- no luck on my first issue, so I have taken a different
> > > approach. I have installed firebug and fireunit and I have the
> basics
> > > working in there. Now I want to move some of this over to firewatir.
>
> > > Is there a way to see all of the jssh interactions when running a
> firewatir
> > > script?
>
> > > Is there a way to send raw javascript commands to jssh (and capture
> the
> > > output) from a firewatir script?
>
> > > Is there a way to attach to an existing ff instance, rather than
> calling
> > > Firefox.new? I still feel like there must be one more doc around
> that I just
> > > can't find. Something that lists all of the methods and attributes
> of the
> > > Firefox class and the supporting classes. Or does ruby have some
> built in
> > > way to browse them?
>
> > > JLM
>
> > > * *
>
> > > *Jeremy Mordkoff*
>
> > > Director, QA, IT & Release
>
> > > *ZeeVee, Inc.*
>
> > > One Monarch Drive | Littleton, MA 01460
>
> > > Office: 978.467.1395 x233 | Fax: 978.467.1404
>
> > > Mobile: 978-257-2183
>
> > > *...@zeevee.com *
>
> > > *www.zeevee.com*
>
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-13 Thread bwaybandit

If you use the system command and launch firefox like that, that will
load jssh

Now that you have jssh in memory, you need to launch the page you want
to attach to.

require 'watir'
Watir.options[:browser]='firefox'
ff=Watir::Browser.new
ff.goto 'http://www.google.com'

(You already have a reference to the page in 'ff')

If you want another reference to the same page, you would say:
ff1=ff.attach(:title, /something in the title/)

Now you have a second reference to the page...

On Apr 13, 11:30 am, "Darin Duphorn" 
wrote:
> How do dou start Jssh?
>
> I've tried the below, but the attach still fails.
>
> system('C:\Program Files\Mozilla Firefox\firefox.exe -jssh')        
>
> $ie = FireWatir::Firefox.attach(:title,"Google")
>
> Thanks,
>
> 
>
> From: watir-general@googlegroups.com
> [mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
> Sent: Monday, April 13, 2009 5:55 AM
> To: watir-general@googlegroups.com
> Subject: [wtr-general] Re: firewatir and jssh
>
> I tried the following code with Firewatir 1.6.2 and it worked for me.
>
> require 'firewatir'
>
> ff = FireWatir::Firefox.attach(:title,"Google")
>
> puts ff.html
> ff.close
>
> - Angrez
>
> On Mon, Apr 13, 2009 at 1:31 PM, George 
> wrote:
>
> It was my understanding that the attach method doesn't work with FF,
> only with IE.  Can you confirm this?
>
> On Apr 13, 12:07 am, Angrez Singh  wrote:
>
>
>
> > For attaching to an existing Firefox instance you can use
> > FireWatir::Firefox.attach() method. But you need to make sure the JSSh
> is
> > running in the existing instance.
>
> > Regarding XPath i'll look into it & get back to you.
>
> > - Angrez
>
> > On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff 
> wrote:
> > >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > > browser, found js_eval and I started munging it.
>
> > > In firebug, I can do
>
> > > var results = document.evaluate("//*[name()='vgtile' and
> @label='Hulu']",
> > > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> > > if (results.snapshotLength >=
> > > 1)
>
> > > {
>
> > >     results.snapshotItem(0).oncommand();
>
> > > }
>
> > > console.log("done")
>
> > > and it works every time. But in firewatir, if I do
>
> > > xpath="//*[name()='vgtile' and @label='Hulu']"
>
> > > query = "browser=window.getBrowser();
>
> document.evaluate(\"#{xpath}\",
>
> > > document, null, 7, null).snapshotLength;"
>
> > > ff.js_eval(query)
>
> > > I get zero every time. Any ideas?  Is there a jssh forum?
>
> > > PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE
> since
> > > XPathResult does not seem to be defined in jssh.
>
> > > JLM
>
> > > Hi all  --- no luck on my first issue, so I have taken a different
> > > approach. I have installed firebug and fireunit and I have the
> basics
> > > working in there. Now I want to move some of this over to firewatir.
>
> > > Is there a way to see all of the jssh interactions when running a
> firewatir
> > > script?
>
> > > Is there a way to send raw javascript commands to jssh (and capture
> the
> > > output) from a firewatir script?
>
> > > Is there a way to attach to an existing ff instance, rather than
> calling
> > > Firefox.new? I still feel like there must be one more doc around
> that I just
> > > can't find. Something that lists all of the methods and attributes
> of the
> > > Firefox class and the supporting classes. Or does ruby have some
> built in
> > > way to browse them?
>
> > > JLM
>
> > > * *
>
> > > *Jeremy Mordkoff*
>
> > > Director, QA, IT & Release
>
> > > *ZeeVee, Inc.*
>
> > > One Monarch Drive | Littleton, MA 01460
>
> > > Office: 978.467.1395 x233 | Fax: 978.467.1404
>
> > > Mobile: 978-257-2183
>
> > > *...@zeevee.com *
>
> > > *www.zeevee.com*
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-13 Thread Darin Duphorn
How do dou start Jssh?

 

I've tried the below, but the attach still fails.

 

system('C:\Program Files\Mozilla Firefox\firefox.exe -jssh')

$ie = FireWatir::Firefox.attach(:title,"Google")

 

Thanks,

 

 

 

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Angrez Singh
Sent: Monday, April 13, 2009 5:55 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: firewatir and jssh

 

I tried the following code with Firewatir 1.6.2 and it worked for me. 

require 'firewatir'

ff = FireWatir::Firefox.attach(:title,"Google")

puts ff.html
ff.close


- Angrez

On Mon, Apr 13, 2009 at 1:31 PM, George 
wrote:


It was my understanding that the attach method doesn't work with FF,
only with IE.  Can you confirm this?




On Apr 13, 12:07 am, Angrez Singh  wrote:
> For attaching to an existing Firefox instance you can use
> FireWatir::Firefox.attach() method. But you need to make sure the JSSh
is
> running in the existing instance.
>
> Regarding XPath i'll look into it & get back to you.
>
> - Angrez
>

> On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff 
wrote:
> >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > browser, found js_eval and I started munging it.
>
> > In firebug, I can do
>
> > var results = document.evaluate("//*[name()='vgtile' and
@label='Hulu']",
> > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> > if (results.snapshotLength >=
> > 1)
>
> > {
>
> > results.snapshotItem(0).oncommand();
>
> > }
>
> > console.log("done")
>
> > and it works every time. But in firewatir, if I do
>
> > xpath="//*[name()='vgtile' and @label='Hulu']"
>
> > query = "browser=window.getBrowser();
document.evaluate(\"#{xpath}\",
> > document, null, 7, null).snapshotLength;"
>
> > ff.js_eval(query)
>
> > I get zero every time. Any ideas?  Is there a jssh forum?
>
> > PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE
since
> > XPathResult does not seem to be defined in jssh.
>
> > JLM
>
> > Hi all  --- no luck on my first issue, so I have taken a different
> > approach. I have installed firebug and fireunit and I have the
basics
> > working in there. Now I want to move some of this over to firewatir.
>
> > Is there a way to see all of the jssh interactions when running a
firewatir
> > script?
>
> > Is there a way to send raw javascript commands to jssh (and capture
the
> > output) from a firewatir script?
>
> > Is there a way to attach to an existing ff instance, rather than
calling
> > Firefox.new? I still feel like there must be one more doc around
that I just
> > can't find. Something that lists all of the methods and attributes
of the
> > Firefox class and the supporting classes. Or does ruby have some
built in
> > way to browse them?
>
> > JLM
>
> > * *
>
> > *Jeremy Mordkoff*
>
> > Director, QA, IT & Release
>
> > *ZeeVee, Inc.*
>
> > One Monarch Drive | Littleton, MA 01460
>
> > Office: 978.467.1395 x233 | Fax: 978.467.1404
>
> > Mobile: 978-257-2183
>

> > *...@zeevee.com *

>
> > *www.zeevee.com*





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-13 Thread bwaybandit

i use putty and that takes care of that problem. The telnet windows
client has that problem you mentioned.

On Apr 13, 6:54 am, Angrez Singh  wrote:
> I tried the following code with Firewatir 1.6.2 and it worked for me.
>
> require 'firewatir'
>
> ff = FireWatir::Firefox.attach(:title,"Google")
> puts ff.html
> ff.close
>
> - Angrez
>
> On Mon, Apr 13, 2009 at 1:31 PM, George  wrote:
>
> > It was my understanding that the attach method doesn't work with FF,
> > only with IE.  Can you confirm this?
>
> > On Apr 13, 12:07 am, Angrez Singh  wrote:
> > > For attaching to an existing Firefox instance you can use
> > > FireWatir::Firefox.attach() method. But you need to make sure the JSSh is
> > > running in the existing instance.
>
> > > Regarding XPath i'll look into it & get back to you.
>
> > > - Angrez
>
> > > On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff 
> > wrote:
> > > >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > > > browser, found js_eval and I started munging it.
>
> > > > In firebug, I can do
>
> > > > var results = document.evaluate("//*[name()='vgtile' and
> > @label='Hulu']",
> > > > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> > > > if (results.snapshotLength >=
> > > > 1)
>
> > > > {
>
> > > >     results.snapshotItem(0).oncommand();
>
> > > > }
>
> > > > console.log("done")
>
> > > > and it works every time. But in firewatir, if I do
>
> > > > xpath="//*[name()='vgtile' and @label='Hulu']"
>
> > > > query = "browser=window.getBrowser(); document.evaluate(\"#{xpath}\",
> > > > document, null, 7, null).snapshotLength;"
>
> > > > ff.js_eval(query)
>
> > > > I get zero every time. Any ideas?  Is there a jssh forum?
>
> > > > PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE since
> > > > XPathResult does not seem to be defined in jssh.
>
> > > > JLM
>
> > > > Hi all  --- no luck on my first issue, so I have taken a different
> > > > approach. I have installed firebug and fireunit and I have the basics
> > > > working in there. Now I want to move some of this over to firewatir.
>
> > > > Is there a way to see all of the jssh interactions when running a
> > firewatir
> > > > script?
>
> > > > Is there a way to send raw javascript commands to jssh (and capture the
> > > > output) from a firewatir script?
>
> > > > Is there a way to attach to an existing ff instance, rather than
> > calling
> > > > Firefox.new? I still feel like there must be one more doc around that I
> > just
> > > > can’t find. Something that lists all of the methods and attributes of
> > the
> > > > Firefox class and the supporting classes. Or does ruby have some built
> > in
> > > > way to browse them?
>
> > > > JLM
>
> > > > * *
>
> > > > *Jeremy Mordkoff*
>
> > > > Director, QA, IT & Release
>
> > > > *ZeeVee, Inc.*
>
> > > > One Monarch Drive | Littleton, MA 01460
>
> > > > Office: 978.467.1395 x233 | Fax: 978.467.1404
>
> > > > Mobile: 978-257-2183
>
> > > > *...@zeevee.com *
>
> > > > *www.zeevee.com*
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-13 Thread Angrez Singh
I tried the following code with Firewatir 1.6.2 and it worked for me.

require 'firewatir'

ff = FireWatir::Firefox.attach(:title,"Google")
puts ff.html
ff.close

- Angrez

On Mon, Apr 13, 2009 at 1:31 PM, George  wrote:

>
> It was my understanding that the attach method doesn't work with FF,
> only with IE.  Can you confirm this?
>
>
>
> On Apr 13, 12:07 am, Angrez Singh  wrote:
> > For attaching to an existing Firefox instance you can use
> > FireWatir::Firefox.attach() method. But you need to make sure the JSSh is
> > running in the existing instance.
> >
> > Regarding XPath i'll look into it & get back to you.
> >
> > - Angrez
> >
> > On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff 
> wrote:
> > >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > > browser, found js_eval and I started munging it.
> >
> > > In firebug, I can do
> >
> > > var results = document.evaluate("//*[name()='vgtile' and
> @label='Hulu']",
> > > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
> >
> > > if (results.snapshotLength >=
> > > 1)
> >
> > > {
> >
> > > results.snapshotItem(0).oncommand();
> >
> > > }
> >
> > > console.log("done")
> >
> > > and it works every time. But in firewatir, if I do
> >
> > > xpath="//*[name()='vgtile' and @label='Hulu']"
> >
> > > query = "browser=window.getBrowser(); document.evaluate(\"#{xpath}\",
> > > document, null, 7, null).snapshotLength;"
> >
> > > ff.js_eval(query)
> >
> > > I get zero every time. Any ideas?  Is there a jssh forum?
> >
> > > PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE since
> > > XPathResult does not seem to be defined in jssh.
> >
> > > JLM
> >
> > > Hi all  --- no luck on my first issue, so I have taken a different
> > > approach. I have installed firebug and fireunit and I have the basics
> > > working in there. Now I want to move some of this over to firewatir.
> >
> > > Is there a way to see all of the jssh interactions when running a
> firewatir
> > > script?
> >
> > > Is there a way to send raw javascript commands to jssh (and capture the
> > > output) from a firewatir script?
> >
> > > Is there a way to attach to an existing ff instance, rather than
> calling
> > > Firefox.new? I still feel like there must be one more doc around that I
> just
> > > can’t find. Something that lists all of the methods and attributes of
> the
> > > Firefox class and the supporting classes. Or does ruby have some built
> in
> > > way to browse them?
> >
> > > JLM
> >
> > > * *
> >
> > > *Jeremy Mordkoff*
> >
> > > Director, QA, IT & Release
> >
> > > *ZeeVee, Inc.*
> >
> > > One Monarch Drive | Littleton, MA 01460
> >
> > > Office: 978.467.1395 x233 | Fax: 978.467.1404
> >
> > > Mobile: 978-257-2183
> >
> > > *...@zeevee.com *
> >
> > > *www.zeevee.com*
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-13 Thread George

It was my understanding that the attach method doesn't work with FF,
only with IE.  Can you confirm this?



On Apr 13, 12:07 am, Angrez Singh  wrote:
> For attaching to an existing Firefox instance you can use
> FireWatir::Firefox.attach() method. But you need to make sure the JSSh is
> running in the existing instance.
>
> Regarding XPath i'll look into it & get back to you.
>
> - Angrez
>
> On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff  wrote:
> >  Okay, I answered some of my own questions. I stumbled on the RDOC
> > browser, found js_eval and I started munging it.
>
> > In firebug, I can do
>
> > var results = document.evaluate("//*[name()='vgtile' and @label='Hulu']",
> > document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> > if (results.snapshotLength >=
> > 1)
>
> > {
>
> >     results.snapshotItem(0).oncommand();
>
> > }
>
> > console.log("done")
>
> > and it works every time. But in firewatir, if I do
>
> > xpath="//*[name()='vgtile' and @label='Hulu']"
>
> > query = "browser=window.getBrowser(); document.evaluate(\"#{xpath}\",
> > document, null, 7, null).snapshotLength;"
>
> > ff.js_eval(query)
>
> > I get zero every time. Any ideas?  Is there a jssh forum?
>
> > PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE since
> > XPathResult does not seem to be defined in jssh.
>
> > JLM
>
> > Hi all  --- no luck on my first issue, so I have taken a different
> > approach. I have installed firebug and fireunit and I have the basics
> > working in there. Now I want to move some of this over to firewatir.
>
> > Is there a way to see all of the jssh interactions when running a firewatir
> > script?
>
> > Is there a way to send raw javascript commands to jssh (and capture the
> > output) from a firewatir script?
>
> > Is there a way to attach to an existing ff instance, rather than calling
> > Firefox.new? I still feel like there must be one more doc around that I just
> > can’t find. Something that lists all of the methods and attributes of the
> > Firefox class and the supporting classes. Or does ruby have some built in
> > way to browse them?
>
> > JLM
>
> > * *
>
> > *Jeremy Mordkoff*
>
> > Director, QA, IT & Release
>
> > *ZeeVee, Inc.*
>
> > One Monarch Drive | Littleton, MA 01460
>
> > Office: 978.467.1395 x233 | Fax: 978.467.1404
>
> > Mobile: 978-257-2183
>
> > *...@zeevee.com *
>
> > *www.zeevee.com*
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-13 Thread Angrez Singh
For attaching to an existing Firefox instance you can use
FireWatir::Firefox.attach() method. But you need to make sure the JSSh is
running in the existing instance.

Regarding XPath i'll look into it & get back to you.

- Angrez

On Fri, Apr 10, 2009 at 8:42 PM, Jeremy Mordkoff  wrote:

>  Okay, I answered some of my own questions. I stumbled on the RDOC
> browser, found js_eval and I started munging it.
>
>
>
> In firebug, I can do
>
>
>
> var results = document.evaluate("//*[name()='vgtile' and @label='Hulu']",
> document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
>
> if (results.snapshotLength >=
> 1)
>
> {
>
> results.snapshotItem(0).oncommand();
>
> }
>
> console.log("done")
>
>
>
> and it works every time. But in firewatir, if I do
>
>
>
> xpath="//*[name()='vgtile' and @label='Hulu']"
>
> query = "browser=window.getBrowser(); document.evaluate(\"#{xpath}\",
> document, null, 7, null).snapshotLength;"
>
>
>
> ff.js_eval(query)
>
>
>
>
>
> I get zero every time. Any ideas?  Is there a jssh forum?
>
>
>
> PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE since
> XPathResult does not seem to be defined in jssh.
>
>
>
> JLM
>
>
>
> Hi all  --- no luck on my first issue, so I have taken a different
> approach. I have installed firebug and fireunit and I have the basics
> working in there. Now I want to move some of this over to firewatir.
>
>
>
> Is there a way to see all of the jssh interactions when running a firewatir
> script?
>
>
>
> Is there a way to send raw javascript commands to jssh (and capture the
> output) from a firewatir script?
>
>
>
> Is there a way to attach to an existing ff instance, rather than calling
> Firefox.new? I still feel like there must be one more doc around that I just
> can’t find. Something that lists all of the methods and attributes of the
> Firefox class and the supporting classes. Or does ruby have some built in
> way to browse them?
>
>
>
> JLM
>
>
>
> * *
>
> *Jeremy Mordkoff*
>
> Director, QA, IT & Release
>
> *ZeeVee, Inc.*
>
> One Monarch Drive | Littleton, MA 01460
>
> Office: 978.467.1395 x233 | Fax: 978.467.1404
>
> Mobile: 978-257-2183
>
> *...@zeevee.com *
>
> *www.zeevee.com *
>
>
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-10 Thread Jeremy Mordkoff

I tried that. It fails that way also and as best as I can tell js_eval just 
sends the command line and receives the output. 

BTW, when I use windows telnet in this fashion, I can't even use basic editing 
keys, like backpasce. Is there a workaround for that? 

I have heard locally that this may be a problem with 'privileged' vs 
'unprivileged' code. I'm still researching the implications.


Jeremy Mordkoff

-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On 
Behalf Of bwaybandit
Sent: Friday, April 10, 2009 1:09 PM
To: Watir General
Subject: [wtr-general] Re: firewatir and jssh


probably is an easy way, but i do it the old fashioned way when i am
debugging using the proxy server. i telnet into the port you started
it on and you have a nice prompt and can do your thing...

On Apr 10, 11:12 am, "Jeremy Mordkoff"  wrote:
> Okay, I answered some of my own questions. I stumbled on the RDOC
> browser, found js_eval and I started munging it.
>
> In firebug, I can do
>
> var results = document.evaluate("//*[name()='vgtile' and
> @label='Hulu']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
> null);
>
> if (results.snapshotLength >= 1)
>
> {
>
>     results.snapshotItem(0).oncommand();
>
> }
>
> console.log("done")
>
> and it works every time. But in firewatir, if I do
>
> xpath="//*[name()='vgtile' and @label='Hulu']"
>
> query = "browser=window.getBrowser(); document.evaluate(\"#{xpath}\",
> document, null, 7, null).snapshotLength;"
>
> ff.js_eval(query)
>
> I get zero every time. Any ideas?  Is there a jssh forum?
>
> PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE since
> XPathResult does not seem to be defined in jssh.
>
> JLM
>
> Hi all  --- no luck on my first issue, so I have taken a different
> approach. I have installed firebug and fireunit and I have the basics
> working in there. Now I want to move some of this over to firewatir.
>
> Is there a way to see all of the jssh interactions when running a
> firewatir script?
>
> Is there a way to send raw javascript commands to jssh (and capture the
> output) from a firewatir script?
>
> Is there a way to attach to an existing ff instance, rather than calling
> Firefox.new? I still feel like there must be one more doc around that I
> just can't find. Something that lists all of the methods and attributes
> of the Firefox class and the supporting classes. Or does ruby have some
> built in way to browse them?
>
> JLM
>
> Jeremy Mordkoff
>
> Director, QA, IT & Release
>
> ZeeVee, Inc.
>
> One Monarch Drive | Littleton, MA 01460
>
> Office: 978.467.1395 x233 | Fax: 978.467.1404
>
> Mobile: 978-257-2183
>
> j...@zeevee.com <mailto:j...@zeevee.com>  
>
> www.zeevee.com<http://www.zeevee.com/>  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-10 Thread bwaybandit

probably is an easy way, but i do it the old fashioned way when i am
debugging using the proxy server. i telnet into the port you started
it on and you have a nice prompt and can do your thing...

On Apr 10, 11:12 am, "Jeremy Mordkoff"  wrote:
> Okay, I answered some of my own questions. I stumbled on the RDOC
> browser, found js_eval and I started munging it.
>
> In firebug, I can do
>
> var results = document.evaluate("//*[name()='vgtile' and
> @label='Hulu']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
> null);
>
> if (results.snapshotLength >= 1)
>
> {
>
>     results.snapshotItem(0).oncommand();
>
> }
>
> console.log("done")
>
> and it works every time. But in firewatir, if I do
>
> xpath="//*[name()='vgtile' and @label='Hulu']"
>
> query = "browser=window.getBrowser(); document.evaluate(\"#{xpath}\",
> document, null, 7, null).snapshotLength;"
>
> ff.js_eval(query)
>
> I get zero every time. Any ideas?  Is there a jssh forum?
>
> PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE since
> XPathResult does not seem to be defined in jssh.
>
> JLM
>
> Hi all  --- no luck on my first issue, so I have taken a different
> approach. I have installed firebug and fireunit and I have the basics
> working in there. Now I want to move some of this over to firewatir.
>
> Is there a way to see all of the jssh interactions when running a
> firewatir script?
>
> Is there a way to send raw javascript commands to jssh (and capture the
> output) from a firewatir script?
>
> Is there a way to attach to an existing ff instance, rather than calling
> Firefox.new? I still feel like there must be one more doc around that I
> just can't find. Something that lists all of the methods and attributes
> of the Firefox class and the supporting classes. Or does ruby have some
> built in way to browse them?
>
> JLM
>
> Jeremy Mordkoff
>
> Director, QA, IT & Release
>
> ZeeVee, Inc.
>
> One Monarch Drive | Littleton, MA 01460
>
> Office: 978.467.1395 x233 | Fax: 978.467.1404
>
> Mobile: 978-257-2183
>
> j...@zeevee.com   
>
> www.zeevee.com  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firewatir and jssh

2009-04-10 Thread Jeremy Mordkoff
Okay, I answered some of my own questions. I stumbled on the RDOC
browser, found js_eval and I started munging it. 

 

In firebug, I can do 

 

var results = document.evaluate("//*[name()='vgtile' and
@label='Hulu']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);

if (results.snapshotLength >= 1)


{

results.snapshotItem(0).oncommand();

}

console.log("done")

 

and it works every time. But in firewatir, if I do 

 

xpath="//*[name()='vgtile' and @label='Hulu']"

query = "browser=window.getBrowser(); document.evaluate(\"#{xpath}\",
document, null, 7, null).snapshotLength;"

 

ff.js_eval(query)

 

 

I get zero every time. Any ideas?  Is there a jssh forum? 

 

PS. The 7 is the value of XPathResult.ORDERED_NODE_SNAPSHOT_TYPE since
XPathResult does not seem to be defined in jssh. 

 

JLM



 

Hi all  --- no luck on my first issue, so I have taken a different
approach. I have installed firebug and fireunit and I have the basics
working in there. Now I want to move some of this over to firewatir. 

 

Is there a way to see all of the jssh interactions when running a
firewatir script? 

 

Is there a way to send raw javascript commands to jssh (and capture the
output) from a firewatir script? 

 

Is there a way to attach to an existing ff instance, rather than calling
Firefox.new? I still feel like there must be one more doc around that I
just can't find. Something that lists all of the methods and attributes
of the Firefox class and the supporting classes. Or does ruby have some
built in way to browse them? 

 

JLM

 

 

Jeremy Mordkoff

Director, QA, IT & Release

ZeeVee, Inc.

One Monarch Drive | Littleton, MA 01460

Office: 978.467.1395 x233 | Fax: 978.467.1404

Mobile: 978-257-2183

j...@zeevee.com   

www.zeevee.com   

 



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---