I’m using selenium RC and I would like, for example, to get all the links elements with attribute href that match:
http://[^/]*\d+com
I would like to use:
sel.get_attribute( '//a[regx:match(@href, "http://[^/]*\d+.com")]/@name' )
which would return a list of the name attribute of all the links that match the regex.
(or something like it)
thanks
A possible solution is to use
sel.get_eval()and write a JS script that returns a list of the links. something like the following answer:selenium: Is it possible to use the regexp in selenium locators