[wtr-general] Re: Error for verify method

2009-04-22 Thread Ramesh
hi, only require 'watir' is enough no need test::unit On Apr 22, 10:25 am, Durgesh Nadkarni durgeshnadka...@gmail.com wrote: Hi, I have installed the ruby 1.8.6 and WATIR 1.6.2.. I am using Test::Unit assertions. I have tried the verify method but when I ran the script it has given

[wtr-general] ruby 185 24 - undefined method `text_field' for #IE:0x2bed9d8

2009-04-22 Thread sathish_Er
Hi when i execute a ruby script to insert response time, i get the following error undefined method `text_field' for #IE:0x2bed9d8 entered in the DB my systac for text field is $ie.text_field(:name,'q').value = 'Software Testing' --~--~-~--~~~---~--~~ You

[wtr-general] Re: What are the methods available for accessing links

2009-04-22 Thread spike
thankyou very much it worked for me.. On Apr 21, 5:24 am, George george.sand...@gmail.com wrote: Yeah, you're right.  I tried this on one of my favorite websites: First, open your browser tohttp://icanhascheezburger.com, then follow this: == require 'watir' ie =

[wtr-general] Re: What are the methods available for accessing links

2009-04-22 Thread spike
Thankyou sir you suggestion helped me. On Apr 21, 4:58 am, Chuck van der Linden sqa...@gmail.com wrote: might work. given what he described I'm not betting on it  since I THINK that focus only happens if you are using tab to move stuff with a defined taborder (e.g. entry fields) or you

[wtr-general] Re: watir.rb - matches functions

2009-04-22 Thread Bret Pettichord
Paul Denize wrote: In watir.rb there are several class additions to add a matches function that is similar in each type (see below). Wouldn't it be a little more consistent if they all returned the same data types. Maybe. Why do you ask? -- Bret Pettichord CTO, WatirCraft LLC,

[wtr-general] Re: Error for verify method

2009-04-22 Thread Bret Pettichord
Durgesh Nadkarni wrote: I have installed the ruby 1.8.6 and WATIR 1.6.2.. I am using Test::Unit assertions. I have tried the verify method but when I ran the script it has given me the error as undefined method 'verify'. yes the library needs to be loaded. require 'watir/testcase' or

[wtr-general] Re: ruby 185 24 - undefined method `text_field' for #IE:0x2bed9d8

2009-04-22 Thread Bret Pettichord
The problem is with the thing in the $ie. It is not a Watir object. Not sure what it is. Bret sathish_Er wrote: Hi when i execute a ruby script to insert response time, i get the following error undefined method `text_field' for #IE:0x2bed9d8 entered in the DB my systac for text field

[wtr-general] Re: What editor should I use for mac?

2009-04-22 Thread Hassan Malik
I am curently SciTe on windows and wold like to try Eclipse. Does it matter what version I use? They have Eclipse IDE for Java, C/C++, but I don't see one for ruby. http://www.eclipse.org/downloads/   From: Lisa Crispin lisa.cris...@gmail.com To:

[wtr-general] Re: What editor should I use for mac?

2009-04-22 Thread Jeff Fry
There isn't a separate ruby version of Eclipse, though you'll want to install the ruby plug-in. See the Watir wiki page on Eclipse: http://wiki.openqa.org/display/WTR/Setting+up+Eclipse+for+Ruby On Wed, Apr 22, 2009 at 8:32 AM, Hassan Malik hassanm_...@yahoo.com wrote: I am curently SciTe on

[wtr-general] Re: Error for verify method

2009-04-22 Thread Tiffany Fodor
Hi! I use the following require statements for Test::Unit with Watir assertions: require 'test/unit' require 'watir/assertions' Then in my TestSuite class, I have have the following include statement: include Watir::Assertions -Tiffany On Apr 22, 8:36 am, Bret Pettichord b...@pettichord.com

[wtr-general] Re: What editor should I use for mac?

2009-04-22 Thread Charley Baker
There's the dltk (Dynamic Languages Toolkit) which supports python, ruby, etc for Eclipse. Someone told me that it's included in the latest version of Eclipse, dunno. Otherwise you can install it from the Eclipse plugin site. As I've mentioned before, I'm low tech and don't go with a heavy IDE, I

[wtr-general] Re: What editor should I use for mac?

2009-04-22 Thread Lisa Crispin
I have Eclipse 3.4.1 and it kind of seems like it came with the Ruby plug-in, but as our sys admin installed it for me (I'm challenged at setting up Eclipse correctly) maybe he installed the plug-in too. Anyway, works fine for me. -- Lisa On Wed, Apr 22, 2009 at 9:42 AM, Jeff Fry

[wtr-general] Getting Segmentation Fauly in ie-class.rb on windows vista

2009-04-22 Thread venki
Hi I have installed ruby 1.8.2 and watir 1.6.2 on windows vista.When I try to run following code on irb. I am getting Segmentation fault. require 'watir' browser = Watir::Browser.new The above code gives c:\downloads\rubygems-0.9.2\rubygems-0.9.2irb irb(main):001:0 require 'watir' = true

[wtr-general] Re: Getting Segmentation Fauly in ie-class.rb on windows vista

2009-04-22 Thread Tiffany Fodor
Hi Venki! I just tried the same thing on my Vista laptop with ruby 1.8.6 and watir 1.6.2 and it worked just fine. Is upgrading ruby to 1.8.6 an option for you? -Tiffany On Apr 22, 3:08 pm, venki sharma.vis...@gmail.com wrote: Hi I have installed ruby 1.8.2 and watir 1.6.2 on windows

[wtr-general] Re: Scripting a foreign subframe

2009-04-22 Thread Chuck van der Linden
I'm on Vista Business, and IE7 yes? do this? I don't know. If you can point me at a public site, or give me some code to try that works on a public site, I can try it. and tell you what happens. the web UI that I'm testing against does not use frames. To quote one of our devs: in modern

[wtr-general] Re: Scripting a foreign subframe

2009-04-22 Thread Tony
Hi Chuck, do this?  I don't know.  If you can point me at a public site, or give me some code to try that works on a public site, I can try it. and tell you what happens. Could you try it on this site ... 1. goto video.aol.com. 2. Click on the SignIn button. 3. SignIn Frame gets loaded from

[wtr-general] Re: How do I get the page status (200, 404, 500, etc)

2009-04-22 Thread Tony
Hi Paul, Would suggest you use fiddler which is a free tool.(http:// www.fiddler2.com/fiddler2/) You could run fiddler while your scripts are executing and capture the status code, urls hit etc from a different process. You could also try httpwatch (not free) http://www.httpwatch.com/ This

[wtr-general] Re: What editor should I use for mac?

2009-04-22 Thread Wesley Chen
I use Windows XP system. When I have the ruby plugin in my Eclipse 3.4, then run my Watir code, messy code would turn up when I have the multiple-line comment. I don't know whether you guys have ever met this kind of problem, please follow my steps as below: Write your watir code your code 1 your

[wtr-general] Re: How do I get the page status (200, 404, 500, etc)

2009-04-22 Thread Paul Rogers
i could never find a way of getting the status code easily. If you look through the watir source it does something like use a regular expression against the page title to try and figure it out. At one point watir would raise an exception when the page finished loading if it was an error, I think

[wtr-general] jssh error - Watir::Exception::UnableToStartJSShException

2009-04-22 Thread emz452
Hi there, I have recently started working from home and have just finished setting up my rails development environment. I'm running into a problem with Watir when running some of my tests. This was all running smoothly on my PC at work, so it must be some setting or configuration problem on my

[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-22 Thread George
Hi Emily, I've talked to Bret personally about this same issue...it appears that it is some kind of timing issue when Firefox opens its first browser. I would get this message once, but all subsequent attempts to open FF via Watir does not display the error from that point on. -George On Apr

[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-22 Thread emz452
hmm - thanks George. I'm not sure if it's the same problem, but if it is the same, is there any way around it? I tried increasing the number of tries in the set_defaults method in firefox.rb (to 25, 100, 1000 and 5000) with no luck. Thanks, Em On Apr 23, 12:52 pm, George

[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-22 Thread emz452
hmm - thanks George. I'm not sure if it's the same problem, but if it is the same, is there any way around it? I tried increasing the number of tries in the set_defaults method in firefox.rb (to 25, 100, 1000 and 5000) with no luck. Thanks, Em On Apr 23, 12:52 pm, George