[wtr-general] dynamic constant assignment

2009-05-13 Thread Vicky Goyal
While runnin a WATIR script, i have used the frames FrameRef = ie.frame(:index, 2).frame(:index, 2) and i was getting the right output. when i write this code within a class or say in a method. while run time, i get Dynamic constant assignment error. I have tried with this step also... FrameRef

[wtr-general] Re: Unable to attach to a page on makemytrip

2009-05-13 Thread Isabel
Hi all, I tried using all the methods mentioned above (static and dynamic wait), but still I am not able to work on it. The Search Result page does not get loaded completely due to which the ie.image(:src,http://www.makemytrip.com/images/search-for- flights.gif).click does not get passed and

[wtr-general] Re: dynamic constant assignment

2009-05-13 Thread Angrez Singh
you start names of variables with Capital letter only if that variable is a constant. See naming conventions for ruby: http://www.techotopia.com/index.php/Understanding_Ruby_Variables - Angrez On Wed, May 13, 2009 at 11:45 AM, Vicky Goyal vikasrattango...@gmail.comwrote: While runnin a WATIR

[wtr-general] Re: Logging to file with Firefox

2009-05-13 Thread ash
Any one tried producing their own FireWatir logger? FireWatir doesn't support logging like Watir does. You need to write your own logger for that. You can add a JIRA ticket for this. - Angrez --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: Unable to attach to a page on makemytrip

2009-05-13 Thread Isabel
Hi All, We figured out how to go about it. We just had to replace .click with .click_no_wait Hence my script now is require 'watir' ie=Watir::IE.new ie.goto(www.makemytrip.com) ie.link(:href,http://www.makemytrip.com/international- flights/).click

[wtr-general] Re: Traversing nested elements

2009-05-13 Thread Gofu
Thank you jason, but i dont know whether they are links or tables (they sometimes change). I might be able to use decisions to write a routine for each element type seperately. Do you know how to do this in Watir? On May 12, 11:22 pm, jason jason.franklin.sto...@gmail.com wrote: not sure if

[wtr-general] Re: javascript popup window not responding to startClicker

2009-05-13 Thread jarodzz
I'm encountering the same issue. My guess is that the popup comes from iframe. That might kind of stopped startClicker to locate it? On May 13, 12:30 am, jason jason.franklin.sto...@gmail.com wrote: I am on a mac and linux with firefox so i cannot use this Autoitx thing that everyone seems

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-13 Thread Durgesh Nadkarni
Hi John, Thanks for your solution. But still it does not work the way I want. Its not capturing the second image with alert error after clicking search button. Below is my code. -- require 'test/unit' require 'watir'

[wtr-general] Re: Roo error on Ubuntu 9.04

2009-05-13 Thread Charley Baker
It looks like you don't have the developer tools installed on Ubuntu, it's failing to find them while attempting to build the hpricot binary. To install developer tools: sudo apt-get install build-essential * *Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir,

[wtr-general] Re: dynamic constant assignment

2009-05-13 Thread John Fitisoff
And it'll throw that error if you try to assign a value to a constant within a method. try creating a class variable (e.g., '@@var') instead. --- On Wed, 5/13/09, Angrez Singh ang...@gmail.com wrote: From: Angrez Singh ang...@gmail.com Subject: [wtr-general] Re: dynamic constant assignment

[wtr-general] Re: Watir::IE.new - how does the IE object differ from a normal Windows IE instance?

2009-05-13 Thread Bret Pettichord
With Watir, browser.goto(www.google.com) won't redirect the way it will when you type this string in your address bar. There is some front-end object that is not engaged. I'm wondering if this relates to your problem. Bret Jason N wrote: Brett, thanks. Unfortunately, but interestingly,

[wtr-general] Re: dynamic constant assignment

2009-05-13 Thread Vicky Goyal
well, what i understood is that while using a variable in the class or method, we should always initialize variable name with small caps or any special character. i was able to perform with @var and var too.. whereas Var gave the same error.. Thanks for quick answer. This came really handy.

[wtr-general] Re: How to move the cursor to starting point in a masked text_field.

2009-05-13 Thread Željko Filipin
On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote: I have a text field which has phone number mask (___) ___-. I have never seen something like that. Can you share a screen shot or link to the page? Željko --~--~-~--~~~---~--~~ You

[wtr-general] Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.

2009-05-13 Thread satish
Can some one tell me why my code here does not work? It seems to be doing the Send action in the browser URL address area instead of in the text_field area. Here is my code.. = require watir require win32ole ie.text_field(:id,

[wtr-general] Re: How to move the cursor to starting point in a masked text_field.

2009-05-13 Thread satish
Sure I can, but I am not sure how to upload the picture here. Is there a way to do it.? Our site can not be accessed from out side. sorry.. Thanks Satish. On May 13, 3:39 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com

[wtr-general] Re: How to move the cursor to starting point in a masked text_field.

2009-05-13 Thread Vicky Goyal
as you say if you have to set number as 123456789 it s typing as 1 2 3 4

[wtr-general] Re: How to move the cursor to starting point in a masked text_field.

2009-05-13 Thread satish
Hi Vikas, it does not type any thing since cursor is all the way to the end. I can see it is trying to type at the end one letter at a time. But we want to start typing from the begining.. any thoughts on that.? Thanks Satish. On May 13, 3:52 pm, Vicky Goyal vikasrattango...@gmail.com wrote:

[wtr-general] Re: How to move the cursor to starting point in a masked text_field.

2009-05-13 Thread Vicky Goyal
wel, you need to check the javascript code for that. There might be some validation for putting a certain type of text. Chk out that functionality paste your code here... dont attach screen shot.. may be html code On May 14, 1:08 am, satish spanchumar...@gmail.com wrote: Hi Vikas, it does not

[wtr-general] Re: How to move the cursor to starting point in a masked text_field.

2009-05-13 Thread satish
Here is my HTML for that Active Element: [INPUT], Index: [536] INPUT class=dxeEditArea onkeypress=aspxEKeyPress ('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox', event)

[wtr-general] Re: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.

2009-05-13 Thread Anu Gangavaram
where is the text field, on the browser or the windows popup? It the textfield is on the popup, you are using the browser object to focus. You should use AutoIt instead. On Wed, May 13, 2009 at 4:10 PM, satish spanchumar...@gmail.com wrote: I think I did focus on to text_field using following

[wtr-general] Re: Why this autoit code is not working? its doing send keys in the browser URL address area instead of in the text_field area.

2009-05-13 Thread satish
text_field is on the browser it self. No popups involved here. Thanks Satish. On May 13, 4:21 pm, Anu Gangavaram anuwri...@gmail.com wrote: where is the text field, on the browser or the windows popup?  It the textfield is on the popup, you are using the browser object to focus. You should

[wtr-general] Re: Weird timing behavior when using assert(object.exists?) when widgets exist.

2009-05-13 Thread Moochie
The issue I was having had to do with an error on the page within one of the widgets. It was a struts error (whatever that is) Once I removed that widget, it ran without hanging. On May 7, 4:33 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: Have you been to igoogle?  Those information

[wtr-general] Re: Roo error on Ubuntu 9.04

2009-05-13 Thread Richard Wijdenes
I've added require 'open-uri' -- no result I've done sudo apt-get install build-essential -- no result I've hacked roo.rb and commented out require 'roo/google' -- succes! I couldn't test it completely due to time-issues :( but it looks good. I will report my findings end of the week.