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

2009-09-30 Thread bert
Thanks Bill, that worked perfectly! On Sep 30, 2:59 am, Bill Agee wrote: > Would it work to use just a fragment of the onclick value?  If so, you can > try locating the element using XPath string functions like this: > > ie.link(:xpath, "//a[starts-with(@onclick, 'dijit')]").click > > ie.link(:x

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

2009-09-30 Thread Željko Filipin
On Wed, Sep 30, 2009 at 3:55 AM, bert wrote: > I have tried several of the following and not sure what Im doing > wrong. XPath is black magic for me, but there are a few tools that could help: XPather - https://addons.mozilla.org/en-US/firefox/addon/1192 XPath Checker - https://addons.mozilla.or

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

2009-09-30 Thread Bill Agee
Would it work to use just a fragment of the onclick value? If so, you can try locating the element using XPath string functions like this: ie.link(:xpath, "//a[starts-with(@onclick, 'dijit')]").click ie.link(:xpath, "//a[contains(@onclick, 'taskId=6')]").click I may be missing a less complicate