[wtr-general] Re: Reading HTML objects CSS properties in Firefox

2010-01-13 Thread basu

I tried something like this , it works for me :)

 class FireWatir::Element

  def css_color()
assert_exists
 jssh_command = var obj = #{element_object}; var val =
document.defaultView.getComputedStyle(obj,null).getPropertyValue
('color');val;
jssh_socket.send(#{jssh_command}\n, 0)
 read_socket()
  end

end

On Jan 12, 6:19 pm, basu bas.go...@gmail.com wrote:
 Hi,
 For IE , i can retrieve CSS properties of a HTML object say link as
 link.document.CurrentStyle.color , is there any way to read CSS
 properties in Firefox?

 Thanks
 - Basu
-- 
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: Getting the text inside the div

2010-01-13 Thread John Kolokotronis
Try  ie.div(:class, testing_1).html instead...

Regards,

John

On Jan 13, 10:20 am, Soori sure...@gmail.com wrote:
 All

 I am capturing the the text inside a div as mentioned below,

 divdiv class=testing_1
 divtestdata1/div
 divtest data2/div
 divtest:data3/div/div

 ie.div(:class, testing_1).text  captures the information on a single
 line...

 I would like to print it as shown on the html above.

 I got stuck in this.Please show me a way to proceed.

 Thanks in advance,

 /Soori
-- 
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: Getting the text inside the div

2010-01-13 Thread Soori
Hi John,

.html will return the html with DIV,etc,

I would like to get only the text inside the div .

Thanks,
Soori
On Jan 13, 3:30 pm, John Kolokotronis johnj...@gmail.com wrote:
 Try  ie.div(:class, testing_1).html instead...

 Regards,

 John

 On Jan 13, 10:20 am, Soori sure...@gmail.com wrote:

  All

  I am capturing the the text inside a div as mentioned below,

  divdiv class=testing_1
  divtestdata1/div
  divtest data2/div
  divtest:data3/div/div

  ie.div(:class, testing_1).text  captures the information on a single
  line...

  I would like to print it as shown on the html above.

  I got stuck in this.Please show me a way to proceed.

  Thanks in advance,

  /Soori
-- 
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

Re: [wtr-general] Re: Getting the text inside the div

2010-01-13 Thread Željko Filipin
Something like this should work (not tested):

browser.div(:class, testing_1).divs.each {|div| puts div.text}

Željko
--
watir.com - community manager
watirpodcast.com - host
-- 
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: Getting the text inside the div

2010-01-13 Thread John Kolokotronis
I thought you wanted all the text, with the div tags? Are you trying
to get testdata1, test data2, etc then?

If so, they are in another div, not the testing_1 class, so I'd use
xpath for each one, like this:

ie.element_by_xpath(//d...@class = 'testing_1']/div[1]).text # and
div[2], div[3], etc.

On Jan 13, 11:11 am, Soori sure...@gmail.com wrote:
 Hi John,

 .html will return the html with DIV,etc,

 I would like to get only the text inside the div .

 Thanks,
 Soori
 On Jan 13, 3:30 pm, John Kolokotronis johnj...@gmail.com wrote:

  Try  ie.div(:class, testing_1).html instead...

  Regards,

  John

  On Jan 13, 10:20 am, Soori sure...@gmail.com wrote:

   All

   I am capturing the the text inside a div as mentioned below,

   divdiv class=testing_1
   divtestdata1/div
   divtest data2/div
   divtest:data3/div/div

   ie.div(:class, testing_1).text  captures the information on a single
   line...

   I would like to print it as shown on the html above.

   I got stuck in this.Please show me a way to proceed.

   Thanks in advance,

   /Soori
-- 
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

Re: [wtr-general] Re: Getting the text inside the div

2010-01-13 Thread Prajakta Jadhav
Following should serve your purpose:

ie.div(:class, testing_1).divs.each do |dv|
puts dv.text


-Prajakta



On Wed, Jan 13, 2010 at 4:41 PM, Soori sure...@gmail.com wrote:

 Hi John,

 .html will return the html with DIV,etc,

 I would like to get only the text inside the div .

 Thanks,
 Soori
 On Jan 13, 3:30 pm, John Kolokotronis johnj...@gmail.com wrote:
  Try  ie.div(:class, testing_1).html instead...
 
  Regards,
 
  John
 
  On Jan 13, 10:20 am, Soori sure...@gmail.com wrote:
 
   All
 
   I am capturing the the text inside a div as mentioned below,
 
   divdiv class=testing_1
   divtestdata1/div
   divtest data2/div
   divtest:data3/div/div
 
   ie.div(:class, testing_1).text  captures the information on a single
   line...
 
   I would like to print it as shown on the html above.
 
   I got stuck in this.Please show me a way to proceed.
 
   Thanks in advance,
 
   /Soori

 --
 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

-- 
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

Re: [wtr-general] Re: Reading HTML objects CSS properties in Firefox

2010-01-13 Thread Angrez Singh
Wonderful .. can you create a patch and send to it? Or you can create a JIRA
ticket for the same and send this code in comment. will add this to
FireWatir.

Thanks,
Angrez

On Wed, Jan 13, 2010 at 3:09 PM, basu bas.go...@gmail.com wrote:


 I tried something like this , it works for me :)

  class FireWatir::Element

  def css_color()
assert_exists
 jssh_command = var obj = #{element_object}; var val =
 document.defaultView.getComputedStyle(obj,null).getPropertyValue
 ('color');val;
jssh_socket.send(#{jssh_command}\n, 0)
 read_socket()
  end

 end

 On Jan 12, 6:19 pm, basu bas.go...@gmail.com wrote:
  Hi,
  For IE , i can retrieve CSS properties of a HTML object say link as
  link.document.CurrentStyle.color , is there any way to read CSS
  properties in Firefox?
 
  Thanks
  - Basu

 --
 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

-- 
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

Re: [wtr-general] watir cheat sheet

2010-01-13 Thread Željko Filipin
On Wed, Jan 13, 2010 at 5:42 AM, marekj marekj@gmail.com wrote:
 $ gem install cheat

Mac (and probably Linux) users, do not forget you need sudo or `cheat watir`
will not work (at least it did not work for me until I used sudo):

$ sudo gem install cheat

Thanks Marek, I am glad to see you more and more involved in Watir. :)

Željko
--
watir.com - community manager
watirpodcast.com - host
-- 
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] Installation issue

2010-01-13 Thread Prashant
I am getting error message while installing watir -v 1.6.2 even i
tried using gem install firewatir -v 1.6.2 it gets the same resule



C:\gem install watir -v 1.6.2
ERROR:  While executing gem ... (Gem::GemNotFoundException)
Could not find watir (= 1.6.2) in any repository

C:\gem install firewatir -v 1.6.2
ERROR:  While executing gem ... (Gem::GemNotFoundException)
Could not find firewatir (= 1.6.2) in any repository
-- 
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: Installation issue

2010-01-13 Thread Prashant
i got the solution run the below patch and i am able to install waitr
rubygems-1.3.5

On Jan 13, 5:23 pm, Prashant prashantshirbh...@gmail.com wrote:
 I am getting error message while installing watir -v 1.6.2 even i
 tried using gem install firewatir -v 1.6.2 it gets the same resule

 C:\gem install watir -v 1.6.2
 ERROR:  While executing gem ... (Gem::GemNotFoundException)
     Could not find watir (= 1.6.2) in any repository

 C:\gem install firewatir -v 1.6.2
 ERROR:  While executing gem ... (Gem::GemNotFoundException)
     Could not find firewatir (= 1.6.2) in any repository
-- 
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] Error when going back to Watir 1.6.2 from Watir 1.6.5

2010-01-13 Thread juanmaflyer
Hi! I will be short.

I have been testing long time with watir 1.6.2. Yesterday I decided to
switch to Watir 1.6.5 and some scripts didn't work as expected...I
don't blame the problem on Watir, but just in case, i decided to
uninstall watir 1.6.5 and install 1.6.2 again. Perfect!

After that, when running a very simple script the following error
appeared:

watir/ie (LoadError)

The script i'm running is the following:

1.  require 'watir'
2.  ie2 = IE.new

The error raise on line 2.
-- 
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

Re: [wtr-general] Error when going back to Watir 1.6.2 from Watir 1.6.5

2010-01-13 Thread Željko Filipin
This is a known bug, please search this group and
http://jira.openqa.org/browse/WTR

Željko
--
watir.com - community manager
watirpodcast.com - host
-- 
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: Error when going back to Watir 1.6.2 from Watir 1.6.5

2010-01-13 Thread juanmaflyer
In fact the complete error is 'no such file to load -- watir/ie
(LoadError)

On Jan 13, 10:39 am, juanmaflyer juanmafl...@gmail.com wrote:
 Hi! I will be short.

 I have been testing long time with watir 1.6.2. Yesterday I decided to
 switch to Watir 1.6.5 and some scripts didn't work as expected...I
 don't blame the problem on Watir, but just in case, i decided to
 uninstall watir 1.6.5 and install 1.6.2 again. Perfect!

 After that, when running a very simple script the following error
 appeared:

 watir/ie (LoadError)

 The script i'm running is the following:

 1.      require 'watir'
 2.      ie2 = IE.new

 The error raise on line 2.
-- 
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

Re: [wtr-general] Re: Error when going back to Watir 1.6.2 from Watir 1.6.5

2010-01-13 Thread Krishna saradka
I'm not sure about the problem in watir for installation though but one
check you may perform is to go to the location where watir is installed and
check whether ie.rb is present or not. You may able to locate it somewhere
like \\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie.rb

If you are not able to find it then their might be a possibility that the
re-installation might have failed somewhere. May be a fresh installation
might help in this case.


Thanks  regards,
KK

On Wed, Jan 13, 2010 at 7:16 PM, juanmaflyer juanmafl...@gmail.com wrote:

 In fact the complete error is 'no such file to load -- watir/ie
 (LoadError)

 On Jan 13, 10:39 am, juanmaflyer juanmafl...@gmail.com wrote:
  Hi! I will be short.
 
  I have been testing long time with watir 1.6.2. Yesterday I decided to
  switch to Watir 1.6.5 and some scripts didn't work as expected...I
  don't blame the problem on Watir, but just in case, i decided to
  uninstall watir 1.6.5 and install 1.6.2 again. Perfect!
 
  After that, when running a very simple script the following error
  appeared:
 
  watir/ie (LoadError)
 
  The script i'm running is the following:
 
  1.  require 'watir'
  2.  ie2 = IE.new
 
  The error raise on line 2.

 --
 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

-- 
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: Watir - Going down a to read the next element and perform click action on a button

2010-01-13 Thread jw
so it is working (clicking an element) just not the right one?
If the page is static you could try using the index of the element
ie.link(:index, 2)
but this is usually not the best way, especially if your elements have
ids

On Jan 12, 9:27 am, tester86 sagar.am...@gmail.com wrote:
 HI

 With the app there is an id association but sproutcore considers
 everything as a link and you have to use onmousedown and onmouseup in
 order to select a checkbox. When I use that with watir it does not
 click on the second link it just unchecks the first link. If you have
 any ideas for suggestions that would be great.

 Thanks

 On Jan 11, 3:00 pm, Charley Baker charley.ba...@gmail.com wrote:

  Watir supports anything that's part of the dom. I don't know sproutcore, but
  any JS libraries are fine. ID association is great and if you can enforce
  unique ids, it'll make testing easier.

  -c

  On Mon, Jan 11, 2010 at 1:51 PM, tester86 sagar.am...@gmail.com wrote:
   Hi

   I maybe starting another thread but thought I'd post my message on
   here. How does Watir support Javascript (sproutcore). For example if I
   wanted to click on a checkbox sproutcore considers it as a link which
   has an ID assoication.

   --
   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-Hide quoted text -

  - Show quoted text -
-- 
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: No Matching Window Exception.

2010-01-13 Thread jw
it may be the difference between
http://www.google.com;
and
http://www.google.com/;

if you're typing it by hand each time it's easy to miss that /

On Jan 13, 5:47 am, Chandu80 chandu.she...@gmail.com wrote:
 Hi,
 When I type in the lines of code as you mentioned,I am able to see the
 correct url.
 Today I even the code ran without error i.e I am able to attach to the
 existing window successfully.However i haven't touched the code or
 modified it,so what could be the reason for the change in the results?

 Thanks  Regards
 Chandrika

 On Jan 12, 5:04 pm, Krishna saradka krishna.sara...@gmail.com wrote:

  Try printing the URL of the loaded page, just to confirm that the page still
  has the same URL and is not changed on page load. You may print the URL soon
  after the page load to confirm this.

  urlNew  = $ie.url
  puts  URL confirmation : +urlNew
  $ie = Watir::IE.attach(:url, urlNew)

  add them before the code
  $ie = Watir::IE.attach(:url, test_site)

  Thanks  Regards,
  KK

  On Tue, Jan 12, 2010 at 3:50 PM, Chandu80 chandu.she...@gmail.com wrote:
   Hi,
   I have checked and found the browser url ashttp://www.google.com.

   Regards
   Chandrika

   On Jan 11, 7:49 pm, Željko Filipin zeljko.fili...@wa-research.ch
   wrote:
Did you check that browser url is google.com? When I navigate to
   google.com,
it actually opens google.hr (because I am in Croatia)?

Ž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
-- 
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: Not able to edit Text Field

2010-01-13 Thread jw

 even I am able to get the text
 ie.table(:id, ivr_template:params).div(:index,1).text = lokesh or
 ie.table(:id, ivr_template:params)[2][2].text



when you do this
ie.table(:id, ivr_template:params).div(:index,1).text

it's just resolving to a string.  you have to get hold of the
text_field object like
ie.table(:id, ivr_template:params).div(:index,1).text_field(:index,
1).set('lokesh')

try playing with it in irb, there you can interact with your page and
see how the page responds and what's the best way of accessing the
page element
-- 
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: Verify table sort order

2010-01-13 Thread jw
elsif(is_time = self.parseTime(last_value))

should probably be

elsif(is_time == self.parseTime(last_value))

break the problem up, write more helper methods, it's too big to debug

On Jan 12, 3:24 am, Hamid hamid.dela...@gmail.com wrote:
 I wonder if anyone can help me to change the cod so it will also sort
 a empty table (nil)?
 BR/Hamid

  # Verify the sort order of a table.
   # * first_row: The number if the first row in the table
   # * last_row: The number if the last row in the table
   # * column: The column number to verify order in.
   # * order: The order to check (asc, desc)
   def verifyTableSortOrder(first_row, last_row, column, order)

     current_row = first_row
     last_value = nil

     # Get first value and put into last_value
     while(current_row = last_row  (!last_value ||
 last_value=='NA'))
       last_value = self.getValueInTable(current_row, column)
       current_row += 1
     end

     if(last_value[/http:/]) # URL(images) should be sorted first
       last_value = ' ' # First char in ascii sort order
     elsif(is_time = self.parseTime(last_value))
       last_value = is_time
     elsif(numeric?(last_value))
       last_value = last_value.to_f
     else
       last_value = last_value.downcase
     end

     success = true
     while(current_row = last_row)
       current_value = self.getValueInTable(current_row, column, 1)

       if(!current_value || current_value == 'NA')
         # No comparison
         current_row += 1
         next
       elsif(current_value[/http:/]) # URL(images) should be sorted
 first
         # URL comparison
         current_value = ' ' # First char in ascii sort order
       elsif(is_time)
         # Time comparison
         current_value = self.parseTime(current_value)
       elsif(numeric?(current_value)  last_value.class==Float)
         # Numeric comparison
         current_value = current_value.to_f
       else
         # String comparison
         current_value = current_value.downcase()
         last_value = last_value.to_s
       end

       if(order[/asc/i])
         unless(current_value=last_value)
           self.failure(Column #{column} was not sorted Ascending. #
 {current_value}  #{last_value})
           success = false
         end
       elsif(order[/desc/i])
         unless(current_value=last_value)
           self.failure(Column #{column} was not sorted Descending. #
 {current_value}  #{last_value})
           success = false
         end
       end
       last_value = current_value
       current_row += 1
     end
     if(success)
       self.success(Column #{column} was sorted #{order})
     end
   end
-- 
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

Re: [wtr-general] Re: Please donate to the Watir project!

2010-01-13 Thread Felipe Knorr Kuhn
Željko,

The donations for bugs idea is great.

I remember the Mantis project having something similar for feature requests,
but I don't think it ever worked.

There were several donations for a multi user issue assignment feature
that never got implemented.

I'll donate next month :)

FK

On Wed, Jan 13, 2010 at 3:32 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Wed, Jan 13, 2010 at 6:27 PM, jw joshuawal...@gmail.com wrote:
  I encourage you to mention donations monthly.  I will be donating soon
  and only realized it was an option because of this post.

 In that case, will do.


  I don't know
  if you or Tiffany will profit from it but you definitely should! : )

 Watir contributors do not get any money, it will be used for paying the
 hosting, domains and stuff like that.

 If we get a lot of donations, it would be great if we could pay somebody to
 develop some code, write some documentation (a book maybe)...

 Maybe we should accept donations for bugs. If you donate money and say you
 would like a bug to be fixed, the bug goes up in to-do list. :)

 Ž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

-- 
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: waitr - problem with autoit WinActivate - fails at random

2010-01-13 Thread jw
Did you try all the solutions on
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups

solution #3 (after some customization) works for me very consistently.


On Jan 11, 7:29 pm, Alpinweis alpinw...@gmail.com wrote:
 I am using the following code taken from Watir Wiki on JS Popups:

     def check_for_popups(title=Windows Internet Explorer,
 button=OK, user_input=nil)
       popup = Thread.new {
         autoit = WIN32OLE.new('AutoItX3.Control')
         ret = autoit.WinWait(title,,60)
         if (ret == 1)
           puts Popup
           autoit.WinActivate(title)
           puts after WinActivate
           button.downcase!
           if button.eql?('ok') || button.eql?('yes') || button.eql?
 ('continue') || button.eql?('open') || button.eql?('allow')
             autoit.Send(user_input) if user_input
             autoit.Send({Enter})
           else
             autoit.Send({tab})
             autoit.Send({tab}) if title == 'Open'
             autoit.Send({Enter})
           end
         elsif (ret == 0)
           puts Popup failed to show up
         end
       }
       at_exit { Thread.kill(popup) }
     end

 I am using it with click_no_wait. My problem is that
 autoit.WinActivate often fails (looks like at random) when checking
 for a 'File Open' popup with a text field for the filename. It never
 succeeds on the first run, might succeed on the second or third try.
 It does not seem to fail when checking for a simple  javasrcipt
 confirmation popup.

 I am running on Windows 7 x64, watir 1.6.5, ruby oneclick installer
 1.8.6-27 with the patch for click_no_wait applied, original
 AutoItX3.dll registered (downloaded from AutoIt website, since the one
 included with watir 1.6.5 does not work for me). There is also an
 AutoItX3_x64.dll. I tried to rename it to AutoItX3.dll and register it
 but this did not help.

 Would appreciate any help on how to fix this.
-- 
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: waitr - problem with autoit WinActivate - fails at random

2010-01-13 Thread Alpinweis
I tried most of the solutions listed there. Had a hell of a time
trying to make one solution work consistently across different windows
platforms, as some solutions work (sometimes though)  on Win 7/IE8
with a patched ruby 1.8.6-27 , but not on XP/IE7 with ruby 1.8.6-26
and vice versa.

I finally gave up on Autoit and settled with a pure win32ole based
solution (solution # 7) that seems to work consistently fine for me on
Win7 x64 with a patched ruby 1.8.6-27 which is my main testing
platform.


On Jan 13, 10:07 am, jw joshuawal...@gmail.com wrote:
 Did you try all the solutions 
 onhttp://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups

 solution #3 (after some customization) works for me very consistently.

 On Jan 11, 7:29 pm, Alpinweis alpinw...@gmail.com wrote:



  I am using the following code taken from Watir Wiki on JS Popups:

      def check_for_popups(title=Windows Internet Explorer,
  button=OK, user_input=nil)
        popup = Thread.new {
          autoit = WIN32OLE.new('AutoItX3.Control')
          ret = autoit.WinWait(title,,60)
          if (ret == 1)
            puts Popup
            autoit.WinActivate(title)
            puts after WinActivate
            button.downcase!
            if button.eql?('ok') || button.eql?('yes') || button.eql?
  ('continue') || button.eql?('open') || button.eql?('allow')
              autoit.Send(user_input) if user_input
              autoit.Send({Enter})
            else
              autoit.Send({tab})
              autoit.Send({tab}) if title == 'Open'
              autoit.Send({Enter})
            end
          elsif (ret == 0)
            puts Popup failed to show up
          end
        }
        at_exit { Thread.kill(popup) }
      end

  I am using it with click_no_wait. My problem is that
  autoit.WinActivate often fails (looks like at random) when checking
  for a 'File Open' popup with a text field for the filename. It never
  succeeds on the first run, might succeed on the second or third try.
  It does not seem to fail when checking for a simple  javasrcipt
  confirmation popup.

  I am running on Windows 7 x64, watir 1.6.5, ruby oneclick installer
  1.8.6-27 with the patch for click_no_wait applied, original
  AutoItX3.dll registered (downloaded from AutoIt website, since the one
  included with watir 1.6.5 does not work for me). There is also an
  AutoItX3_x64.dll. I tried to rename it to AutoItX3.dll and register it
  but this did not help.

  Would appreciate any help on how to fix this.
-- 
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] Browser Confirm Pop-up Click OK for Safari

2010-01-13 Thread QAguy
I have read this wiki page 
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups.
But all the info on this page seems IE specific. Will any of these
solutions work for Safariwatir?

I am trying to delete an item and in order to do so we generate a JS
pop-up asking the user to confirm they want to do this. They must
click OK to proceed. Any help appreciated.

QAGuy
-- 
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: watir cheat sheet

2010-01-13 Thread marekj
cool.
well I was mostly addressing windows users so I didn't talk about sudo
I also update the cheat to use 'watir-console' and talk about
'console.log'
I am interested in showing how a tester can go from installing watit
to running interactive test sessions on a browser in less than 30
seconds.


On Jan 13, 6:02 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Jan 13, 2010 at 5:42 AM, marekj marekj@gmail.com wrote:
  $ gem install cheat

 Mac (and probably Linux) users, do not forget you need sudo or `cheat watir`
 will not work (at least it did not work for me until I used sudo):

 $ sudo gem install cheat

 Thanks Marek, I am glad to see you more and more involved in Watir. :)

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
-- 
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] rasta not functional with ruby186-26 or 186-27 watir 1.6.5

2010-01-13 Thread Kevin Scott
I have tried to use rasta with the following combinations of ruby and
watir:

ruby 186-26 / watir 1.6.5
ruby 186-26 / watir 1.6.5

Here is the error I receive in either combination:

C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- spec/matchers/
raise_error (LoadError)
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
mswin32-60/lib/rasta/extensions/rspec_extensions.rb:102
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
mswin32-60/lib/rasta/fixture_runner.rb:169:in `initialize_rspec'
from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
mswin32-60/lib/rasta/fixture_runner.rb:147:in `execute'
from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
mswin32-60/lib/rasta.rb:187:in `run_test_fixtures'
from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
mswin32-60/lib/rasta.rb:93:in `run'
from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
mswin32-60/bin/rasta:4
from C:/ruby/bin/rasta:19:in `load'
from C:/ruby/bin/rasta:19

I am able to successfully use rasta in the ruby 186-26 / watir 1.6.2
combination.

Is anyone aware of a known issue with either combination (ruby
186-26 / watir 1.6.5 OR ruby 186-26 / watir 1.6.5) with rasta?

Thank you for any support in advance.
-- 
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] Links Question

2010-01-13 Thread xguarder
I was wondering if someone could inform me on how to do the following:

1. Retrieve link index number of a link. For instance, I know I can
find the link using ie.link(:text, LinkText), and I can also find
out the index number via irb. However, I want to be able to assign the
index number of that particular link to a variable on the fly.

2. Is it possible to click on a link that immediately precedes a
particular text?

Thanks!
-- 
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] Watir as a service - any workaround?

2010-01-13 Thread Darcoli
Hi
I need to use ie.new_process ... but I also need to run ruby as a
service (since I am using ruby/rails actually and want to have the
webserver as a service). However when I call new_process, and ruby is
a service, I get a method not found error.

Is there any workaround for this?

I need this for a school assignment which needs to do automatic
logins, on users behalf, on other websites  anyway check it out
www.sendmalta.com  (currently I am not running ruby as a service
because of the problem I mentioned)

Thanks
-- 
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: Watir as a service - any workaround?

2010-01-13 Thread Darcoli

Note that the iexplore process is created, I can see iexplore
processes getting created from the task manager - but I think the
link is not made with it... here is part of my code just in case you
need...

require 'rubygems'

def valid_User?(user)
   ie=Watir::IE.new_process()

   ie.visible = false
   ie.speed = :zippy

   ,,, some code which is never reached...
end






On Jan 13, 10:32 pm, Darcoli darcol...@gmail.com wrote:
 Hi
 I need to use ie.new_process ... but I also need to run ruby as a
 service (since I am using ruby/rails actually and want to have the
 webserver as a service). However when I call new_process, and ruby is
 a service, I get a method not found error.

 Is there any workaround for this?

 I need this for a school assignment which needs to do automatic
 logins, on users behalf, on other websites  anyway check it 
 outwww.sendmalta.com (currently I am not running ruby as a service
 because of the problem I mentioned)

 Thanks
-- 
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

Re: [wtr-general] Re: Watir as a service - any workaround?

2010-01-13 Thread Eric Mathiesen
have you tried using;

$browser = Watir::IE.attach(:url, http://www.google.com;)
$browser = Watir::IE.attach(:title, Google)

of course thats the *nix command, windows would be

irb: ie = Watir::IE.attach(:url, http://www.google.com;)
irb: ie = Watir::IE.attach(:title, Google)

Let me know,
Eric



On Wed, Jan 13, 2010 at 1:54 PM, Darcoli darcol...@gmail.com wrote:


 Note that the iexplore process is created, I can see iexplore
 processes getting created from the task manager - but I think the
 link is not made with it... here is part of my code just in case you
 need...

 require 'rubygems'

 def valid_User?(user)
   ie=Watir::IE.new_process()

   ie.visible = false
   ie.speed = :zippy

   ,,, some code which is never reached...
 end






 On Jan 13, 10:32 pm, Darcoli darcol...@gmail.com wrote:
  Hi
  I need to use ie.new_process ... but I also need to run ruby as a
  service (since I am using ruby/rails actually and want to have the
  webserver as a service). However when I call new_process, and ruby is
  a service, I get a method not found error.
 
  Is there any workaround for this?
 
  I need this for a school assignment which needs to do automatic
  logins, on users behalf, on other websites  anyway check it
 outwww.sendmalta.com (currently I am not running ruby as a service
  because of the problem I mentioned)
 
  Thanks

 --
 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

-- 
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: Links Question

2010-01-13 Thread Tiffany Fodor
Hi!

You could build an array of all the links and then get the index:

link_text = Array.new

browser.links.each do |link|
  link_text.push(link.text)
end

link_index = link_text.index('My link text').index


To click on a link that precedes some text, you can use :beforeText.
On the current Google page, for example:

browser.link(:beforeText, 'survivors of the Haiti
earthquake.).click

You can also use :afterText, if necessary.

Hope this helps!

-Tiffany


On Jan 13, 2:20 pm, xguarder shams...@gmail.com wrote:
 I was wondering if someone could inform me on how to do the following:

 1. Retrieve link index number of a link. For instance, I know I can
 find the link using ie.link(:text, LinkText), and I can also find
 out the index number via irb. However, I want to be able to assign the
 index number of that particular link to a variable on the fly.

 2. Is it possible to click on a link that immediately precedes a
 particular text?

 Thanks!
-- 
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: Links Question

2010-01-13 Thread Tiffany Fodor
Sorry - I forgot to mention that the array will start at 0, but the
link index number in Watir will start at 1.  You could create your
array with a placeholder for 0, or add one to the index number you get
from the array when you want to access the link in Watir.

-Tiffany

On Jan 13, 3:09 pm, Tiffany Fodor tcfo...@comcast.net wrote:
 Hi!

 You could build an array of all the links and then get the index:

 link_text = Array.new

 browser.links.each do |link|
   link_text.push(link.text)
 end

 link_index = link_text.index('My link text').index

 To click on a link that precedes some text, you can use :beforeText.
 On the current Google page, for example:

 browser.link(:beforeText, 'survivors of the Haiti
 earthquake.).click

 You can also use :afterText, if necessary.

 Hope this helps!

 -Tiffany

 On Jan 13, 2:20 pm, xguarder shams...@gmail.com wrote:

  I was wondering if someone could inform me on how to do the following:

  1. Retrieve link index number of a link. For instance, I know I can
  find the link using ie.link(:text, LinkText), and I can also find
  out the index number via irb. However, I want to be able to assign the
  index number of that particular link to a variable on the fly.

  2. Is it possible to click on a link that immediately precedes a
  particular text?

  Thanks!
-- 
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: Links Question

2010-01-13 Thread xguarder
Thanks for the tips.

I tried the index method using the array as you suggested. When I ran
it, I get an undefined method 'index'.

Also, when using the :beforeText or :afterText for the link, I get
unable to locate element, using :beforeText...


Any suggestions on if I'm doing something wrong?

Thanks,
Ken

On Jan 13, 5:12 pm, Tiffany Fodor tcfo...@comcast.net wrote:
 Sorry - I forgot to mention that the array will start at 0, but the
 link index number in Watir will start at 1.  You could create your
 array with a placeholder for 0, or add one to the index number you get
 from the array when you want to access the link in Watir.

 -Tiffany

 On Jan 13, 3:09 pm, Tiffany Fodor tcfo...@comcast.net wrote:

  Hi!

  You could build an array of all the links and then get the index:

  link_text = Array.new

  browser.links.each do |link|
    link_text.push(link.text)
  end

  link_index = link_text.index('My link text').index

  To click on a link that precedes some text, you can use :beforeText.
  On the current Google page, for example:

  browser.link(:beforeText, 'survivors of the Haiti
  earthquake.).click

  You can also use :afterText, if necessary.

  Hope this helps!

  -Tiffany

  On Jan 13, 2:20 pm, xguarder shams...@gmail.com wrote:

   I was wondering if someone could inform me on how to do the following:

   1. Retrieve link index number of a link. For instance, I know I can
   find the link using ie.link(:text, LinkText), and I can also find
   out the index number via irb. However, I want to be able to assign the
   index number of that particular link to a variable on the fly.

   2. Is it possible to click on a link that immediately precedes a
   particular text?

   Thanks!
-- 
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: Links Question

2010-01-13 Thread Tiffany Fodor
Yikes!

I missed an ugly typo.  Sorry about that - I should proof read better:

link_index = link_text.index('My link text').index

-should be-

link_index = link_text.index('My link text')

I'm not sure about the :beforeText problem - were you able to make my
www.Google.com example work?

-Tiffany


On Jan 13, 3:31 pm, xguarder shams...@gmail.com wrote:
 Thanks for the tips.

 I tried the index method using the array as you suggested. When I ran
 it, I get an undefined method 'index'.e

 Also, when using the :beforeText or :afterText for the link, I get
 unable to locate element, using :beforeText...

 Any suggestions on if I'm doing something wrong?

 Thanks,
 Ken

 On Jan 13, 5:12 pm, Tiffany Fodor tcfo...@comcast.net wrote:

  Sorry - I forgot to mention that the array will start at 0, but the
  link index number in Watir will start at 1.  You could create your
  array with a placeholder for 0, or add one to the index number you get
  from the array when you want to access the link in Watir.

  -Tiffany

  On Jan 13, 3:09 pm, Tiffany Fodor tcfo...@comcast.net wrote:

   Hi!

   You could build an array of all the links and then get the index:

   link_text = Array.new

   browser.links.each do |link|
     link_text.push(link.text)
   end

   link_index = link_text.index('My link text').index

   To click on a link that precedes some text, you can use :beforeText.
   On the current Google page, for example:

   browser.link(:beforeText, 'survivors of the Haiti
   earthquake.).click

   You can also use :afterText, if necessary.

   Hope this helps!

   -Tiffany

   On Jan 13, 2:20 pm, xguarder shams...@gmail.com wrote:

I was wondering if someone could inform me on how to do the following:

1. Retrieve link index number of a link. For instance, I know I can
find the link using ie.link(:text, LinkText), and I can also find
out the index number via irb. However, I want to be able to assign the
index number of that particular link to a variable on the fly.

2. Is it possible to click on a link that immediately precedes a
particular text?

Thanks!
-- 
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: waitr - problem with autoit WinActivate - fails at random

2010-01-13 Thread Tony
Hi Alpin

How did you get the click_no_wait to work on the patched ruby
1.8.6-27.
Is the patch on ruby 1.8.6-27, to solve this problem?
If so could you share the patch?

Thanks,
Tony
-- 
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: rasta not functional with ruby186-26 or 186-27 watir 1.6.5

2010-01-13 Thread Kevin Scott
I believe I have found workaround. When I ran - gem install rasta -
rspec 1.3.0 was installed to the ruby directory. I ran the uninstall
on rspec 1.3.0, downloaded rspec 1.2.9 and ran that install locally.
Rasta is now working.

Here are the steps I took after running gem install rasta :

1. within a cmd window - gem uninstall rspec
2. download rspec 1.2.9 - 
http://rubyforge.org/frs/?group_id=797release_id=39937
3. within a cmd window - gem install rspec-1.2.9 (run this from
location you downloaded the file to)

My rasta now ran successfully.

The versions that I am using are:

ruby 186-27
watir 1.6.5
rasta 0.10
rspec 1.2.9

On Jan 13, 3:02 pm, Kevin Scott kevin.scott...@gmail.com wrote:
 I have tried to use rasta with the following combinations of ruby and
 watir:

 ruby 186-26 / watir 1.6.5
 ruby 186-26 / watir 1.6.5

 Here is the error I receive in either combination:

 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
 `gem_original_require': no such file to load -- spec/matchers/
 raise_error (LoadError)
         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `require'
         from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
 mswin32-60/lib/rasta/extensions/rspec_extensions.rb:102
         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `gem_original_require'
         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `require'
         from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
 mswin32-60/lib/rasta/fixture_runner.rb:169:in `initialize_rspec'
         from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
 mswin32-60/lib/rasta/fixture_runner.rb:147:in `execute'
         from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
 mswin32-60/lib/rasta.rb:187:in `run_test_fixtures'
         from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
 mswin32-60/lib/rasta.rb:93:in `run'
         from C:/ruby/lib/ruby/gems/1.8/gems/rasta-0.1.10-x86-
 mswin32-60/bin/rasta:4
         from C:/ruby/bin/rasta:19:in `load'
         from C:/ruby/bin/rasta:19

 I am able to successfully use rasta in the ruby 186-26 / watir 1.6.2
 combination.

 Is anyone aware of a known issue with either combination (ruby
 186-26 / watir 1.6.5 OR ruby 186-26 / watir 1.6.5) with rasta?

 Thank you for any support in advance.
-- 
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: waitr - problem with autoit WinActivate - fails at random

2010-01-13 Thread Alpinweis
Tony,

you can find the patch here: http://jira.openqa.org/browse/WTR-320

Need to manually apply the patch as the line numbers in the patch
might not be correct for your version of watir (they are not for watir
1.6.5)

The patch works fine for me with ruby one-click installer 1.8.6-27 on
Win7 x64.

On Jan 13, 7:09 pm, Tony ynot...@gmail.com wrote:
 Hi Alpin

 How did you get the click_no_wait to work on the patched ruby
 1.8.6-27.
 Is the patch on ruby 1.8.6-27, to solve this problem?
 If so could you share the patch?

 Thanks,
 Tony
-- 
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