[wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-25 Thread Reciprocity
I have run accross another issue with with Ruby 1.9.2 and Watir 2.01

I'm running on Win7, IE8 and have the a page with 5 radio buttons and
have the below option set.

Watir.options[:zero_based_indexing] = false

Here is my code:

ie.radios[5].click
ie.radios[4].click
ie.radios[3].click
ie.radios[2].click
ie.radios[1].click

This does not work. I assumed that my old code would be able to run in
the zero based indexing environment with the above opton set but I get
an error for index 5.

This code works fine:

ie.radios[4].click
ie.radios[3].click
ie.radios[2].click
ie.radios[1].click
ie.radios[0].click

Is this the way it is supposed to work for radio buttons?

On Aug 24, 9:35 pm, Alister Scott alister.sc...@gmail.com wrote:
 maybe it's a google.com.au thing

 cheers

 Alister Scott
 Brisbane, Australia
 Watir Web Master:http://watir.com
 Blog:http://watirmelon.com
 LinkedIn:http://www.linkedin.com/in/alisterscott

 There are two ways to get enough: One is to continue to accumulate more and
 more. The other is to desire less. *~ G. K. Chesterton*



 On Thu, Aug 25, 2011 at 11:30 AM, bis bis...@gmail.com wrote:
  yeah i dont see that the google i see when i look at the tests has
  meta http-equiv=X-UA-Compatible content=IE=9/
  for .com, .ca and .com.br
   On Wed, Aug 24, 2011 at 10:13 PM, Alister Scott 
  alister.sc...@gmail.comwrote:

  I don't think that'll help as google will force it to use IE8 standards.

  Cheers

  Alister Scott
  Brisbane, Australia
  Watir Web Master:http://watir.com
  Blog:http://watirmelon.com
  LinkedIn:http://www.linkedin.com/in/alisterscott

  There are two ways to get enough: One is to continue to accumulate more
  and more. The other is to desire less. *~ G. K. Chesterton*

  On Thu, Aug 25, 2011 at 11:12 AM, bis bis...@gmail.com wrote:

  I will crank up my VM again and mess with it. Maybe try reinstalling ie9
  and see if that solves the issue

  On Wed, Aug 24, 2011 at 10:09 PM, Alister Scott alister.sc...@gmail.com
   wrote:

  It looks like google add a content=IE_8 header to the page to force
  IE9 to revert to IE8, but Watir thinks it's IE9!

 http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx

   --
  Before posting, please readhttp://watir.com/support. In short: search
  before you ask, be nice.

  watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
  watir-general+unsubscr...@googlegroups.com

   --
  Before posting, please readhttp://watir.com/support. In short: search
  before you ask, be nice.

  watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
  watir-general+unsubscr...@googlegroups.com

   --
  Before posting, please readhttp://watir.com/support. In short: search
  before you ask, be nice.

  watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
  watir-general+unsubscr...@googlegroups.com

   --
  Before posting, please readhttp://watir.com/support. In short: search
  before you ask, be nice.

  watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
  watir-general+unsubscr...@googlegroups.com- Hide quoted text -

 - Show quoted text -

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Watir 1.9.1 testing error

2011-06-29 Thread Reciprocity
I added require 'active_support' to my script and I still get the
error. Is there something else I need to do?

On Jun 29, 5:17 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Tue, Jun 28, 2011 at 10:08 PM, Reciprocity george.wi...@gmail.com
 wrote:

  undefined method `year' for 1:Fixnum (NoMethodError)

 As far as I know, year method is provided by ActiveSupport, and it is no
 longer required by Watir since version 1.8.

 Fromhttps://github.com/bret/watir/blob/master/CHANGES

 (...)
 == Version 1.8.0 - 2011/28/02
 (...)
 * Removed dependency for ActiveSupport, making it possible to use FireWatir
 with Rails 3 (Jarmo Pertman)
 (...)

 If you need that functionality, require ActiveSupport gem in your script.
 Let us know if you need help with that.

 Željko
 --
 watir.com - community manager
 watir.com/book - author
 watirpodcast.com - host

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Watir 1.9.1 testing error

2011-06-29 Thread Reciprocity
require 'activesupport'

Gives me a require error.

The code below gives me the undefined method 'year' error.

require 'watir'
require 'active_support'

puts 1.year

On Jun 29, 9:33 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Jun 29, 2011 at 3:26 PM, Reciprocity george.wi...@gmail.com wrote:
  I added require 'active_support' to my script and I still get the
  error. Is there something else I need to do?

 Show us the code.

 Maybe it is:

 require activesupport

 http://rubygems.org/gems/activesupport

 Željko

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Watir 1.9.1 testing error

2011-06-28 Thread Reciprocity
I'm runing my scripts through Watir 1.9.1.rc1 on IE8, Win7 and Ruby
187. I have this code:

puts 1.year

I get this error:

undefined method `year' for 1:Fixnum (NoMethodError)

This code has always worked in the past. Does anyone know what has
changed for this not to work anymore?

Thanks in advance for your help,

George

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Watir 1.7.1 issue

2011-01-12 Thread Reciprocity
Hello,

I'm testing on Win7 (IE8), Ruby 1.8.6 (also tested under 1.8.7) and
Watir 1.7.1
Below irb session works fine under all the same environment except
Watir 1.6.2

I have a page that pops up a new window. I can attach to it without an
error but it just isn't right.

irb(main):001:0 require 'watir'
= true
irb(main):002:0 ie2 = Watir::IE.find(:title, /Agreement/)
= #Watir::IE:0x49de500 url=https://mydomain.com/Registration.asp;
title=Agreement
irb(main):003:0 ie2.status
= Waiting for about:blank...

When I do a...

irb(main):003:0 ie2.close
WIN32OLERuntimeError: unknown property or method `hwnd'
HRESULT error code:0x80010108
  The object invoked has disconnected from its clients.
from C:/Programs/Ruby186Watir17/lib/ruby/gems/1.8/gems/
watir-1.7.1/lib/watir/ie-class.rb:403:in `method_missing'
from C:/Programs/Ruby186Watir17/lib/ruby/gems/1.8/gems/
watir-1.7.1/lib/watir/ie-class.rb:403:in `close'
from (irb):3

it hangs up. If I manualy close the window I get the above error
message.

Any help would be appreciated.

Thanks

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Problem clicking with element_by_xpath

2010-11-05 Thread Reciprocity
I'm trying to click this using Ruby 1.8.7 and Watir 1.6.7.

tr onclick=goTo('/Administration/DeleteFilter.asp', 'Claim')

The code below worked in Ruby 1.8.6 and Watir 1.6.2

@what = '/Administration/DeleteFilter.asp'
ie.element_by_xpath(//tr[contains(@onclick, '#...@what}')]/).click()

I'm getting this error.

C:/ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/winClicker.rb:
208: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]


This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.

Any ideas?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Problem clicking with element_by_xpath

2010-11-05 Thread Reciprocity
Thanks for you reply. So if I want to move to a newer version of ruby
I should use Vapir. If I want move to a newer version of watir, ruby
186 is recommended? Does Vapir work with the newest versions of ruby
and watir?

On Nov 5, 12:03 pm, Ethan notet...@gmail.com wrote:
 I don't think the mingw32 ruby version (that is, the latest one-click
 installers) are supported by watir; the older mswin32 ruby 1.8.6 is
 currently recommended.

 I recommend Vapir (http://vapir.org);it works on all versions of ruby since
 1.8.6.



 On Fri, Nov 5, 2010 at 11:47, Reciprocity george.wi...@gmail.com wrote:
  I'm trying to click this using Ruby 1.8.7 and Watir 1.6.7.

  tr onclick=goTo('/Administration/DeleteFilter.asp', 'Claim')

  The code below worked in Ruby 1.8.6 and Watir 1.6.2

  @what = '/Administration/DeleteFilter.asp'
  ie.element_by_xpath(//tr[contains(@onclick, '#...@what}')]/).click()

  I'm getting this error.

  C:/ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/winClicker.rb:
  208: [BUG] Segmentation fault
  ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

  This application has requested the Runtime to terminate it in an
  unusual way.
  Please contact the application's support team for more information.

  Any ideas?

  --
  Before posting, please readhttp://watir.com/support. In short: search
  before you ask, be nice.

  watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
  watir-general+unsubscr...@googlegroups.com- Hide quoted text -

 - Show quoted text -

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Problem with a listbox that populates to many data

2010-06-07 Thread Reciprocity
I don't know if this is the best way but this routine works for me.
Just pass the list object and it won't come back until the data is
loaded or it times out.

def wait_for_count(object)
  x = 0
  count = 0
  until count  0 or x  50
sleep(0.2)
items = object.getAllContents()
count = items.length()
x += 1
  end
end

-George

On Jun 3, 3:35 am, Marlon marlonmoja...@gmail.com wrote:
 Hi,

 I'm having a problem with my script due to performance issue with the
 site. The application has a Listbox that populates to many data
 resulting to a poor load time. I already used wait_until but it didn't
 help because the objects were already loaded but the data it not. One
 solution I can think of is to wait until the data on the listbox is
 completely loaded then perform the next operation, but how can I do
 it?

 Thanks
 -Lon

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com