Try this.  Bring up a command prompt and type "irb" (this is the interactive Ruby shell)

and type the following commands.  (instead of http://google.com, though, type in the address of your page.  Do you see your link in the output from " ie.show_links"?  If you send that to the list, we might be able to make more headway. 

C:\Documents and Settings\cmcmahon>irb
irb(main):001:0> require 'watir'
=> false
irb(main):002:0> include Watir
=> Object
irb(main):003:0> ie = IE.new
=> #<Watir::IE:0x2e9ab18 @enable_spinner=false, @empty_tag_name="DUMMY", @speed=:slow, @ole_object=ni
l, @url_list=[], @defaultSleepTime=0.1, @logger=#<Watir::DefaultLogger:0x2e9aa58 @progname=nil, @logd
ev=#<Logger::LogDevice:0x2e9a9e0 @filename=nil, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x2e9a9b0
@mon_entering_queue=[], @mon_count=0, @mon_owner=nil, @mon_waiting_queue=[]>, @dev=#<IO:0x277e740>, @
shift_size=nil, @shift_age=nil>, @level=2, @formatter=nil, @default_formatter=#<Logger::Formatter:0x2
e9aa10 @datetime_format="%d-%b-%Y %H:%M:%S">>, @ie=#<WIN32OLE:0x2e9aab8>, @activeObjectHighLightColor
="yellow", @error_checkers=[#<Proc:[EMAIL PROTECTED]:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/./watir.
rb:1176>], @typingspeed=0.08>
irb(main):004:0> ie.goto(" http://google.com")
=> 6.891
irb(main):005:0> ie.show_links



On 9/1/06, David < [EMAIL PROTECTED]> wrote:
Apparently I need more help than thought. I have tried all of the ideas every one has given me(thank you). I am still unclear on how to use index or flash method. The button or link I am trying to get to, I have done many others just like it, but for some reason I cant get it to press cancel this time. I have been using ie.link(:text, "Export Data").click format, but I figure the one I am trying to do watir is grabbing one of the first Cancel's in the source. In the ruby prompt, it will go through and act like everything went smoothly. It is laid out the same way as others, but I dont know.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=3917&messageID=10779#10779
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to