Hi,

You can't use regular expression in xpath with XPATH 1.0, you can use it in
XPATH 2.0 and rexml supports only xpath 1.0.

You can use string operations like substring, string before, string after
though.
http://www.w3.org/TR/xpath#section-String-Functions.


Prema

On 2/2/07, Željko Filipin <[EMAIL PROTECTED]> wrote:

On 1/30/07, Naga Harish Kanegolla <[EMAIL PROTECTED]> wrote:
>
> <a href="#" onclick="new 
Ajax.Request('/data_entry/ajax_add_term/131?contract_id=227',
> {asynchronous:true, evalScripts:true}); return false;">add a term</a>
>

Can regular expressions be used with xpath? This does not work.

ie.link(:xpath, "//[EMAIL PROTECTED]'#{/227/}']/").click
Watir::Exception::UnknownObjectException: Unable to locate object, using
xpath and //[EMAIL PROTECTED]'(?-mix:227)']/
--
Zeljko Filipin
zeljkofilipin.com
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general




--
Prema Arya
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to