[wtr-general] Re: Help needed in automation using Watir

2009-05-13 Thread karim rayani
when doing automation, any testing tool has the concept of object identification be it QTP, SILKTEST etc, you can try to use indexing if possible for object identification, the developer can change the name, id etc indexing can help, but mind you that can also change if the devs donot understand t

[wtr-general] Help needed in automation using Watir

2009-05-13 Thread lokesh.agra...@gmail.com
Hi All, I am doing web application automation using Watir. The problem I am facing is, whenever we get a new build from developers there are changes in id, name of some objects. Due to which our scripts fails and manually we need to find what are the changes by viewing source code. This is real

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

2009-05-13 Thread jarodzz
Hi, Jason. After hacked a little in def startClicker, I have it worked within my iframe. all you got to do is to update the first line of startClicker to locate the right frame. e.g. original one: jssh_command = "var win = #{BROWSER_VAR}.contentWindow;" if you want click something in frame A: jss

[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

[wtr-general] Excel interface class: modifying to handle writing to a cell

2009-05-13 Thread George
Hi folks, I know there was a thread a few months ago that didn't come a resolution, and for some reason I couldn't reply, so I hope it was OK to start a new one! I just wanted to know how feasible it would be to write to a cell using the Excel interface class. This is a sample of what I'd like

[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" wrote: > Have you been to igoogle?  Those information boxes are widgets. > > T

[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 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 use AutoIt instea

[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 wrote: > > I think I did focus on to text_field using following command. > ie.text_fi

[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] === Thanks Satish On May 13, 4:12 pm, Vicky Goyal wrote: > wel, > you need to

[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 wrote: > Hi Vikas, it does not type any thing since curs

[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
I think I did focus on to text_field using following command. ie.text_field(:id, "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­ askTextBox_I").focus I guess that should do right? Thanks Satish. On May 13, 4:06 pm, Anu Gangavaram wrote: > It is because the focus is

[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 wrote: > as you say > if you have to

[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
It is because the focus is currently set on the browser and not on the popup/window. You need to first set focus on the popup or activate it: autoit.WinActive(). On Wed, May 13, 2009 at 3:43 PM, satish wrote: > > > Can some one tell me why my code here does not work? > It seems to be doing the

[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
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 wrote: > On Wed, May 13, 2009 at 8:54 PM, satish wrote: > > I have a text field which has phone number m

[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, "ctl00_contentChildWindow_secUserDetails_subsecUs

[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 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 received this message becau

[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. On

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

2009-05-13 Thread satish
Hello, I have a text field which has phone number mask "(___) ___-". When I use .set command, cursor is starting from all the way to the end so I am not able to type in the text. ie.text_field(:id, "ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox_I").set (

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

2009-05-13 Thread Mark Anderson
e_firefox_1/*http:/downloads.yahoo.com/in/fire fox/?fr=om_email_firefox> Information from ESET NOD32 Antivirus, version of virus signature database 4071 (20090513) __ <http://in.rd.yahoo.com/tagline_firefox_1/*http:/downloads.yahoo.com/in/fire fox/?fr=om_email_firefox> The

[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 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 wrote: > From: Angrez Singh > Subject: [wtr-general] Re: dynamic constant assignment > To: watir-general@googlegroup

[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, http://wtr.rub

[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' require

[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 wrote: > I am on a mac and linux with firefox so i cannot use this Autoitx > thing that everyone seems to be using to click away javas

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

2009-05-13 Thread Angrez Singh
logger has nothing to do with FireWatir. See this: http://log4r.sourceforge.net/ as firewatir script is a ruby program, you can add your own logging messages in the scripts. - Angrez On Wed, May 13, 2009 at 12:41 PM, ash wrote: > > Any one tried producing their own FireWatir logger? > > > > Fi

[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 wrote: > not sure if this helps - but it might be a st

[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 ie.text_field(:id,"departure_0").value=

[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: 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 wrote: > > While runnin a WATIR script, i have used the f

[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