Bret, I pasted the script below.
Thanks for you looking into this. ~L # OMS Order Ack #-------------------------------------------------------------# # testOrderAck.rb #Author: Lauren #Date 6/15/2009 # # Purpose: to Ack orders in OMS prepping them for shipment # * Go to oms # * Click on the first order in the list # * Ack the order # * refresh the page # * repeat until all orders are ack'd # # # Change history: #6/15/2009 - Initial Development #-------------------------------------------------------------# # the Watir controller require "watir" # go to oms oms = "http://devapp14.ny.by.com:18/oms/tools/" #batrain orderAckListPage = oms + "oms/tools/testOrderAck.jsp" # open the IE browser b = Watir::IE.new # begin the test puts "Beginning of test: OrderAck." # Go to oms puts " Step 1: go to the site: " + oms b.goto oms # click on OrderAck.jsp puts " Step 2: Go to OrderAck.jsp ." b.link(:text, 'testOrderAck.jsp').click #Verify Shipping Group State is on the page if b.text.include?('Shipping Group State') puts 'User is on the Order Ack page' else puts 'Cannot find the correct page' end # Click on the first order link puts " Step 3: click the first order in the list." b.link(:name, 'ack_0').click # Verify user is on the Ack page if b.text.include?('Filltek Order Id:') puts "Ready to Ack the order" end #Ack the order puts " Step 4: Ack the order." b.button(:name, "oms/util/SendOrderAckDroplet.sendOrderAck").click sleep 3 b.refresh puts "browser was refreshed" #Verify User is brought back to the Ack page if b.text.include?('Shipping Group State') puts 'User is on the Order Ack page' else puts 'Cannot find the correct page' end puts " Is there another order to ack?" while b.link(:name, 'ack_0').exists? puts "There is another order to Ack" b.link(:name, 'ack_0').click b.button(:name, "oms/util/SendOrderAckDroplet.sendOrderAck").click b.refresh sleep 3 end puts 'End of test case' On Oct 22, 8:09 pm, Bret Pettichord <b...@pettichord.com> wrote: > Can you show us this code? > > C:/ruby/qa_scripts/OMS/testOrderAck.rb:41 > > Bret > > LaurenL wrote: > > About two weeks ago I stopped being able to run all watir scripts on > > my machine. I have not updated or changed anything. The same scripts > > run on a different computer, so I know its not the script. I was > > wondering if anyone had any ideas on what I could try. > > > The IE6 browser opens but crashes as soon as the script calls the url. > > This is theerrorI'm receiving. > > > C:\ruby\qa_scripts\OMS>testOrderAck.rb > > Beginning of test: OrderAck. > > Step 1: go to the site: > > Step 2: Go to OrderAck.jsp . > > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb: > > 447:in `method_ > > missing':unknownpropertyormethod`document' (WIN32OLERuntimeError) > > HRESULTerrorcode:0x800706ba > > The RPC server is unavailable. from c:/ruby/lib/ruby/gems/1.8/ > > gems/wati > > r-1.6.2/lib/watir/ie-class.rb:447:in `document' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > locator.rb:31: > > in `each_element' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > locator.rb:38: > > in `locate' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > container.rb:7 > > 49:in `locate_tagged_element' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > link.rb:24:in > > `locate' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > element.rb:49: > > in `assert_exists' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > element.rb:284 > > :in `enabled?' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > element.rb:56: > > in `assert_enabled' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > element.rb:229 > > :in `click!' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > element.rb:215 > > :in `click' > > from C:/ruby/qa_scripts/OMS/testOrderAck.rb:41 > > > Thanks. > > ~L --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---