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

2009-05-04 Thread Shweta
Hi Tiffany, Thanks for your reply. I was not able to do using this method. Our poblem is between the tabs we are having images and there is no links corresponding to the tabs,the html code for the tabs is shown below TR TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/

[wtr-general] No Method Error

2009-05-04 Thread Chandu80
Hi, The code that I have written is as shown below.When I try to run this script,No Method Error is shown at the line where '#Error shown here' is written.I have gone through various posts but am not able to figure out the exact cause for this error.Please can anybody help me with this.It is not

[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] Re: How to write Recovery Scenario in Watir for unexpected popups

2009-05-04 Thread karim rayani
You can use begin rescue ensure statement for exception handling, this is the exception handling syntax for ruby begin code rescue e . write to file the description of failure ensure ... close the database connection end On Mon, May 4, 2009 at 2:36 PM, sHiVa krapa.ph...@gmail.com

[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 Shweta
Hi, thanks shiva 1) Those tabs are standard tabs 2) 3)there is no index property avilable for the property the properties/attributes that are available in the IE developer tool are as follows Namevalue 1) Class tabselected 2)

[wtr-general] Re: Stripping url

2009-05-04 Thread Željko Filipin
On Fri, May 1, 2009 at 15:02, ash ashbr...@gmail.com wrote: I don't really know Ruby yet And if you want to know what can you do with strings in Ruby (for future reference): http://www.ruby-doc.org/core/classes/String.html Željko --~--~-~--~~~---~--~~ You

[wtr-general] Re: Can i get help regardin WatiN

2009-05-04 Thread Željko Filipin
On Mon, May 4, 2009 at 07:35, spike vinaykumarl...@gmail.com wrote: can i get the solution's for WatiN here. Maybe, if you tell us what the problem is. Also, you will probably get better support at watir forum: http://sourceforge.net/mailarchive/forum.php?forum_name=watin-users Željko

[wtr-general] Re: Stripping url

2009-05-04 Thread aidy lewis
or goto the command line ri String ri String#split Aidy 2009/5/4 Željko Filipin zeljko.fili...@wa-research.ch: On Fri, May 1, 2009 at 15:02, ash ashbr...@gmail.com wrote: I don't really know Ruby yet And if you want to know what can you do with strings in Ruby (for future reference):

[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: exists? returns the number 8 instead of true

2009-05-04 Thread Jarmo Pertman
This happens due to the fact, that Watir::IE#exists? does just @ie.name =~ /Internet Explorer/, which returns nil or a number. But, since in Ruby everything except nil or false will be treated as true, then you can still use it as regularly like this: if $browser.exists? # do this else # do

[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] Issue with Running the Unit Tests

2009-05-04 Thread satish
I got following error when I try to run unit tests from location C: \ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\unittests\core_tests.rb == ruby core_tests.rb C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load --

[wtr-general] Re: Issue with Running the Unit Tests

2009-05-04 Thread Darryl (gem dandy) Brown
Hello Satish, Unit test will currently not run properly 'out of the box' with Watir ver 1.6. Please follow this link: http://wiki.openqa.org/display/WTR/Run+the+Watir+Unit+Tests Best regards, Darryl On May 4, 1:06 pm, satish spanchumar...@gmail.com wrote: I got following error when I try

[wtr-general] Re: Issue with Running the Unit Tests

2009-05-04 Thread satish
Hi Darryl, I followed all the instructions in that page. Still I could not do it. Please help me. Thanks Satish. On May 4, 1:20 pm, Darryl (gem dandy) Brown d-l- br...@roadrunner.com wrote: Hello Satish, Unit test will currently not run properly 'out of the box' with Watir ver 1.6.  

[wtr-general] Re: No Method Error

2009-05-04 Thread Darryl (gem dandy) Brown
Hello Chandu, Sorry, I didn't finish my thoughts at the end of the earlier reply - For future posts, it is advisable to reduce the script down to the problem area if possible. In this case, perhaps leave off the lines after the jsclick call. Regards, Darryl On May 4, 1:12 pm, Darryl (gem

[wtr-general] Re: Issue with Running the Unit Tests

2009-05-04 Thread Darryl (gem dandy) Brown
Hello Satish, I have not attempted to run the Unit tests. I just recalled reading that page when I started with Watir several months ago. I'll update again if I can help more. Regards, Darryl On May 4, 1:38 pm, satish spanchumar...@gmail.com wrote: Hi Darryl, I followed all the

[wtr-general] Re: FireWatir 1.6.2 unittests don't run

2009-05-04 Thread satish
Hi Paul, Can you please let us know what you did you to get this Unit Tests to work. I am having same problem too. Can you please let me know where to create that folders and what to copy etc. Really appreate your help. Thank you very much. Satish. On Apr 9, 11:35 am, Moochie

[wtr-general] Re: Issue with Running the Unit Tests

2009-05-04 Thread satish
This might help for some one to respond to me. Actually Paul posted saying he is able to fic this problem by creating a folder but he did not give any details there.

[wtr-general] Retrieving XML source

2009-05-04 Thread keithshaw
Hey All, I've been trying to use firewatir to retrieve some xml data from a server endpoint. At first I thought I could use the browser.html method to simply return the page source. Unfortunately I received the following error : htmlTypeError: htmlelem is undefined/html I did some googleing

[wtr-general] Re: How to click a cell in a dynamically changing Table?

2009-05-04 Thread Anu Gangavaram
Are using /#{value}/ syntax for regular expression? On Thu, Apr 30, 2009 at 1:29 AM, Prince3105 prince3...@gmail.com wrote: Hi All, I am a newbie to Watir and Ruby. I use below function for login process. As per user's Role Rights the user can navigate to the permitted pages. Initially

[wtr-general] Re: How to click a cell in a dynamically changing Table?

2009-05-04 Thread satish
There is a nice post here already on this. Please go through that. Thanks Satish. On May 4, 5:34 pm, Anu Gangavaram anuwri...@gmail.com wrote: Are using /#{value}/ syntax for regular expression? On Thu, Apr 30, 2009 at 1:29 AM, Prince3105 prince3...@gmail.com wrote: Hi All, I am a

[wtr-general] how to get what is currently selected now in the select_list?

2009-05-04 Thread satish
Hello, I am working drop down lists...(select_list). I want to know what is currectly selected. Both 'getAllContents' and 'text' is returning all of them available in drop down box. I just need a item that is currently selected. puts ie.select_list(:id, 'SelectList1').getAllContents puts

[wtr-general] Re: how to get what is currently selected now in the select_list?

2009-05-04 Thread Tiffany Fodor
Hi Satish! Give this a try: puts ie.select_list(:id, 'SelectList1').value Hope this helps! -Tiffany On May 4, 3:54 pm, satish spanchumar...@gmail.com wrote: Hello, I am working drop down lists...(select_list). I want to know what is currectly selected. Both 'getAllContents' and 'text' is

[wtr-general] Re: how to get what is currently selected now in the select_list?

2009-05-04 Thread George
Did you know: Extra value is what you get, when you buy Coronet! I don't know why I thought of that...or why I even bothered typing it out. On May 4, 3:05 pm, Tiffany Fodor tcfo...@comcast.net wrote: Hi Satish! Give this a try: puts ie.select_list(:id, 'SelectList1').value Hope this

[wtr-general] Re: Watir in JRuby?

2009-05-04 Thread Jared
I keep thinking I'd like to have access to a celerity-style driver when I'm running from normal Ruby for faster feedback...Is this on the radar? What would be required to get celerity to run under Ruby rather than JRuby? Jared You could run your tests throughCeleritywhich wraps HtmlUnit in a

[wtr-general] Re: Watir in JRuby?

2009-05-04 Thread Manish Sapariya
Check this out. http://github.com/langalex/culerity/tree/master It makes it possible to run watir test using celerity from C-Ruby. You need jRuby and Celerity though. Regards, Manish Jared wrote: I keep thinking I'd like to have access to a celerity-style driver when I'm running from normal

[wtr-general] Re: Can i get help regardin WatiN

2009-05-04 Thread spike
Hi How to handle file download popup. i've scenario where if i click on a button a filedownload popup will open and i need to click on the save button and specify path to save the file. how to do it? please suggest some solution. On May 4, 5:12 pm, Željko Filipin

[wtr-general] Re: Can i get help regardin WatiN

2009-05-04 Thread George
Hey Spike, I'm not too familiar with WatiN, but I do know that you can set the path using file_field $ie.file_field(:name, blah).set file_path On May 4, 9:10 pm, spike vinaykumarl...@gmail.com wrote: Hi How to handle file download popup. i've scenario where if i click on a button a