[wtr-general] Re: Opening new browser window from existing one

2010-11-30 Thread chandu.tennety
From the original post, it looked like you were trying to attach the new window *before* clicking on the link that would open the window. Try clicking on the link first, then attach to the new window: Browser.link(:href, /users/new).click# = new window opens Browser.attach(:title, '/Users:

[wtr-general] Re: Implementation of element object map for web automation.

2010-10-21 Thread chandu.tennety
I believe you should be able to eval the string before you click on it: eval(@map[SubmitButton]).click #not tested That said, I second Željko's sugestion. Taza gives you a very object- oriented way of defining your html elements as methods in logical classes. Chandu On Oct 21, 4:47 am,

[wtr-general] Re: Script runs well in irb, but not when i run it using as a whole

2010-09-27 Thread chandu.tennety
Instead of: wait_until {ie.frame(:src,./ app).text_field(:id,c_nameFieldId).exist?} Try: Watir::Waiter.wait_until {ie.frame(:src,./ app).text_field(:id,c_nameFieldId).exist?} I guess you could include Watir::Waiter and then use the method as Željko suggested, but I'm not sure of all the

[wtr-general] Re: user require 'win32ole'

2010-09-13 Thread chandu.tennety
Not sure if this will help, but if it's an .exe and you're running Vista or Windows 7, you may have to Run as Administrator to have certain permissions. Chandu On Sep 10, 8:49 am, Quang quang...@gmail.com wrote: Maybe Thanks for help On 10 Tháng Chín, 05:33, Željko Filipin zeljko.fili...@wa-

[wtr-general] Re: unable to find element using xpath

2010-08-17 Thread chandu.tennety
Goutham, Can you tell us which version of Watir you are using? What is the output when you type gem which watir on the command line? Chandu On Aug 17, 12:57 am, goutham mandadi goutham.mand...@gmail.com wrote: Hai Angrez, can u please help me on this i have seen ur post  regarding this but i

[wtr-general] Re: Ruby Debugger for Netbeans issue

2010-05-27 Thread chandu.tennety
How is this Watir related? This, but also your error message seems to indicate that you typed mainfest instead of manifest. Maybe as simple as a typo. On May 25, 4:36 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, May 25, 2010 at 7:24 AM, Prashant prashantshirbh...@gmail.com

[wtr-general] Re: WatiRspec 0.1.0

2010-04-08 Thread chandu.tennety
While we are on names, how about SpectiR? :) If no one else wants it, I'll take it. Chandu On Apr 7, 3:38 pm, Jarmo Pertman jarm...@gmail.com wrote: I understand what you're getting at. Of course i don't want to be impolite nor rude. I'm wondering, what does Jari himself think about this

[wtr-general] Re: How do I force typing into a text field

2010-04-05 Thread chandu.tennety
I've seen this behavior in ome proprietary web apps. Chances are there is a javascript firing when you manually click inside the text field to enter text. Inspect the element with Firebug before and after you click, and see if you can replicate that behavior in Watir using fire_event. Chandu On

[wtr-general] Re: Help with Modal Dialog boxes !!!!

2010-02-10 Thread chandu.tennety
I noticed that your Watir version is 1.5.2. I'm not sure how well modal dialogs were supported in that version. I would upgrade and try some of Charley's solutions. Chandu On Feb 10, 12:40 am, Rohan Premvallabh Ojha rohan.o...@bsil.com wrote: HI Charley, I had tried the method that you have

[wtr-general] Re: Another Variable Scope Question

2010-01-29 Thread chandu.tennety
Hi Edith, Try putting the myFrame under the describe in a before :each or before :all block. Chandu On Jan 28, 4:34 pm, Edith ebr...@serena.com wrote: 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

[wtr-general] Re: How to get html meta details

2009-11-03 Thread chandu.tennety
Marlon, Your original code works for me: {Content-Type=text/html; charset=iso-8859-1, keywords=title} Chandu On Nov 2, 10:51 pm, Marlon marlonmoja...@gmail.com wrote: I found the part of the solution herehttp://groups.google.com/group/watir-general/browse_thread/thread/566... it still did