[wtr-general] gem install watir-Error
Hi all, I am trying to the update the watir ,but while executing i am getting the below error Can some one help on this to rectify. its urgent please help C:\gem install watir ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: Error installing watir: watir requires win32-process (= 0.5.5, runtime) Thanks in advance Naveen --~--~-~--~~~---~--~~ 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 get emails from page
Hi John, Use the below code to capture the text of the page variable=ie.text now the variable will contain all the text appears on the page where you can able to take the email's regards, Naveen On Sep 14, 2:32 am, dave johnson 1doglover1...@gmail.com wrote: I want to get all my friend's email addresses off of Facebook but I can't figure out how to get the text off the page. require 'watir' ie = Watir::IE.new ie.goto(someones_profile) if ie.link(:text= Info).exists? ie.link(:text= Info).click #get email end --~--~-~--~~~---~--~~ 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: gem install watir-Error
Naveen : You need to update the win32-process which has the version greater than 5.5 -zakir On Mon, Sep 14, 2009 at 12:06 PM, Naveen devadass naveeenku...@gmail.comwrote: Hi all, I am trying to the update the watir ,but while executing i am getting the below error Can some one help on this to rectify. its urgent please help C:\gem install watir ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: Error installing watir: watir requires win32-process (= 0.5.5, runtime) Thanks in advance Naveen -- Best Regards zakir --~--~-~--~~~---~--~~ 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 :PopUp Handling
Did you had a look at the unit tests case for Firewatir for handling the pop ups? Is there a specific problem that you are facing? The information you provided is not sufficient enough for anyone to help you. - Angrez On Mon, Sep 14, 2009 at 10:37 AM, Rajat Singhal coolraja...@gmail.comwrote: Hi All Kindly do let me know,How we can handle pop ups in FireWatir Thanks --~--~-~--~~~---~--~~ 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: Selecting a url from an array
Orde, that didn't work I'm afraid. Karim, what would be the correct format? --~--~-~--~~~---~--~~ 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: gem install watir-Error
Hi , DO you know how to update this Many Thanks, Naveen On Sep 14, 11:54 am, zakir hussain zaki...@gmail.com wrote: Naveen : You need to update the win32-process which has the version greater than 5.5 -zakir On Mon, Sep 14, 2009 at 12:06 PM, Naveen devadass naveeenku...@gmail.comwrote: Hi all, I am trying to the update the watir ,but while executing i am getting the below error Can some one help on this to rectify. its urgent please help C:\gem install watir ERROR: http://gems.rubyforge.org/does not appear to be a repository ERROR: Error installing watir: watir requires win32-process (= 0.5.5, runtime) Thanks in advance Naveen -- Best Regards zakir- 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: gem install watir-Error
On Mon, Sep 14, 2009 at 10:10 AM, Naveen devadass naveeenku...@gmail.com wrote: DO you know how to update this gem update win32-process Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: Selecting a url from an array
Got it to work now after several iterations. .detect is now giving me the url I need. So how do I select this url? --~--~-~--~~~---~--~~ 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: Selecting a url from an array
OK, so I am a plonker. Just needed to store the result of my .detect as a variable then use $browser.goto. Hope I haven't wasted anybody's time. Cheers...Ash On Sep 14, 10:05 am, ash ashbr...@gmail.com wrote: Got it to work now after several iterations. .detect is now giving me the url I need. So how do I select this url? --~--~-~--~~~---~--~~ 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 identify new IE browser windows
Hi, I have given the real page url in the code even then I got the exception. Just for understanding I gave sample url and sample partner site names in this question. Thanks, Vijay On Sep 11, 6:28 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Sep 11, 2009 at 3:17 PM, dvkbabu dvkb...@gmail.com wrote: in `attach_browser_window': Unable to locate a window with url of 'sample url' (Watir::Exception::NoMatchingWindowFoundException) You have to use real page url instead of 'sample url' Something like this: browser1 = Watir::IE.attach(:url, 'http://www.google.com/') You should read this: http://wiki.openqa.org/display/WTR/New+Browser+Windows Željko --http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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 do i read a .txt file using watir script
Hi, We have watir scripts which requires url, username, password and path (location of the datatables). These parameters are changing depends upon the server where application is deployed. I would like to put these information inside a .txt file like belo url = http://198.44.23.11/DemoApplication.WebUI username = admin password = adm...@# path = D:\Watir\WatirScripts Now i need to access the above .txt file using watir scripts like open file, read line by line and store each word in a array then use array elements to get exact values for each parameters and store it on respective variables to use inside scripts. Could you please let me know, whether we can able to open a file and read line by line using watir scripts. Does watir has class or library to support file open in read/write/append modes. Please let me know. Thanks in advance. Regards Syed --~--~-~--~~~---~--~~ 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 read a .txt file using watir script
begin file = File.new(readfile.rb, r) while (line = file.gets) puts #{counter}: #{line} counter = counter + 1 end file.close rescue = err puts Exception: #{err} err end readfile.rb is your .txt file and line is data from each line in the file. From Karim Rayani On Mon, Sep 14, 2009 at 4:06 PM, msazeez28july sabdulkha...@gmail.com wrote: Hi, We have watir scripts which requires url, username, password and path (location of the datatables). These parameters are changing depends upon the server where application is deployed. I would like to put these information inside a .txt file like belo url = http://198.44.23.11/DemoApplication.WebUI username = admin password = adm...@# path = D:\Watir\WatirScripts Now i need to access the above .txt file using watir scripts like open file, read line by line and store each word in a array then use array elements to get exact values for each parameters and store it on respective variables to use inside scripts. Could you please let me know, whether we can able to open a file and read line by line using watir scripts. Does watir has class or library to support file open in read/write/append modes. Please let me know. Thanks in advance. Regards Syed -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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] download a file with WatiN.Core.dll
Hello all, My requirement is, need to download a file from particular URL with the use of WatiN.Core.dll. I am using C#.net 2005. Please help me. Thanks in advance, Muthurani --~--~-~--~~~---~--~~ 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: download a file with WatiN.Core.dll
On Mon, Sep 14, 2009 at 2:19 PM, Muthurani muthuran...@gmail.com wrote: My requirement is, need to download a file from particular URL with the use of WatiN.Core.dll. I am using C#.net 2005. This is forum for Ruby version of Watir. Post this to Watin forum: https://lists.sourceforge.net/lists/listinfo/watin-users Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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 read a .txt file using watir script
Hi, If you interested in your requirement then try this -- http://www.yaml.org/YAML_for_ruby.html On Mon, Sep 14, 2009 at 4:06 PM, msazeez28july sabdulkha...@gmail.comwrote: Hi, We have watir scripts which requires url, username, password and path (location of the datatables). These parameters are changing depends upon the server where application is deployed. I would like to put these information inside a .txt file like belo url = http://198.44.23.11/DemoApplication.WebUI username = admin password = adm...@# path = D:\Watir\WatirScripts Now i need to access the above .txt file using watir scripts like open file, read line by line and store each word in a array then use array elements to get exact values for each parameters and store it on respective variables to use inside scripts. Could you please let me know, whether we can able to open a file and read line by line using watir scripts. Does watir has class or library to support file open in read/write/append modes. Please let me know. Thanks in advance. Regards Syed -- Regards, P.Raveendran http://raveendran.wordpress.com --~--~-~--~~~---~--~~ 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 identify new IE browser windows
Hi, Just try to use *click_and_wait* function at the fourth line of your code as shown below: browser.link(:text, 'PartnerName').*click_and_wait* Please let me know if u further face any issue. Thanks Regards, Ankur Gera --~--~-~--~~~---~--~~ 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 read a .txt file using watir script
Why dont your try .ini file, you keep all the required SN and Password information in .ini file and access it through your script. This will be simple I feel Kiran On Mon, Sep 14, 2009 at 4:06 PM, msazeez28july sabdulkha...@gmail.comwrote: Hi, We have watir scripts which requires url, username, password and path (location of the datatables). These parameters are changing depends upon the server where application is deployed. I would like to put these information inside a .txt file like belo url = http://198.44.23.11/DemoApplication.WebUI username = admin password = adm...@# path = D:\Watir\WatirScripts Now i need to access the above .txt file using watir scripts like open file, read line by line and store each word in a array then use array elements to get exact values for each parameters and store it on respective variables to use inside scripts. Could you please let me know, whether we can able to open a file and read line by line using watir scripts. Does watir has class or library to support file open in read/write/append modes. Please let me know. Thanks in advance. Regards Syed --~--~-~--~~~---~--~~ 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: I'm looking for a way to count all PageTo(*) elements or to loop until the bullet_search_white_small.gif doesn't exist in the page
Hello All, Thanks for the help so far. I still face a problem to retrieve the next info ('Test Analyst Load Runner', 'Fri 11 Sep', 'Excellent 12 Month fixed Term role for a Test Analyst with strong Load Runner Experience - One of the largest testing teams in Brisbane is expanding' and 'Hudson') from the next html: I would like to create a list of all jobs from a given page (there are ~20 links per page) so this is just example values. div id=resultsList class=ol id=searchResultsListlispan class=jobsearchNumber1input type=checkbox name=chkJob onClick=UpdateSelectedItems(); value=15998998/input/ spandivh2a href=/job/b-test-b-b-analyst-b-load-runner/brisbane/ 15998998/span class=highlightTest Analyst/span Load Runner/ a emHudson/em/h2span class=jobSearchJobListedDateFri 11 Sep/spandivpExcellent 12 Month fixed Term role for a Test Analyst with strong Load Runner Experience - One of the largest testing teams in Brisbane is expanding./pspan class=taxonomya href=javascript:ClassTree ('catindustry=1215')I.T. amp; T/a gt; a href=javascript:ClassTree ('catoccupation=1491amp;catindustry=1215')QA/Testers/a/span/ divh3Brisbane/h3h3/h3/div/lilispan class=jobsearchNumber2input type=checkbox name=chkJob onClick=UpdateSelectedItems(); value=15995612/input/ spandivh2a href=/job/b-test-b-b-analyst-b/brisbane/ 15995612/span class=highlightTest Analyst/span/a emBeyond Recruitment Pty Ltd/em/ h2span class=jobSearchJobListedDateFri 11 Sep/spandivpTest Analyst contract opportunity at a leading company based in Brisbane CBD/pspan class=taxonomya href=javascript:ClassTree ('catindustry=1215')I.T. amp; T/a gt; a href=javascript:ClassTree ('catoccupation=1491amp;catindustry=1215')QA/Testers/a/span/ divh3Brisbane/h3h3/h3/div/lilispan class=jobsearchNumber3input type=checkbox name=chkJob onClick=UpdateSelectedItems(); value=15956235/input/ spandivh2a href=/job/peoplesoft-b-test-b-b-analyst-b/brisbane/ 15956235/PEOPLESOFT span class=highlightTEST ANALYST/span/a emIntegrated Business Technologies Pty Ltd/em/h2span class=jobSearchJobListedDateFri 04 Sep/ spandivpImmediate requirement for an experienced PeopleSoft test analyst across HR/Payroll/pspan class=taxonomya href=javascript:ClassTree('catindustry=1215')I.T. amp; T/a gt; a href=javascript:ClassTree ('catoccupation=1491amp;catindustry=1215')QA/Testers/a/span/ divh3Brisbane/h3h3/h3/div/lilispan Cheers, Guy On Sep 11, 6:14 pm, Wesley Chen cjq@gmail.com wrote: For the comment below: $ie.element_by_xpath(//img[contains(@src, 'report_delete.png')]).click It can locate an image element, which has src attributes, for the report_delete.png is just part of the src. I think it can help you. Thanks. Wesley Chen. On Fri, Sep 11, 2009 at 6:03 PM, Guy guy.kid...@gmail.com wrote: Hello Orde, It sure works but I should have ask my question better. The peoplesoft-b-test-b-b- analyst-b/brisbane can't be hard coded into the xpath as it changes. is there a way to use regexpr in the xpath? I think that /job/ is always returns. Cheers, Guy On Sep 11, 9:26 am, orde ohil...@gmail.com wrote: You should take a look athttp://wiki.openqa.org/display/WTR/XPath. Something like this should work: puts browser.link(:xpath,//a...@href='/job/peoplesoft-b-test-b-b- analyst-b/brisbane/15956235/']/).text Hope it helps. On Sep 10, 8:32 am, Guy guy.kid...@gmail.com wrote: Hi Orde, It is very helpful and I already put that in my script. I would appreciate help with the next (xpath) I try to get the PEOPLESOFT TEST ANALYST and the date 'Fri 04 Sep' using xpath without getting the right value. Any ideas would be welcome. div id=resultsList class=ol id=searchResultsListlispan class=jobsearchNumber1input type=checkbox name=chkJob onClick=UpdateSelectedItems(); value=15956235/input/ spandivh2a href=/job/peoplesoft-b-test-b-b-analyst-b/brisbane/ 15956235/PEOPLESOFT span class=highlightTEST ANALYST/span/a emIntegrated Business Technologies Pty Ltd/em/h2span class=jobSearchJobListedDateFri 04 Sep/ spandivpImmediate requirement for an experienced PeopleSoft test analyst across HR/Payroll/pspan class=taxonomya href=javascript:ClassTree('catindustry=1215')I.T. amp; T/a gt; a href=javascript:ClassTree ('catoccupation=1491amp;catindustry=1215')QA/Testers/a/span/ divh3Brisbane/h3h3/h3/div/lilispan Many Thanks, Guy On Sep 10, 2:21 am, orde ohil...@gmail.com wrote: This will give you the number of links: browser = [your browser of choice] puts browser.links.length --- To create the loop: while browser.image(:src, /bullet_search_white_small.gif/).exists? puts 'exists' sleep 2 browser.refresh end Hope that helps. orde On Sep 9, 7:56 am, Guy guy.kid...@gmail.com wrote: