Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-18 Thread Bach Le
Hi Angrez,
   Thanks for clarifying that. Although it does work on watir, do you have any 
idea why it doesn't work on FireWatir? Seems to be that would be nice to have 
both the relative path and the absolute path for the element src. If you'd 
like, i'd be happy to take a look at the code and perhaps come up with a 
solution. Thanks for your hard work.


-Bach
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6078messageID=17320#17320
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-18 Thread Angrez Singh

Hi Bach,

The method for finding the element initially worked for Absolute path but
while implementing it for forms i got into trouble. So its like this:

Whatever HTML you see in Firefox browser will be used for identifying the
element. In case you want it to work both with WATiR and FireWatir you can
use regular expression like this:

ff.image(:src,  /\/Images\/Global\/placeitemsinbag.gif/).click

- Angrez


On 1/18/07, Bach Le [EMAIL PROTECTED] wrote:


Hi Angrez,
  Thanks for clarifying that. Although it does work on watir, do you have
any idea why it doesn't work on FireWatir? Seems to be that would be nice to
have both the relative path and the absolute path for the element src. If
you'd like, i'd be happy to take a look at the code and perhaps come up with
a solution. Thanks for your hard work.


-Bach
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6078messageID=17320#17320
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-17 Thread Bach Le
Hi Angrez,
   I just installed the latest gem, 1.0.1. I ran the same test again the script 
errors at this line:

$FF.button(:src, 
'http://www.anntaylor.com/Images/Global/placeitemsinbag.gif').click

I get the following error:

  1) Error:
test_1(TestCase):
FireWatir::Exception::UnknownObjectException: Unable to locate object, using 
src and http://www.anntaylor.com/Images/Global/placeitemsinbag.gif

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.0.1-mswin32/./MozillaBaseElement.rb:739:in
 `assert_exists'

C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.0.1-mswin32/./MozillaBaseElement.rb:897:in
 `click'
FireWatir_AnnTaylor.rb:18:in `test_1'
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6078messageID=17256#17256
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-15 Thread Vince
 'll be releasing version 1.0 of FireWatir next week, which includes
 starting the FireWatir from the script itself i.e. you don't have start
 Firefox manually and then run the script. This will work for Windows only. 

Next week you say? This week, based on when you said it, even...

 I must say that the last time I went looking into FireWatir, it was not nearly 
at this level. I'll be looking for your release (have gotten on the google 
group).
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6078messageID=17160#17160
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-14 Thread Angrez Singh

Hi Bach,

Did you tried the latest gem that is there on the code.google.com. It has
support for frames. The syntax that you are using is correct. Could you let
me what errors you get or it simply doesn't work?

Also try using the latest gem from code.google.com.

Regards,
Angrez


On 1/12/07, Bach Le [EMAIL PROTECTED] wrote:


Hi Angrez,

here is the test i'm using:

   def test_1
   $FF = Firefox.new
   $FF.goto(www.anntaylor.com)
   $FF.link(:text, 'WEEKEND CASUAL').click
   $FF.image(:index, '25').click
   $FF.form(:name, 'OrderByVariantSimple').select_list(:index,
'1').select_value(/\d+/)
   $FF.form(:name, 'OrderByVariantSimple').select_list(:index,
'2').select_value(/\d+/)
   $FF.form(:name, 'OrderByVariantSimple').select_list(:name,
'OMQuantity0').select_value('1')
   $FF.form(:name, 'OrderByVariantSimple').checkbox(:id,
'AddToBag0Id', 'on').set(set_or_clear=true)
   $FF.button(:src, '
http://www.anntaylor.com/Images/Global/placeitemsinbag.gif').click
   $FF.image(:src, '
http://www.anntaylor.com/Images/Global/BTN_CHECKOUT.gif').click
   $FF.image(:index, '26').click
   end


Try running it. It works correctly in Watir but when it gets to the
following two lines, it breaks in firewatir.

   $FF.form(:name, 'OrderByVariantSimple').checkbox(:id,
'AddToBag0Id', 'on').set(set_or_clear=true)
   $FF.button(:src, '
http://www.anntaylor.com/Images/Global/placeitemsinbag.gif').click

It doesn't select the checkbox in the first line and can't find the image
for the button in the second line.

If it's an error on my part, please let me know what needs to be changed.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6078messageID=17112#17112
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-11 Thread Bach Le
Hi Angrez,
 I did not have any problems installing FireWatir. I followed the 
installation guide at http://code.google.com/p/firewatir/ and it worked like a 
charm. I tried to run a few scripts that I had successfully run with Watir and 
they seemed to break when it got to clicking buttons in forms. Other than that, 
it worked very well. Keep up the good work. I'd also like to help you guys out 
if you need it.


-Bach
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6078messageID=17058#17058
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-11 Thread Angrez Singh

Hi Bach,

Could you please let me know the scripts or the statements that failed?

Regards,
Angrez


On 1/11/07, Bach Le [EMAIL PROTECTED] wrote:


Hi Angrez,
I did not have any problems installing FireWatir. I followed the
installation guide at http://code.google.com/p/firewatir/ and it worked
like a charm. I tried to run a few scripts that I had successfully run with
Watir and they seemed to break when it got to clicking buttons in forms.
Other than that, it worked very well. Keep up the good work. I'd also like
to help you guys out if you need it.


-Bach
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6078messageID=17058#17058
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-10 Thread Angrez Singh

Hi,

Yeah we have been working on improving the performance of FireWatir for last
few months. The performance has been improved significantly and it runs
faster than IE on windows. FireWatir has been tested just on Windows with
different Firefox versions like 1.5, 1.5.0.4, 1.5.0.7 , 2.0 and 2.0.0.1.

I'll be releasing version 1.0 of FireWatir next week, which includes
starting the FireWatir from the script itself i.e. you don't have start
Firefox manually and then run the script. This will work for Windows only.

Though it should work on Linux, Mac its not tested yet.

Also I would like to know any issues/problems that you faced while
installing FireWatir so that we can include the same in the Installation
Guide. Your suggestions are always welcome.

I have created a separate list for FireWatir discussion at google groups:
[EMAIL PROTECTED]

Regards,
Angrez


On 1/10/07, Bach Le [EMAIL PROTECTED]  wrote:


Hello all,
   I recently installed firewatir and modified one of my tests that was
using watir to use FireWatir and the tests ran very fast. I read in some
other posts that firewatir was supposedly slower due to using jssh to send
messages to the browser. When I ran the the unit tests for firewatir, the
tests completed pretty quickly, however, unit tests for IE Watir was a bit
slower in that the browser was less responsive. I was wondering if there
have been advancements recently with firewatir because I didn't notice the
slowness everyone else was talking about. Thanks.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6078messageID=17014#17014
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-10 Thread Chris McMahon

On 1/10/07, Angrez Singh [EMAIL PROTECTED] wrote:


Hi,

Yeah we have been working on improving the performance of FireWatir for
last few months. The performance has been improved significantly and it runs
faster than IE on windows. FireWatir has been tested just on Windows with
different Firefox versions like 1.5, 1.5.0.4, 1.5.0.7 , 2.0 and 2.0.0.1.

I'll be releasing version 1.0 of FireWatir next week, which includes
starting the FireWatir from the script itself i.e. you don't have start
Firefox manually and then run the script. This will work for Windows only.



Wow.  Thanks.  Just thanks.  I can't use it today, but I really appreciate
the work. Someday soon, maybe.

-Chris
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general