[wtr-general] capturing the link on div
Hi All, I would like to capture all the links under a particular div class. could you please help me in this front.? Thanks Soori --~--~-~--~~~---~--~~ 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: capturing the link on div
Le 9 nov. 2009 à 10:01, Soori a écrit : Hi All, I would like to capture all the links under a particular div class. could you please help me in this front.? Thanks Soori Hello soori, You should use the links method as a sub element of your div (read the doc Luke). Should be something like this: @browser.div(:class /yourclass/).links.each do |link| some code here... end Regards -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.comtel: +33 (0)6 62 19 1337 http://t37.net Typo : http://typosphere.org --~--~-~--~~~---~--~~ 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: capturing the link on div
Thanks Frédéric de Villamil for the quick response. I would also like to capture the text on the div as shown below. the code is something like this, div class=test_container id=mytest-data li div class=mydata encoded=iudasfhakASDa= onselectstart=return false;TEST DATA1/div div class=my_options id=my_options_1 /div div class=clear_float/div /li li div class=mydata encoded=dsfsfsfs98fdfdd= onselectstart=return false;TESTDATA2/div div class=my_options id=my_options_1 /div div class=clear_float/div /li li div class=mydata encoded=sdfsfsfs980sdfss= onselectstart=return false;TESTDATA3/div div class=my_options id=my_options_1 /div div class=clear_float/div /li I would like to capture the TESTDATA1, TESTDATA2, etc from the div through the script. Your help would be appreciated. Thanks again /Soori On Nov 9, 2:05 pm, de Villamil Frédéric fdevilla...@gmail.com wrote: Le 9 nov. 2009 à 10:01, Soori a écrit : Hi All, I would like to capture all the links under a particular div class. could you please help me in this front.? Thanks Soori Hello soori, You should use the links method as a sub element of your div (read the doc Luke). Should be something like this: @browser.div(:class /yourclass/).links.each do |link| some code here... end Regards -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.com tel: +33 (0)6 62 19 1337http://t37.net Typo :http://typosphere.org --~--~-~--~~~---~--~~ 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: Exception thrown while iterating table
Yes, X is intialised to 1. On Nov 6, 7:17 pm, Super Kevy kpe...@scholarshipamerica.org wrote: And what is x initialised to? I assume it has to be 1 when it begins the top of the loop. On Nov 5, 3:52 am, Vishal bvkon...@gmail.com wrote: Alan, Before the loop I am initiating 'x'. I am refering the rows thru 'x'. There is one more table nested in Table, whether the Error might be because of it? Thanks, Vishal On Nov 4, 7:37 pm, Alan Baird alan.ba...@riskmetrics.com wrote: Vishal - Normally, I get this error when the table I'm accessing changes during iteration. For example, if you are iterating through a table and some interaction with it adds a row. I can't tell if that's what you are doing here. It seems like you left some things out in the code below (where does x get set?, why are you iterating through the table rows if you never refer to row?). But if you are modifying the table in your while loop or in sel_trading_partner then I would expect you to get that error. Alan -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Vishal Sent: Wednesday, November 04, 2009 3:08 AM To: Watir General Subject: [wtr-general] Exception thrown while iterating table I am encountering exception while iterating table. Below are the details. Let me know if anymore information is required Code: table3.each do |row| if table3[x][1].text ==Booking ID while (input = f.gets) $ie.text_field(:index,2).set(input) $ie.button(:value,Search).click report_page() end end if table3[x][1].text == Booking Trading Partner Role and Code sel_trading_partner() end x+=1 end ------ Exception : d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:159:in `invoke': u nknown property or method `rows' (WIN32OLERuntimeError) HRESULT error code:0x80070005 Access is denied. from d:/ruby/lib/ruby/gems/1.8/gems/ watir-1.6.2/lib/wati r/table.rb:159:in `_row' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:91:in `each' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:90:in `upto' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:90:in `each' ---- HTML Code: TABLE col=2 width=100% cellspacing=2 cellpadding=0 COLGROUP COL width=1 COL width=100% /COLGROUP TRTD colspan=2 class=rightPad input type=submit class=formbutton value=Search name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 nbsp; input type=submit class=formbutton value=Clear name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 id=resetButton onClick=this.hasFocus=true nbsp; input type=submit class=formbutton value=Export to File name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 nbsp;/TD /TR TRTD class=rightPad FONT class=inputLabel Booking ID /FONT/TDTD class=rightPadINPUT TYPE=TEXT VALUE= NAME=Booking_Query449.My_Criteria_Panel3.layout0.override1.Booking_ID5/ TD /TR TRTD class=rightPad BR/TDTD class=rightPad BR/TD /TR TRTD class=rightPad FONT class=inputLabel Booking Trading Partner Role and Code /FONT/TDTD class=rightPadTABLE BORDER=1TR valign='top'TDa name=go/a TABLE BORDER=0 CELLSPACING=4 TR TD VALIGN=CENTER SELECT NAME=Booking_Query449.My_Criteria_Panel3.layout0.override2.Trading_Partner5.tpAndRole10.roleList0 SIZE=1 OPTION VALUE=-1 OPTION VALUE=0Bill To/OPTION OPTION VALUE=1Carrier/OPTION OPTION VALUE=2Consignee/OPTION OPTION VALUE=3Forwarder/OPTION OPTION VALUE=4Market/OPTION OPTION VALUE=5NVO/OPTION OPTION VALUE=6Ship From/OPTION OPTION VALUE=7Ship To/OPTION OPTION
[wtr-general] Re: capturing the link on div
I think you have to study the Watir guide. Solution 1: $ie.divs.collect {|div| if div.class_name == mydata puts div.text end } Solution 2: $ie.lis.collect {|li| puts li.div(:index, 1).text } Thanks. Wesley Chen. For life, the easier, the better. On Mon, Nov 9, 2009 at 6:32 PM, Soori sure...@gmail.com wrote: Thanks Frédéric de Villamil for the quick response. I would also like to capture the text on the div as shown below. the code is something like this, div class=test_container id=mytest-data li div class=mydata encoded=iudasfhakASDa= onselectstart=return false;TEST DATA1/div div class=my_options id=my_options_1 /div div class=clear_float/div /li li div class=mydata encoded=dsfsfsfs98fdfdd= onselectstart=return false;TESTDATA2/div div class=my_options id=my_options_1 /div div class=clear_float/div /li li div class=mydata encoded=sdfsfsfs980sdfss= onselectstart=return false;TESTDATA3/div div class=my_options id=my_options_1 /div div class=clear_float/div /li I would like to capture the TESTDATA1, TESTDATA2, etc from the div through the script. Your help would be appreciated. Thanks again /Soori On Nov 9, 2:05 pm, de Villamil Frédéric fdevilla...@gmail.com wrote: Le 9 nov. 2009 à 10:01, Soori a écrit : Hi All, I would like to capture all the links under a particular div class. could you please help me in this front.? Thanks Soori Hello soori, You should use the links method as a sub element of your div (read the doc Luke). Should be something like this: @browser.div(:class /yourclass/).links.each do |link| some code here... end Regards -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.comtel: +33 (0)6 62 19 1337 http://t37.net Typo : http://typosphere.org --~--~-~--~~~---~--~~ 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: capturing the link on div
Thanks a lot Wesley Chen. it works. I will go through the Watir guide. /Soori On Nov 9, 3:46 pm, Wesley Chen cjq@gmail.com wrote: I think you have to study the Watir guide. Solution 1: $ie.divs.collect {|div| if div.class_name == mydata puts div.text end} Solution 2: $ie.lis.collect {|li| puts li.div(:index, 1).text } Thanks. Wesley Chen. For life, the easier, the better. On Mon, Nov 9, 2009 at 6:32 PM, Soori sure...@gmail.com wrote: Thanks Frédéric de Villamil for the quick response. I would also like to capture the text on the div as shown below. the code is something like this, div class=test_container id=mytest-data li div class=mydata encoded=iudasfhakASDa= onselectstart=return false;TEST DATA1/div div class=my_options id=my_options_1 /div div class=clear_float/div /li li div class=mydata encoded=dsfsfsfs98fdfdd= onselectstart=return false;TESTDATA2/div div class=my_options id=my_options_1 /div div class=clear_float/div /li li div class=mydata encoded=sdfsfsfs980sdfss= onselectstart=return false;TESTDATA3/div div class=my_options id=my_options_1 /div div class=clear_float/div /li I would like to capture the TESTDATA1, TESTDATA2, etc from the div through the script. Your help would be appreciated. Thanks again /Soori On Nov 9, 2:05 pm, de Villamil Frédéric fdevilla...@gmail.com wrote: Le 9 nov. 2009 à 10:01, Soori a écrit : Hi All, I would like to capture all the links under a particular div class. could you please help me in this front.? Thanks Soori Hello soori, You should use the links method as a sub element of your div (read the doc Luke). Should be something like this: @browser.div(:class /yourclass/).links.each do |link| some code here... end Regards -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.com tel: +33 (0)6 62 19 1337 http://t37.net Typo : http://typosphere.org --~--~-~--~~~---~--~~ 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: clear/delete browser cookie on firewatir (ubuntu)
hi you have option in firefox for that in firefx u in edit u have preference in that u have clear history cokkies aftre close firefox which will crear cokkies and history On Fri, Nov 6, 2009 at 1:02 PM, Marlon marlonmoja...@gmail.com wrote: Hi, How can I delete browser cookies on firewatir? thanks, Marlon --~--~-~--~~~---~--~~ 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 install a forked gem of safariwatir from github
This fork off of Master seems to have the pieces I have been needing to overcome som of my issues: http://github.com/aesterline/safariwatir/commit/a1a5717775ef007c337a01482ee3faf9d5a4d8e2 As I'm no expert, can someone help me by explaining how to install a safariwatir gem from a fork of a repo. I tried sudo gem install aesterline-safariwatir --source=http:// gems.github.com but get ERROR: could not find gem aesterline-safariwatir locally or in a repository Thanks QAguy --~--~-~--~~~---~--~~ 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] Watir Help
Using cucumber and watir - Vista and Windows 7 Get the following error message: Unble to locte element, using :nme, q (Wtir::Exception::UnknownObjectException) ./fetures/step_definitions/serch_steps.rb:11:in `/I serch for (.*)/'fetures/serch.feture:8:in `When I serch for cucumber github' Then I should see BDD tht tlks to domin experts first nd code second # fet ures/step_definitions/serch_steps.rb:15 Anyone have any basic watir scripts that I can use with cucumber --~--~-~--~~~---~--~~ 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 install a forked gem of safariwatir from github
Github used to serve up gems, but no longer is building/serving new gems. So you'll need to clone the repository and build/install the gem manually. Hope this helps. Bret QAguy wrote: This fork off of Master seems to have the pieces I have been needing to overcome som of my issues: http://github.com/aesterline/safariwatir/commit/a1a5717775ef007c337a01482ee3faf9d5a4d8e2 As I'm no expert, can someone help me by explaining how to install a safariwatir gem from a fork of a repo. I tried sudo gem install aesterline-safariwatir --source=http:// gems.github.com but get ERROR: could not find gem aesterline-safariwatir locally or in a repository Thanks QAguy --~--~-~--~~~---~--~~ 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 install a forked gem of safariwatir from github
On Mon, Nov 9, 2009 at 9:58 PM, QAguy qablogm...@gmail.com wrote: As I'm no expert, can someone help me by explaining how to install a safariwatir gem from a fork of a repo. This is from http://github.com/redsquirrel/safariwatir git clone git://github.com/redsquirrel/safariwatir.git cd safariwatir rake install Change redsquirrel to aesterline. You may get an error or two if some dependent gems are not installed. Let us know if you get stuck. Željko -- watir.com - community manager watirpodcast.com - host --~--~-~--~~~---~--~~ 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: Watir Help
Somebody seems to be stealing all of your letters 'a'. Watir needs these, otherwise it's just 'wtir', and lacking the 'application' part can't do anything. I suggest you hire a privte detective to track down where all of your 'a's are disappearing to. The police are no help with this sort of thing - they have no 'a' in their name, and don't care. On Mon, Nov 9, 2009 at 15:29, tester86 sagar.am...@gmail.com wrote: Using cucumber and watir - Vista and Windows 7 Get the following error message: Unble to locte element, using :nme, q (Wtir::Exception::UnknownObjectException) ./fetures/step_definitions/serch_steps.rb:11:in `/I serch for (.*)/'fetures/serch.feture:8:in `When I serch for cucumber github' Then I should see BDD tht tlks to domin experts first nd code second # fet ures/step_definitions/serch_steps.rb:15 Anyone have any basic watir scripts that I can use with cucumber --~--~-~--~~~---~--~~ 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: Safriwatir issue with clicking links
Anything else you can suggest? Thanks On Nov 4, 5:57 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Nov 4, 2009 at 11:53 PM, QAguy qablogm...@gmail.com wrote: puts browser.link(:text, /Sign/).text gives me a result of Sign Out It is late here, my brain is sleeping. What do you get when you run this? puts browser.link(:text, /Sign/).text.inspect Željko --~--~-~--~~~---~--~~ 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: Really....Ruby + Watir + Command Line
Per http://wiki.openqa.org/display/WTR/include+Watir Don't use 'include' On Mon, Nov 9, 2009 at 3:49 PM, tester86 sagar.am...@gmail.com wrote: I am trying to run a watir script: require 'watir' include Watir ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).submit when I run it from command line ruby filename.rb I get the following error message: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing': unknown proper ty or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba The RPC server is unavailable.from c:/ruby/lib/ruby/ site_ruby/1.8/watir.rb:1336:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in `getContainerContents' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in `getObject' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in `initialize' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `text_field' from script1.rb:6 Any Ideas.? --~--~-~--~~~---~--~~ 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] Really....Ruby + Watir + Command Line
I am trying to run a watir script: require 'watir' include Watir ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).submit when I run it from command line ruby filename.rb I get the following error message: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing': unknown proper ty or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba The RPC server is unavailable.from c:/ruby/lib/ruby/ site_ruby/1.8/watir.rb:1336:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in `getContainerContents' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in `getObject' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in `initialize' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `text_field' from script1.rb:6 Any Ideas.? --~--~-~--~~~---~--~~ 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: Watir Help
That's funny. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Nov 10, 2009 at 5:15 AM, Ethan notet...@gmail.com wrote: Somebody seems to be stealing all of your letters 'a'. Watir needs these, otherwise it's just 'wtir', and lacking the 'application' part can't do anything. I suggest you hire a privte detective to track down where all of your 'a's are disappearing to. The police are no help with this sort of thing - they have no 'a' in their name, and don't care. On Mon, Nov 9, 2009 at 15:29, tester86 sagar.am...@gmail.com wrote: Using cucumber and watir - Vista and Windows 7 Get the following error message: Unble to locte element, using :nme, q (Wtir::Exception::UnknownObjectException) ./fetures/step_definitions/serch_steps.rb:11:in `/I serch for (.*)/'fetures/serch.feture:8:in `When I serch for cucumber github' Then I should see BDD tht tlks to domin experts first nd code second # fet ures/step_definitions/serch_steps.rb:15 Anyone have any basic watir scripts that I can use with cucumber --~--~-~--~~~---~--~~ 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: Exception thrown while iterating table
Vishal, I will rephrase your code in a pseudo code in a way that highlights the problem with your code (since the error has gone unnoticed by others). Go through each row in a table on this page, if the row has a Booking ID, Then click the search button (going to a new page) then go to the next row (on the old page, which is no longer in the browser -- hence your error) This is a common problem that people run into. The problem, in short, is that if you are iterating through elements on a page, you need to stop iterating as soon as you click a button or do something that will cause a new page to be loaded. Is this clear? Bret Vishal wrote: I am encountering exception while iterating table. Below are the details. Let me know if anymore information is required Code: table3.each do |row| if table3[x][1].text ==Booking ID while (input = f.gets) $ie.text_field(:index,2).set(input) $ie.button(:value,Search).click report_page() end end if table3[x][1].text == Booking Trading Partner Role and Code sel_trading_partner() end x+=1 end -- Exception : d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:159:in `invoke': u nknown property or method `rows' (WIN32OLERuntimeError) HRESULT error code:0x80070005 Access is denied. from d:/ruby/lib/ruby/gems/1.8/gems/ watir-1.6.2/lib/wati r/table.rb:159:in `_row' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:91:in `each' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:90:in `upto' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:90:in `each' HTML Code: TABLE col=2 width=100% cellspacing=2 cellpadding=0 COLGROUP COL width=1 COL width=100% /COLGROUP TRTD colspan=2 class=rightPad input type=submit class=formbutton value=Search name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 nbsp; input type=submit class=formbutton value=Clear name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 id=resetButton onClick=this.hasFocus=true nbsp; input type=submit class=formbutton value=Export to File name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 nbsp;/TD /TR TRTD class=rightPad FONT class=inputLabel Booking ID /FONT/TDTD class=rightPadINPUT TYPE=TEXT VALUE= NAME=Booking_Query449.My_Criteria_Panel3.layout0.override1.Booking_ID5/ TD /TR TRTD class=rightPad BR/TDTD class=rightPad BR/TD /TR TRTD class=rightPad FONT class=inputLabel Booking Trading Partner Role and Code /FONT/TDTD class=rightPadTABLE BORDER=1TR valign='top'TDa name=go/a TABLE BORDER=0 CELLSPACING=4 TR TD VALIGN=CENTER SELECT NAME=Booking_Query449.My_Criteria_Panel3.layout0.override2.Trading_Partner5.tpAndRole10.roleList0 SIZE=1 OPTION VALUE=-1 OPTION VALUE=0Bill To/OPTION OPTION VALUE=1Carrier/OPTION OPTION VALUE=2Consignee/OPTION OPTION VALUE=3Forwarder/OPTION OPTION VALUE=4Market/OPTION OPTION VALUE=5NVO/OPTION OPTION VALUE=6Ship From/OPTION OPTION VALUE=7Ship To/OPTION OPTION VALUE=8Supplier Contact/OPTION /SELECT /TD TD VALIGN=CENTER input type=submit class=formbutton value=Get Role-Codes name=Booking_Query449.My_Criteria_Panel3.layout0.override2.Trading_Partner5.tpAndRole10.fetchTradePartners1 /TD /TR /TABLE/TDTD -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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:
[wtr-general] Re: Really....Ruby + Watir + Command Line
What version of Watir are you using? tester86 wrote: I am trying to run a watir script: require 'watir' include Watir ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).submit when I run it from command line ruby filename.rb I get the following error message: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing': unknown proper ty or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba The RPC server is unavailable.from c:/ruby/lib/ruby/ site_ruby/1.8/watir.rb:1336:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in `getContainerContents' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in `getObject' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in `initialize' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `text_field' from script1.rb:6 Any Ideas.? -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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: Really....Ruby + Watir + Command Line
Hi, Add first line -- require 'rubygems' Remove line no.2 -- include Watir I hope it works now. If its not working then Please provide more details about Watir Verison and Ruby version. Thanks On Tue, Nov 10, 2009 at 3:19 AM, tester86 sagar.am...@gmail.com wrote: I am trying to run a watir script: require 'watir' include Watir ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).submit when I run it from command line ruby filename.rb I get the following error message: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing': unknown proper ty or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba The RPC server is unavailable.from c:/ruby/lib/ruby/ site_ruby/1.8/watir.rb:1336:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in `getContainerContents' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in `getObject' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in `initialize' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `text_field' from script1.rb:6 Any Ideas.? -- 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 -~--~~~~--~~--~--~---