[wtr-general] Using Watir::Simple methods

2010-01-28 Thread Chandu80
I have a code written in ruby as follows: require 'watir/ie' #require 'watir/process' require 'test/unit/assertions' require 'watir/watir_simple' #include Watir::Simple test_site = 'http://google.co.in' $ie = Watir::IE.new $ie.goto(test_site) $ie.maximize $ie.click_button_with_name(btnG) where

Re: [wtr-general] Using Watir::Simple methods

2010-01-28 Thread Željko Filipin
On Thu, Jan 28, 2010 at 1:54 PM, Chandu80 chandu.she...@gmail.com wrote: require 'watir/watir_simple' I think watir simple is not maintained any more. I guess it is broken. Why are you using it? Is this $ie.button(:name = btnG).click much more complicated than this?

[wtr-general] Re: Watir + Verify JSON Response

2010-01-28 Thread tester86
Hi Thanks for the link, but for now the application is not returning the response in the url. If I open up firebug I can see the contents of the JSON repsonse header in there. Is there any way to check that for now. Thanks On Jan 26, 11:18 am, karim rayani karim.ray...@gmail.com wrote: Hello,

[wtr-general] FireWatir: fire_event(onkeypress) returning error message

2010-01-28 Thread tester86
Hi I am using firewatir and when I use the following code: $b.text_field(:type, text).set(Res).fire_event(onkeypress) I also tried $b.text_field(:type, text).set(Res).fire_event ('onkeypress') I get the following error message: NoMethodError: undefined method `fire_event' for 0:Fixnum This

Re: [wtr-general] FireWatir: fire_event(onkeypress) returning error message

2010-01-28 Thread Željko Filipin
On Thu, Jan 28, 2010 at 4:04 PM, tester86 sagar.am...@gmail.com wrote: $b.text_field(:type, text).set(Res).fire_event(onkeypress) Try this: $b.text_field(:type, text).set(Res). $b.text_field(:type, text).fire_event(onkeypress) Also if there any fire_event for a double click Try this:

[wtr-general] Re: Xpath cell

2010-01-28 Thread jw
I think xpath is generally considered a last resort by most people. To me it seems very brittle. If the layout of your page changes a lot of your code will break. Using IDs to locate elements is usually your best choice I believe. On Jan 27, 12:07 pm, Bharath bkalt...@gmail.com wrote: Željko,

Re: [wtr-general] Re: popup handling

2010-01-28 Thread naveen kumar
Hi , Thanks for your reply, when i tried pop op clicker method it throws error saying nomethod found error how can i rectify this.Please help me in this regard Thanks, Naveen On Fri, Jan 22, 2010 at 6:32 AM, Wesley Chen cjq@gmail.com wrote: If the methods above can't work, you can try the

[wtr-general] Issue with running watir on cygwin`

2010-01-28 Thread QAguy
I saw this thread: http://groups.google.com/group/watir-general/browse_thread/thread/b09e0b87c50075bd/cca465c8188a9044?lnk=gstq=permission+denied+ I would have responded to that thread but no reply option was available so I'm starting a new one. Was Acro's issue ever addressed. I have the same

[wtr-general] Is there a version of jssh.xpi for FF3.6 for snow leopard

2010-01-28 Thread QAguy
Can't seem to find it. Thanks 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:

[wtr-general] Re: Is there a version of jssh.xpi for FF3.6 for snow leopard

2010-01-28 Thread QAguy
As a work around for this I'm trying to install the webdriver watir gem. But I am having an issue installing it (See below): host73:~ employee$ sudo gem install selenium-webdriver --no-ri --no- rdoc Building native extensions. This could take a while... ERROR: Error installing

[wtr-general] Another Variable Scope Question

2010-01-28 Thread Edith
Hi Everyone, I'm trying to understand the scoping of the browser variable that is created in itest2 generated code. When I copy this code into an it block or into a def block in a watircraft generated method then I get no errors. When I try to reference the browser object in the descrbe block in

[wtr-general] Re: Is there a version of jssh.xpi for FF3.6 for snow leopard

2010-01-28 Thread QAguy
Was able to fix this by first doing: sudo port install libffi Once that was installed I was able to do: gem install selenium-webdriver gem install watir-webdriver --pre However when I try to run my scripts I get the following error:

Re: [wtr-general] Issue with running watir on cygwin`

2010-01-28 Thread marekj
I briefly looked at that thread and it looks like he had a Ruby from cygwin package and not a RubyInstaller when you run 'which ruby' does it return /cygdrive/c/ruby/bin/ruby? or /usr/bin/ruby ? I've never executed Watir tests with Ruby installed from cygwin, only from RubyInstaller for Windows

Re: [wtr-general] Re: popup handling

2010-01-28 Thread Wesley Chen
How do you invoke the method? Wesley. For life, the easier, the better. On Fri, Jan 29, 2010 at 1:51 AM, naveen kumar naveeenku...@gmail.comwrote: Hi , Thanks for your reply, when i tried pop op clicker method it throws error saying nomethod found error how can i rectify this.Please help

Re: [wtr-general] Re: FireWatir: fire_event(onkeypress) returning error message

2010-01-28 Thread Wesley Chen
Can you make it when you click twice? ***.click ***.click Wesley. For life, the easier, the better. On Fri, Jan 29, 2010 at 12:04 AM, tester86 sagar.am...@gmail.com wrote: Try this: fire_event(ondblclick) There is a label on the page and I have to double click on that label in