[wtr-general] How to create input dialog box in watir

2010-01-20 Thread raju
How to create input dialog box in watir like Input box in Qtp -- 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.

Re: [wtr-general] How to create input dialog box in watir

2010-01-20 Thread Željko Filipin
On Wed, Jan 20, 2010 at 11:03 AM, raju wrote: > How to create input dialog box in watir like Input box in Qtp I have never used Qtp. Could you please be more specific? What do you want to do? Željko -- watir.com - community manager watirpodcast.com - host -- You received this message because yo

[wtr-general] Re: How to create input dialog box in watir

2010-01-20 Thread raju
Using Inputbox we can enter values dynamically while running the script, it will throws a popup message like Please enter the password so we can enter password that time. latter we can use that pwd in script by taking into the variable... Thanks Raju Dantuluri On Jan 20, 3:04 pm, Željko Filipin

Re: [wtr-general] Re: How to create input dialog box in watir

2010-01-20 Thread Željko Filipin
On Wed, Jan 20, 2010 at 11:19 AM, raju wrote: > Using Inputbox we can enter values dynamically while running the > script, it will throws a popup message like Please enter the password > so we can enter password that time. latter we can use that pwd in > script by taking into the variable... Wati

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-20 Thread tester86
Hi Yes I did specify my browser in option.yml using the following example from: http://wiki.openqa.org/display/WTR/Browser.new In that file it contains Browser ie Browser firefox I also tried: $b ie $b firefox (but I was getting the same error message) You comment out the browser that you w

Re: [wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-20 Thread Željko Filipin
On Wed, Jan 20, 2010 at 3:00 PM, tester86 wrote: > Browser ie I think this should be: browser: ie Ž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, plea

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-20 Thread tester86
Sorry my typo in options.yml I have it as browser: ie browser: firefox When I do $b = Watir::firefox.start("your url") I get an error message: NoMethodError: undefined method `firefox' for Watir:Module I have require 'firewatir' Is there are reason why I cannot run it aginst FF because I want

Re: [wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-20 Thread Željko Filipin
On Wed, Jan 20, 2010 at 3:20 PM, tester86 wrote: > Sorry my typo in options.yml I have it as You have to be careful when copy/pasting code. Everything matters. > When I do $b = Watir::firefox.start("your url") I get an error > message: > NoMethodError: undefined method `firefox' for Watir:Module

[wtr-general] :after? and :before? methods not supported for all elements?

2010-01-20 Thread Jarmo Pertman
Hello. I've tried something like this: puts b.span(:after? => b.text_field(:id => "blah")).html and it works, but if I try it with text_field, like this: puts b.text_field(:after? => b.text_field(:id => "blah")).html then I get this stacktrace: wrong number of arguments (0 for 1) c:/ruby/lib/rub

[wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-20 Thread Jarmo Pertman
Sorry, stacktrace got truncated. Here is full one: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:127:in `before?': wrong number of arguments (0 for 1) (ArgumentError) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ locator.rb:127:in `send' from c:/ruby/

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-20 Thread tester86
Well, my point that I am trying to get at is that I want to execute my code against IE and FF. All of the disucssion is making me stick to either run it again IE and FF. Is there any way I that I can a browser i.e. IE run my code then when it finishes run it again (same code) but in FF. I have used

Re: [wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-20 Thread Željko Filipin
On Wed, Jan 20, 2010 at 3:54 PM, tester86 wrote: > Is there any way I that I can a browser > i.e. IE run my code then when it finishes run it again (same code) but > in FF. And this is no good for you (from my first reply in this thread): [Watir::IE.new, FireWatir::Firefox.new].each do |browser

[wtr-general] Fire Watir and Team Viewer

2010-01-20 Thread Pallavi Sharma
Hi We have a weird problem, whenever we connect teamviewer to the system which is using firewatir to execute runs, the Firewatir plugin doesn't work. Has it got anything to do with the interference in the port which these two might be using? in that case is this configurable in firewatir or coul

Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-20 Thread marekj
I've never needed to do this type of access for text_field container.text_field(:after? => (element)) is Watir supposed to conform to this syntax? have you tried a comma instead of hash? container.text_field(:after?, (element)) yeah, looking at the code it appers: in span we use TaggedElementLoc

[wtr-general] Getting undefined method when trying to check a checkbox

2010-01-20 Thread QAguy
I'm using safariwatir. I am trying to set a checkbox using the following: browser.checkbox(:id, "select_all_checkbox").set This should work but is giving me: undefined method `checkbox' for nil:NilClass Code this should work against is: Can someone provide some insight? Thanks in advance. QA

[wtr-general] Re: Problem with authentication popup

2010-01-20 Thread AR
And you're sure it's a Windows Authentication box like the one shown at that link, and not a modal dialog or popup asking for credentials? They are handled differently. Have you tried any of the other solutions listed on that page? Thanks again, Adam On Jan 19, 7:47 pm, xguarder wrote: > Hi, I

[wtr-general] WatiN versus WatiR

2010-01-20 Thread .WatiNNewbie
Hi, I'm exploring WatiN right now, but am having problems getting the support I need (e.g. code samples, mailing list, etc.). So, I am beginning to feel a bit reluctant about using it. I come from a .Net background, thus my preference for WatiN. Can anyone here tell me the difference between Wati

Re: [wtr-general] Getting undefined method when trying to check a checkbox

2010-01-20 Thread Wesley Chen
The problem is on "nil:NilClass" It means the script can't find the browser you have defined. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan 21, 2010 at 4:50 AM, QAguy wrote: > I'm using safariwatir. I am trying to set a checkbox using the > following: > > browser.checkbox(