[wtr-general] Re: bring_to_front function not working...

2009-10-05 Thread sHiVa
Hi, Did you register the AutoItx3.dll? Run the following command from command prompt. regsvr C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir \AutoItX3.dll Thanks Regards Siva Phaneendra K On Oct 5, 5:34 pm, Prince3105 prince3...@gmail.com wrote: Hi Al, I am using below code in my

[wtr-general] Re: (Fire)Watir Code Generator?

2009-08-04 Thread sHiVa
Hi Mojares, Recorders will help at the early stages of learning. Those are not meant for complex tasks. It can record events performed on web objects. But coming to a alert popup, It is a window based component. We must call the win32api to handle such components. Better not to relay on

[wtr-general] Re: Does watir support i18n testing?

2009-07-29 Thread sHiVa
Hi Zhimin I had a try to automate Chinese Google website using watir. All the Chinese characters are displayed as square boxes when i use IE developer tool bar and when I try to copy Chinese characters in to Scite, those are displayed as ?. Please tell me the approach for testing Chinese (any of

[wtr-general] Re: Data driven test using .CSV file

2009-07-27 Thread sHiVa
Hi Chris, Your idea of implemnting a CSV based framework is very nice. It used a lot in my current framework. - Thanks Regards Siva On Jul 27, 10:56 am, takanobu watanabe rreedd...@gmail.com wrote: Sorry spread it. This is that CSV sample. -- ID,mnemonic,var-name,value

[wtr-general] Re: Can't click on an image link.

2009-07-25 Thread sHiVa
Hi james, use the following code for clicking the image browser.button( :id, /imgNavImage$/ ).click Regards Siva On Jul 25, 12:33 am, James jgcpal...@gmail.com wrote: Never Mind!  I should have tried button. On Jul 24, 3:25 pm, James jgcpal...@gmail.com wrote: Here's the source:

[wtr-general] Re: Differences in behavior between IE and FF3/3.5

2009-07-24 Thread sHiVa
It is very mush fine in my system George. No error is given. - Thnaks Regards Siva On Jul 25, 4:14 am, George george.sand...@gmail.com wrote: Sorry, please update the script to: Watir::Browser.default = 'firefox' On Jul 24, 4:13 pm, George george.sand...@gmail.com wrote: Help! I

[wtr-general] Re: Find the parent window of a javascript prompt

2009-07-23 Thread sHiVa
javascript. Thanks, Tony On Jul 19, 8:16 pm, sHiVa krapa.ph...@gmail.com wrote: Tony, Are you able to get the popup text using Autoit when the popup is resulted from Firefox?. When i tried to get it popup text is displyes as blank. Regards Siva On Jul 17, 8:43 pm, Tony ynot

[wtr-general] Re: Find the parent window of a javascript prompt

2009-07-19 Thread sHiVa
Tony, Are you able to get the popup text using Autoit when the popup is resulted from Firefox?. When i tried to get it popup text is displyes as blank. Regards Siva On Jul 17, 8:43 pm, Tony ynot...@gmail.com wrote: Hi, Working on getting a common way to handle popups in IE and Firefox. Iam

[wtr-general] Re: Does firewatir supports :slow, :fast, :zippy properties for control execution speed?

2009-07-19 Thread sHiVa
or ie.speed = :zippy Hope this will help you. Regards Gokul On Jul 18, 3:25 pm, sHiVa krapa.ph...@gmail.com wrote: HI , Does firewatir support speed controls like in IE :fast,:zippy?. If not how can i control the execution speed of my test? Thanks in advance Regards Siva- Hide quoted

[wtr-general] Re: Does firewatir supports :slow, :fast, :zippy properties for control execution speed?

2009-07-19 Thread sHiVa
Thanks Alister. On Jul 20, 10:28 am, Alister Scott alister.sc...@gmail.com wrote: Hi, Only IE support browser speeds. See JIRA:http://jira.openqa.org/browse/WTR-303 Cheers, Alister On Jul 20, 1:53 pm, sHiVa krapa.ph...@gmail.com wrote: Gokul, Thanks for your quick reply. But I

[wtr-general] Re: asset_enabled error to click a button

2009-07-18 Thread sHiVa
Hi Raveendran, I think there could be a hidden button existed on the page with same properties of the button you are trying to click. Try to use index property along with the current button value property. Ex: ie.button(:id=/action_button/,:index=2).click try to verify index value with 1,2,3.

[wtr-general] Does firewatir supports :slow, :fast, :zippy properties for control execution speed?

2009-07-18 Thread sHiVa
HI , Does firewatir support speed controls like in IE :fast,:zippy?. If not how can i control the execution speed of my test? Thanks in advance Regards Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir

[wtr-general] Is there any other alternative for startClicker method in firewatir?

2009-07-17 Thread sHiVa
Hi I am trying to write a single function to handle popups in all browsers. My idea is identify popup windows using its titles. I used Autoit for achieving this but failed to handle popups in firefox. I am unable to identify popups using title property. As angrez said i tried to use startClicker

[wtr-general] Re: Java Script pop-ups handling in WATIR

2009-07-16 Thread sHiVa
Hi , There is problem with ruby 1.8.6 -27 build. use 1.8.6 - 26 build. I think WindowHelper.rb has very nice functions. use it. Regards Siva On Jul 16, 8:19 pm, Smruti Ranjan Kar smrutiranjan@gmail.com wrote: Hi Charley, I'm using ruby186-27_rc2 C:\Documents and Settings\userruby -v

[wtr-general] Re: How do I stop getting emails from Watir General?

2009-07-16 Thread sHiVa
1. Click on My Groups link on the top of the page 2. Find Manage my memberships link on the groups list page and click on it 3. Select No Emails from the list box which is exactly opposite to the watir general group. 4. Save settings On Jul 16, 10:12 pm, Dylan mej...@gmail.com wrote: Edit my

[wtr-general] Re: Any else having problem with click_no_wait method.?

2009-07-16 Thread sHiVa
Exactly.. Click_no_wait method is not working in 1.8.6 27 build. On Jul 17, 7:44 am, Bill Agee billa...@gmail.com wrote: I finally got around to trying this on my Vista environment - turns out this recommendation was absolutely right. :) click_no_wait works fine in Vista as long as Ruby is

[wtr-general] Re: firewatir attach() issue

2009-06-20 Thread sHiVa
I have copies latest firefox.rb from watir trunck and able to attach popup winows. Thanks Siva On Jun 20, 2:59 pm, sHiVa krapa.ph...@gmail.com wrote: Please help me in this isue. I am unable to solve this problem Thanks Regards Siva On Jun 20, 8:41 am, sHiVa krapa.ph...@gmail.com wrote

[wtr-general] How to execute arbitrary vbscript files using ruby

2009-06-20 Thread sHiVa
Hi all, I have some reusable functions on WMI in a vbscript file. I would like to call those functions from ruby code. I don’t know how to evaluate/ call vbscript code from ruby. My plan is to integrate my vbscript functions with watir test cases. Is it possible? Regards Siva

[wtr-general] Re: Can v handle alert messages after certain amount of time

2009-05-21 Thread sHiVa
Hi, I would like to close a popup after certain time interval through external thread. is it possible? How to find out an already opened popup creation time? Regards Siva Phaneendra Krapa On May 15, 10:49 pm, Chuck van der Linden sqa...@gmail.com wrote: is this just one particular place in

[wtr-general] Re: html method on watir don't return the real html

2009-05-20 Thread sHiVa
Hi TCBlues, As it is an another package in ruby, you can mix up both Watir and net/ http. Grab all the html content in to a file or string, and perform your desired operations. Regards Siva Phaneendra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message

[wtr-general] Re: html method on watir don't return the real html

2009-05-20 Thread sHiVa
Hi TCBlues, This code can help you. Here what i am doing is, using watir i opened yahoo.com and by passing the current yahoo url to the net/http i am capturing all the html code as a response for the url require 'watir' require 'net/http' require 'rubygems' ie=Watir::IE.start('www.yahoo.com')

[wtr-general] Re: How to simulate right mouse action

2009-05-19 Thread sHiVa
Hi Hunter, Please refer this below link for simulating right click on any of the browser element. http://wiki.openqa.org/display/WTR/Right+Click+an+Element Regards Siva Phaneendra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: Unable to locate element

2009-05-19 Thread sHiVa
Hi Kamesh, Use this code to click on the New Voice Record link: #--- ie.link(:innerText,/New Voice Record/).click #--- Regards Siva Phaneednra

[wtr-general] Re: How to upload screen shot here on this group.

2009-05-17 Thread sHiVa
Send your composed mail to watir-general@googlegroups.com with attachment. Automatically you can see your post with attachment. Regards Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To

[wtr-general] Re: How to work with popups?

2009-05-17 Thread sHiVa
Hi Sathish, Please increase the waitTime value from 3 to 15 or 30. With out using click_no_wait script will not move further. So click_no_wait is mandatery. Click_no_wait will take more time to click on a button than ordinary click method. So increasing the waitTime value will give you desired

[wtr-general] Re: How to work with popups?

2009-05-16 Thread sHiVa
Hi Sathish, Use this code to click on a popup require 'test/unit' require 'watir/ie' require 'win32ole' require 'watir/screen_capture' require 'watir\contrib\enabled_popup' #Code START for handling a popup def jsClick( ie,

[wtr-general] Re: How to fetch the Selected Item in a ListBox

2009-05-14 Thread sHiVa
Use this code for retriving the current value of a list box selectedItem= ie.select_list(:name,'List box name').value Regards Siva Phaneednra Krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

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

2009-05-14 Thread sHiVa
Dude, Please use this before setting a value in your text field and let me know if any issue. ie.text_field(:id, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM­ askTextBox_I).clear ie.text_field(:id,

[wtr-general] Re: kiosk mode?

2009-05-14 Thread sHiVa
Hi Phil, You can open internet explorer in kiosk mode using the kiran's method. Where you can open the explorer only. Later if you want to drive the browser, you need to use attach method for automate the browser. Follow the send keys method where you can not necessary to open the browser and

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

2009-05-09 Thread sHiVa
I tried to print the frame set in a page using this code snippet and able to view frmaes require 'watir' ie=Watir::IE.start('http://www.quackit.com/html/templates/frames/ frames_example_3.html') puts ie.show_frames But when i tired to print the frames in www.makemytrip.com, 'access denied'

[wtr-general] Re: Insallation issue

2009-05-09 Thread sHiVa
Hi Vicky, When you try the both commands, to install Watir, any of the below two things might be happen 1. If you get invalid gem format error -- Please disable the antivirus, and firewall settings (I faced the same in my company) 2. If the script is keep on downloading gems means, system

[wtr-general] How to determine last used row in Excel sheet

2009-05-07 Thread sHiVa
Hi all, I need to find out the last used row number in my excel work sheet. I am able to find out the number of rows in a used area using this code snipped worksheet = workbookObject.WorkSheets(Results Sheet) worksheet.Select usedArea=worksheet.usedRange puts usedArea.Rows.Count Please any

[wtr-general] Re: How to determine last used row in Excel sheet

2009-05-07 Thread sHiVa
Hi Anu, Thanks for your suggestion. As u said i can navigate to the last row in the used range of excel and print the data. My question is the used range may start from any cell like Range(D5:H10). I would like to determine the H10 (Where 10 is the last used row number) value in the range. any

[wtr-general] Re: Problem with ie.goto when we used to navigate between the tabs

2009-05-04 Thread sHiVa
Hi Swatha, 1. Are those TABS are standard tabs or will change based on the user data? 2. Could you confirm that is there any Ajax calls when you are navigating from one tab to another? 3. Verify the index property of each tab when moving from one tab to another. Index property might be get

[wtr-general] How to write Recovery Scenario in Watir for unexpected popups

2009-05-04 Thread sHiVa
Hi all, While running my test suite, if any exception is raised, that is handled by my driver program and rest of the scripts are executing smoothly. But if any unexpected popup which is not expected on the application, then total script is getting blocked from execution. Can any one give me an

[wtr-general] Re: How to write Recovery Scenario in Watir for unexpected popups

2009-05-04 Thread sHiVa
I am able to handle known and unknown exceptions. The main problem is, if some unexpected popup alert is appeared in the application how can i handle it? With out click the alert popup, my script will never move on. My Idea of handling unknown popup alert is handling with threads. One thread

[wtr-general] Re: Problem with ie.goto when we used to navigate between the tabs

2009-05-04 Thread sHiVa
Hi Shweta, Index property will not visible to you. Just use it as a supporting property along with other property. Index values for each tab should be 1- first tab 2- Second tab 3- Third tab like

[wtr-general] Re: List of WIN32OLE applications?

2009-05-04 Thread sHiVa
Hi George, According to my knowledge, these are the applications you can automate using win32ole. Ms Word Ms Excel Ms PPT MS Out look, Internet Explorer Regards Siva Phaneendra krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[wtr-general] Re: How to call a function fom Excel ?

2009-04-27 Thread sHiVa
at 11:47 PM, sHiVa krapa.ph...@gmail.com wrote: Hi all, I would like to manage my test suite in excel sheet. I put all of my function calls in  excel. when i call a functions from excel sheet that is a string type.  How can i execute that funtion at runtime? Regards Siva Paneendra

[wtr-general] How to call a function fom Excel ?

2009-04-25 Thread sHiVa
Hi all, I would like to manage my test suite in excel sheet. I put all of my function calls in excel. when i call a functions from excel sheet that is a string type. How can i execute that funtion at runtime? Regards Siva Paneendra krapa --~--~-~--~~~---~--~~

[wtr-general] How to retrive table cell numbers by text value?

2009-03-13 Thread sHiVa
Hi all, Greetings!. I need to find out the row and column number of a table based on the given text. Do we have any direct method available in WATIR for this or do i need to write the old traditional class for retrieving cell numbers? Thanks Regards Siva Phaneendra Krapa

[wtr-general] WIN32OLE::new(excel.Application) can Open() method takes relative path?

2009-01-28 Thread sHiVa
Hi all, When i use this code with relative path, i am getting an error, but not if i use absolute path. As a part of my Watir framework, i need to use relative path. Please help me in this. - Thanks excel =

[wtr-general] require 'roo' giving Bad file descriptor error

2009-01-28 Thread sHiVa
Hi all, i am trying to use roo for reading Excel file. When i am trying to invoke 'roo' package using require 'roo' the following error is displayed. Plase help me in this.-- Thanks Errno::EBADF: Bad file descriptor from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/

[wtr-general] Re: Need to pick number from the text

2009-01-28 Thread sHiVa
Hi Vasu, use this code; #* text=Ref ID: 12345 num=text.split(:) intnum=num[1].to_i print intnum #* I hope this will help u . :) On Jan 29, 9:56 am, vasu br.vas...@gmail.com wrote: Hi,