[wtr-general] Re: bring_to_front function not working...
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 scripts. My script has so many sendkey operations. So i am using bring_to_front function to activate the application. But its not working and it doesn't throw any error. So please give me any other options are available in Watir like WSH's AppActivate . @ie = Watir::IE.new @ie.goto $url @ie.maximize @ie.bring_to_front @ie.text_field(:id,txtUserName).set user_id @ie.text_field(:id,txtPassword).set password @ie.button(:id,btnSubmit).click Thanks, Prince3105 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: (Fire)Watir Code Generator?
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 recorders. Regards Siva On Aug 4, 10:37 am, Marlon Mojares marlonmoja...@gmail.com wrote: Is there a recorder that can record javascript popup? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Does watir support i18n testing?
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 other languages) web sites. - Thanks Regards Siva On Jul 28, 3:32 am, Zhimin zhiminz...@gmail.com wrote: Watir supports i18n, I have been using it to test a web site in chinese. I couldn't paste the sample here. But had no luck with FireWatir, it seems JSSH not supporting i18n. If you want to give a try, download iTest2 (http://itest2.com), open project c:\Program Files\iTest2\samples\demo\demo.tpr Run chinese_spec.rb Zhimin On Jul 24, 3:02 pm, Krapa krapa.ph...@gmail.com wrote: Hi, How to test i18n (Chines, Japanies etc...) applications using watir? Do we have any approach for it? Does watir support it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Data driven test using .CSV file
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 1,companycode,company_code,51236 2,companyname,company_name,Watir corp 3,company-zip-code,zip_code,111011 4,company-prefecture,select_prefecture,MA 5,company-prefecture for update,select_prefecture2,TT 6,company address,address_district,Gossam city -- Just last var is used. On Mon, Jul 27, 2009 at 2:47 PM, takanobu watanaberreedd...@gmail.com wrote: miscode mhc = Array::new | V company = Array::new On Mon, Jul 27, 2009 at 2:46 PM, takanobu watanaberreedd...@gmail.com wrote: I use CSV like that below -import.rb-(csv import)- #! ruby -Ku #!/usr/bin/env ruby require 'csv' $KCODE = 'UTF8' #import company-data settings mhc = Array::new CSV.foreach(data/company_var.csv) do |row| company Kconv.kconv(row.join(','),Kconv::UTF8) end $company_code = company[1].split(',').last.to_s $company_name = company[2].split(',').last.to_s $zip_code = company[3].split(',').last.to_s $select_prefecture = company[4].split(',').last.to_s $select_prefecture2 = company[5].split(',').last.to_s $address_district = company[6].split(',').last.to_s something like that. then you can use that values -Test case file- require 'import' some test code... $company_name... But,Maybe someone knows more simple and smart way. Hope it help you. It is work,I use it for job too. tknv/ On Mon, Jul 27, 2009 at 1:39 AM, Chris McMahonchristopher.mcma...@gmail.com wrote: On Jul 25, 9:03 am, RAM rahulbhai...@gmail.com wrote: Hi allI am very new to Watiranybody here knows how to import value from .CSV files and Export Results into an .CSV file in Watir. Please reply and provide links if similar subject is already posted. I wrote a toy framework that does exactly this: http://chrismcmahonsblog.blogspot.com/2009/04/ui-test-framework-desig... Please let us know if that is useful. -Chris -- tknv/ -- tknv/ -- tknv/- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Can't click on an image link.
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: td input type=image name=navLocation:dlCrumbList:_ctl0:imgNavImage id=navLocation_dlCrumbList__ctl0_imgNavImage onMouseover=document.getElementById ('navLocation_lblCurrentLocation').innerHTML=this.alt onMouseout=document.getElementById ('navLocation_lblCurrentLocation').innerHTML='Region 1 (1)' src=../ App_Themes/co/locationdrilldown_hollow.jpg alt=Region 1 (1) border=0 / /td I've tried browser.link(:id, navLocation_dlCrumbList__ctl0_imgNavImage).click browser.image(:id, navLocation_dlCrumbList__ctl0_imgNavImage).click browser.div(:id, navLocation_dlCrumbList__ctl0_imgNavImage).click browser.span(:id, navLocation_dlCrumbList__ctl0_imgNavImage).click None of them work. They all say element not found. I can't seem to find a way to grab onto this image link. Any ideas? Thanks! James- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Differences in behavior between IE and FF3/3.5
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 have a real-life example of some very strange behavior. This works just fine in IE but it is NOT working with FF for some reason: require 'watir' Watir::Browser.default = 'ie' browser = Watir::Browser.new browser.goto http://www.truckersedge.net; browser.image(:alt, Members Login Here).click browser.text_field(:id, ctl00_cphMain_txtUserName).set blahblah browser.text_field(:id, ctl00_cphMain_txtPassword).set blahblah browser.button(:id, ctl00_cphMain_btnSubmit).click browser.link(:text, Cancel).click browser.image(:alt, Members Login Here).click I got the following error...any ideas why this is happening? C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:967:in `assert_exists': Unable to locate element, using :alt, Members Login Here (Watir::Exception::UnknownObjectException) from C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:1112:in `click' from test.rb:13- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Find the parent window of a javascript prompt
Thnkas Tony. I will look into it. Would you provide a sample code snippet? Regards Siva On Jul 20, 2:04 pm, Tony ynot...@gmail.com wrote: Hi Siva, Not possible to get the popup text through the autoit or win32ole. You can however get the text through from the dialog box dom using 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...@gmail.com wrote: Hi, Working on getting a common way to handle popups in IE and Firefox. Iam done with handling popups in IE. In Firefox iam able to handle javscript popups, (alert, confirm, prompt and auth dialog). The issue is how do i know the popup is a child to the window which is under test.(firewatirs WINDOW_VAR) If there are more than 1 popup, then i would not know which popup to handle. Does any one know how to get the window from which the javascript popup was created, so that i could compare the object to the window firewatir is using and then handle it? Right now i use latest created window(window most recently created) and assume this is the popup which doesnt seem to be a good solution. Thanks, Tony- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Find the parent window of a javascript prompt
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 done with handling popups in IE. In Firefox iam able to handle javscript popups, (alert, confirm, prompt and auth dialog). The issue is how do i know the popup is a child to the window which is under test.(firewatirs WINDOW_VAR) If there are more than 1 popup, then i would not know which popup to handle. Does any one know how to get the window from which the javascript popup was created, so that i could compare the object to the window firewatir is using and then handle it? Right now i use latest created window(window most recently created) and assume this is the popup which doesnt seem to be a good solution. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Does firewatir supports :slow, :fast, :zippy properties for control execution speed?
Gokul, Thanks for your quick reply. But I want to use :zippy,:fast,:slow options in firewatir. Is it possible? Regards Siva On Jul 19, 10:57 pm, Gokul railsthin...@gmail.com wrote: Yeah... you can control the speed of execution. For example, ie = Watir::IE.new ie.speed = :fast 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 text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Does firewatir supports :slow, :fast, :zippy properties for control execution speed?
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 want to use :zippy,:fast,:slow options in firewatir. Is it possible? Regards Siva On Jul 19, 10:57 pm, Gokul railsthin...@gmail.com wrote: Yeah... you can control the speed of execution. For example, ie = Watir::IE.new ie.speed = :fast 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 text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: asset_enabled error to click a button
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. I hope this will help you! Regards Siva Phaneendra Krapa On Jul 18, 2:16 pm, Raveendran P raveend...@railsfactory.org wrote: Hi Venki, Any luck ? I am also facing the same issue. Please reply to me about this issue... Awaiting your reply.. On Sat, May 30, 2009 at 1:02 PM, Venkat venkateshla...@gmail.com wrote: I wrote a code to click on button ie.button(:id, action_button).click But I am getting following errors: C:\Documents and Settings\\Desktopruby two-minute.rb C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in `assert_e abled': object id and action_button is disabled (Watir::Exception::ObjectDisabl dException) from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:22 :in `click!' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:21 :in `click' from two-minute.rb:18 HTML Source code of the button div id=mid_row/div div id=bot_row button type=button class=button id=action_button/ button /div My guess is my syntax is right but still its not clicking on button. I am not sure why? -- Regards, P.Raveendran- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Does firewatir supports :slow, :fast, :zippy properties for control execution speed?
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 General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Is there any other alternative for startClicker method in firewatir?
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 method but this method required to call before clicking a button. using startClicker does not serve my purpose. I am using the following code for handling a popup in google preference page from firefox browser.: require 'win32ole' begin autoit = WIN32OLE.new('AutoItX3.Control') loop do autoit.ControlClick('The page at http://www.google.co.in says:','', 'OK') sleep(5) end rescue Exception = e puts e end Please guide me how to identify popups using autoit in firefox. Thanks in advance Regards Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Java Script pop-ups handling in WATIR
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 ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] On Thu, Jul 16, 2009 at 7:58 PM, Charley Baker charley.ba...@gmail.comwrote: Try click! instead of click_no_wait, which specific version of Ruby are you using, the latest one click 1.8.6rc2? What does ruby -v give you? There is a problem with that installer if that's the one you used where command line arguments don't get quoted correctly. Charley Baker blog:http://blog.charleybaker.org/ Lead Developer, Watir,http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Thu, Jul 16, 2009 at 10:20 AM, Smruti smrutiranjan@gmail.comwrote: Hello, I have been trying to automate a requirement, that is like - When I click on a link on the page, a popup should open up - I have to verify if the pop up opened and if the text in the pop up is correct - Click 'OK' on the pop up and move on. I have tried the suggestions at http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups , but they did not work. I tried with AutoIt as well as watir/contrib/ enabled_popup. My observations are 1. If I click the button using, 'click', the pop up remains open and the script does not move forward. So, the script written after do not get executed. But if I run from IRB it works fine. 2. If I click the button using 'click_no_wait', the pop up gets closed immediately and the following scripts do not find the pop up. XP SP2 Ruby 1.8 Watir 1.6.2 IE Please, suggest.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How do I stop getting emails from Watir General?
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 membership on the right hand side, I believe. -Dylan On Jul 16, 9:42 am, Geniene Martorell martore...@hotmail.com wrote: I used to want the emails, now I don't. I set my subscription to No Email but I am still getting emails. I don't want to unsubscribe to stop the emails - any ideas? Thanks! EMAILING FOR THE GREATER GOOD Join me- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Any else having problem with click_no_wait method.?
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 installed using the ruby186-26.exe installer. My problems started when I installed using ruby186-27_rc2.exe. I updated the issue in Jira. Thanks Bill On Fri, Jun 12, 2009 at 6:03 PM, Charley Baker charley.ba...@gmail.comwrote: I may be wrong, but this seems to me to be related to the latest ruby one click installer - 1.8.6-27 Release Candidate 2 , not windows vista or any other os. We are using ruby command line args which aren't interpreted correctly in the latest the one click installer. Jim Matthews detailed it out on on this list and submitted it as an issue. I will also report this as an issue in the latest one click. There may be something around the patch, but it doesn't work in xp. There might be two separate issues. Jim, if you're around, can you send your report to Luis and the one click installer? -c On Fri, Jun 12, 2009 at 3:23 PM, Bill Agee billa...@gmail.com wrote: I filed this in Jira and attached the patch: http://jira.openqa.org/browse/WTR-320 Thanks Bill On Fri, Jun 12, 2009 at 2:09 PM, Bill Agee billa...@gmail.com wrote: A patch exists that makes click_no_wait work on Vista. I'm successfully using it with IE8 on Vista SP1 when running as an administrator. Also, I think there's a minor gotcha with this patch that needs to be fixed or worked around: For me, the same patch did not work on XP. The patch got carried over from Vista to XP in my test environment since I use the same set of test files on both OSes, and click_no_wait stopped working on XP. I had to add conditional code to only apply the patch when on Vista. Just something to watch out for. More info: http://www.mail-archive.com/watir-general@googlegroups.com/msg02001.html http://rubyforge.org/pipermail/wtr-development/2009-January/000400.html Thanks Bill On Fri, Jun 12, 2009 at 1:16 PM, Venkat venkat...@gmail.com wrote: Hi Satish, Thanks for your research and help. I am running vista and have the issue that has been reported here and in other forums - that of 'click_no_wait' simply highlights the element without actually 'clicking' on the screen element. And yes, I am running Ruby version 1.8.6-27. I had difficulty uninstalling Ruby and re-installing Watir earlier separately - i.e. without using the windows 'one-click' installer. So before I go through that pain again, wanted to check if you are running vista (and IE7)? And if that is the true, then I can spend time in reverting to 1.8.6.26 version of Ruby. Thanks again. Venkat- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: firewatir attach() issue
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: Hi orde, I want to work with Firefox. Would you please provide code for attaching a browser popup using firefox? I already succeeded with internet explorer regards Siva- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How to execute arbitrary vbscript files using ruby
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 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Can v handle alert messages after certain amount of time
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 your script? You could do something like grab current time into a variable 'start time' then have a while loop repeats if the process is not finished, and inside the loop you sleeps for a few seconds, checks to see if 5 min has elapsed (and take appropriate action, then break out of the loop) lots of potential ways to skin this cat, just need to really have a better idea of exactly what you are trying to do to suggest what might be considered an 'optimal' way to handle this. On May 15, 12:28 am, suri sureshreddy@gmail.com wrote: Hi, I have a scenario where i stucked, I have got a script alert in application, If i want to capture it and then after 5 mins i have to click on OK saying a mesg time out in my log. Thanks in advance.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: html method on watir don't return the real html
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 because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: html method on watir don't return the real html
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') url=ie.url puts html = Net::HTTP.get_response(URI.parse(url)).body Regards Siva Phaneendra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to simulate right mouse action
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 subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to locate element
Hi Kamesh, Use this code to click on the New Voice Record link: #--- ie.link(:innerText,/New Voice Record/).click #--- Regards Siva Phaneednra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to upload screen shot here on this group.
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 post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to work with popups?
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 result. Note: The same code is working for me in my machine. I verified and sent you the code. :) If this code is not working after changing the waitTime, Let me know, i will give you another code snippet. Regards Siva Phaneendra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to work with popups?
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, button, user_input=nil) begin waitTime=3 hwnd = ie.enabled_popup(waitTime) puts(wait time = 30) if (hwnd) puts(if = hwnd) w = WinClicker.new if ( user_input ) puts(if = user input) w.setTextValueForFileNameField(hwnd, #{user_input}) end sleep 3 puts (CLICK THE BUTTON) w.clickWindowsButton_hwnd(hwnd, #{button}) w=nil end rescue Exception print error boss\n end end #Code END for handling a popup ie.image(:id, 'ctl00_contentChildWindow_secUserDetails_ctl02_menu_secUserDetails_DXI0_Img').click_no_wait jsClick(ie, OK) Regards Siva Phaneendra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to fetch the Selected Item in a ListBox
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 group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to move the cursor to starting point in a masked text_field.
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, ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtM askTextBox_I).set (12345678901234567890) Regards Siva Paneendra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: kiosk mode?
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 attaching the window. require 'watir' ie=Watir::IE.start('http://www.google.com') puts ie.send_keys({SHIFT}+{F11}) here when the send key function calls, the browser will tern in to the kiosk mode. Let me know if you need any further info. Regards Siva Phaneendra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to attach to a page on makemytrip
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' error is displayed. Might be the error is not due to security.There might be an another issue. I have seen a defect in zira regarding this. http://jira.openqa.org/browse/WTR-96 Regars Siva Phaneendra Krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Insallation issue
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 update is big in size. Wait for some more time (After completion of system -- update, a series of notes with successfully updated message will be displayed. Regards Siva Phaneendra Krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How to determine last used row in Excel sheet
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 one help me to find out the last used row number. Cheers Siva Phaneendra Krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to determine last used row in Excel sheet
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 way i got the solution for my query. Here is the statement useful usedAreaaddress=worksheet.UsedRange.ActiveRange.adress That will return the address of Used range in an excel sheet Regards Siva Phaneendra krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Problem with ie.goto when we used to navigate between the tabs
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 changed 4. Try to click on tabs based using img(:how=what,:index=index of the tab).click method instead of ie.goto. 5. If Image click is not working, then try to use link method link (:text=name of the tab, :index=index of link).click Hope this will help you . Regards Siva Phaneendra Krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How to write Recovery Scenario in Watir for unexpected popups
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 idea to handle such kinds of show stoppers? In QTP, i use recovery scenarios for handling unexpected script blockers. But in Watir, do we have any such kind of features? Writing separate Thread to listen those kinds of script blockers is possible? Regards Siva Phaneendra Krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to write Recovery Scenario in Watir for unexpected popups
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 must continuously listen popup and based on the popup creation time, that has to be clicked. But how can i find the creation time of a popup? Or any other idea? Regards Siva Phaneednra Krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Problem with ie.goto when we used to navigate between the tabs
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 that In IE developer tool bar, click on show-read-only properties check box and you can see various other properties of the tabs. In that, you can see, Inner text, Outer text properties. Use ie.link(:innerText=tab name, :index= 1).click Note: Change the index property from 1 to 4 or more till the tab is identified This code will surely help. Coz, i have resolved different types of tab clicks in my projects. If you still have the problem let me know. Regards Siva Phaneendra Krapa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: List of WIN32OLE applications?
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 the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to call a function fom Excel ?
Thanks alot Wilson. Code is working. I would be very greateful to you. Regards Siva On Apr 27, 1:26 pm, Wilson Xu xu.xiaodong.wil...@gmail.com wrote: The following method maybe help you. *eval * eval( *aString* *[*, *aBinding* *[* *file* *[* *line* *]* *]* *]*) - *anObject* Evaluates the Ruby expression(s) in *aString*. If *aBinding* is given, the evaluation is performed in its context. The binding may be a Binding object or a Proc object. If the optional *file* and *line* parameters are present, they will be used when reporting syntax errors. Wilson On Sat, Apr 25, 2009 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 krapa- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How to call a function fom Excel ?
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 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How to retrive table cell numbers by text value?
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 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] WIN32OLE::new(excel.Application) can Open() method takes relative path?
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 = WIN32OLE::new(excel.Application) workbook = excel.Workbooks.Open(..\\Test Data\\Test Data.xls) ** Error: ReadingEXCEL.rb:5:in `method_missing': Open (WIN32OLERuntimeError) OLE error code:800A03EC in Microsoft Office Excel 'c:\Test Data\Test Data.xls' could not be found. Check the spelling of the file name, and verify that the file location is correct. If you are trying to open the file from your list of most recently used files on the File menu, make sure that the file has not been renamed, moved, or deleted. HRESULT error code:0x80020009 Exception occurred. from ReadingEXCEL.rb:5 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] require 'roo' giving Bad file descriptor error
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/ format.rb:75:in `write' from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/ format.rb:75:in `warn' from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/ format.rb:75 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/ parser.rb:28 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/ parseexcel.rb:5 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/ parseexcel.rb:4 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/roo-1.2.3/lib/roo/excel.rb:3 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/roo-1.2.3/lib/roo.rb:8 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from (irb):10 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Need to pick number from the text
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, Iam new to watir can anyone help me in this regard: Your are registered as a Member, we will SMS you soon. Ref ID: 12345 I want to Pick that 12345 from the the above output. Please helpme --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---