[wtr-general] Error when trying to open Watir::IE browser

2009-03-13 Thread bert
Hi, Im a newbie to Watir and Ruby. My problem is that when I try to open an IE browser, it fails. Firefox works. I would like to be able to use both browsers at will. I verified that I physically have a file called ie.rb in the following directory: C:\Ruby1\lib\ruby\gems

[wtr-general] Re: Error when trying to open Watir::IE browser

2009-03-13 Thread bert
. On Mar 13, 10:56 am, John Fitisoff jfitis...@yahoo.com wrote: require 'watir/browser' Watir::Browser.default = 'ie' b = Watir::Browser.new --- On Fri, 3/13/09, bert tumbaol...@yahoo.com wrote: From: bert tumbaol...@yahoo.com Subject: [wtr-general] Error when trying to open Watir::IE

[wtr-general] Illusive xpath

2009-03-30 Thread bert
Hi, Im trying to check a checkbox on the following element using xpath but no matter what I try it doesnt seem to work. I keep getting an error: (Watir::Exception::UnknownObjectException): HTML: input type=checkbox onclick=javascript:toggleOutputField('data:// Demographic/Gender',

[wtr-general] Trying to get xpath to recognize long string with possible special characters... not working

2009-09-29 Thread bert
Thanks in advance! I am trying to click on the following element using xpath by referencing its unique onclick property: a onclick=dijit.byId('queryDetail').href='DISPLAY-QUERY-SUMMARY.do? taskId=6type=details'; dijit.byId('queryDetail').show(); return false; href=details/a I have tried

[wtr-general] Re: Trying to get xpath to recognize long string with possible special characters... not working

2009-09-30 Thread bert
ie.link(:xpath, //a[contains(@onclick, 'taskId=6')]).click I may be missing a less complicated way to do this, though. :) Thanks Bill On Tue, Sep 29, 2009 at 6:55 PM, bert tumbaol...@yahoo.com wrote: Thanks in advance! I am trying to click on the following element using xpath