[wtr-general] Find whether a tree has nodes under it

2010-07-20 Thread Ashok Prabhu
I have a web application which has a tree structure. I m using Watir to automate the application. Sometimes the test case fails where the tree group is empty (no nodes under it). Hence there is no plus sign to its left. However the application expects it to have nodes and fails. How do I find out w

[wtr-general] Unable to click on a radio button

2010-08-31 Thread Ashok Prabhu
I have a radio button with the following attributes. I m able to click on the radio button using the id attribute. However I m unable to click on it using the udefDisplayViewName attribute. This is the watir code that is trying to click on it using the udefDisplayViewName. ie.modal_dialog.table

[wtr-general] Re: Unable to click on a radio button

2010-09-01 Thread Ashok Prabhu
The script does not show any error. It hangs at the step trying to click on the radio button. Later it times out after sometime due to a condition in our script. On Sep 1, 12:21 pm, Željko Filipin wrote: > On Wed, Sep 1, 2010 at 8:22 AM, Ashok Prabhu wrote: > > However I m unable to

[wtr-general] Re: Unable to click on a radio button

2010-09-01 Thread Ashok Prabhu
some tool ? > > On Wed, Sep 1, 2010 at 6:22 PM, Ashok Prabhu wrote: > > I have a radio button with the following attributes. I m able to click > > on the radio button using the id attribute. However I m unable to > > click on it using the udefDisplayViewName attribute. > >

[wtr-general] Issue with modal dialog

2010-09-03 Thread Ashok Prabhu
I m stuck with the following issue in modal dialog. 1. Open a modal dialog 1. 2. Click on a button in the modal dialog 1. 3. Attach to the new modal dialog (modal dialog 2). 4. Do some operations in the modal dialog 2 and click ok (closes the modal dialog 2). 5. Click on a button in the modal dial

[wtr-general] Pointers to docs

2010-09-03 Thread Ashok Prabhu
Hi, I have been using Watir for sometime now. However I m still unclear about locating elements in a dom in cases like elements inside nested tables, nested frames and elements based on the index attribute. Are there any pointers to any good resources for further reading. Thanks, ~Ashok. -- Be

[wtr-general] Could not attach with UAC turned on

2010-10-06 Thread Ashok Prabhu
I have been facing the issue of not being able to attach to a ie 8 window using the title in windows 2008 with UAC turned on. I m able to attach to the window using title with UAC turned off. Could someone suggest a fix for this without turning off UAC in Windows 2008. Thanks, ~Ashok. -- Before

[wtr-general] Re: Could not attach with UAC turned on

2010-10-06 Thread Ashok Prabhu
I tried both the stuff, it didnt work. On Oct 7, 1:02 am, Ethan wrote: > Run ruby as administrator, or turn off "protected mode" in IE. > > On Wed, Oct 6, 2010 at 06:28, Ashok Prabhu wrote: > > I have been facing the issue of not being able to attach to a ie 8 >

[wtr-general] Radio button in a modal dialog

2010-11-09 Thread Ashok Prabhu
I m able to print the id of a radio button. However I could click the radio button using the set method. irb::030:0>ie.modal_dialog.table(:index,7).radio(:index,2).id => "radLogicalOR" However this step does not set the radio button. irb::030:0>ie.modal_dialog.table(:index,7).radio(:index,2).set

[wtr-general] Watir Issue with Japanese characters

2012-11-23 Thread Ashok Prabhu
m using ruby 1.8.6 and watir 1.5.1.1230 for my testing. I m trying to enter some japanese characters into the internet explorer textbox using watir. However I getting a series of boxed characters instead. I tried writing the japanese characters into a file using ruby and it works fine. Please find

[wtr-general] Re: Watir Issue with Japanese characters

2012-11-23 Thread Ashok Prabhu
This is a legacy setup. I m unsure of the where this version was downloaded from. irb(main):003:0> Watir::IE::VERSION => "1.5.1.1230" On Nov 23, 8:35 pm, Željko Filipin wrote: > On Fri, Nov 23, 2012 at 4:18 PM, Ashok Prabhu > wrote: > > >  m using ruby 1.8.6 and

Re: [wtr-general] Watir Issue with Japanese characters

2012-11-25 Thread Ashok Prabhu
2 at 4:18 PM, Ashok Prabhu > > > wrote: > > m using ruby 1.8.6 and watir 1.5.1.1230 for my testing. I m trying to > > enter some japanese characters into the internet explorer textbox > > using watir. However I getting a series of boxed characters instead. > >

Re: [wtr-general] Watir Issue with Japanese characters

2012-11-26 Thread Ashok Prabhu
er = nil ENV["watir_browser"]="ie" $Browser = Watir::IE.start("www.google.com") $Browser.text_field(:name,'q').value = "管理者" ####### On Monday, November 26, 2012 11:45:19 AM UTC+5:30, Ashok Prabhu