开发者

A Selenium method that returns attributes

开发者 https://www.devze.com 2023-02-15 18:37 出处:网络
I\'m looking for a solution in selenium RC how to return html attributes. Basically I want to search certain regex on the page, and once the regex has been found I wand to employ a method that returns

I'm looking for a solution in selenium RC how to return html attributes. Basically I want to search certain regex on the page, and once the regex has been found I wand to employ a method that returns attribute of html tag containing the regex.

So far I've found a method storeAttribute, but this method takes an locator as argument. In my case I don't know i开发者_运维技巧n advance where the certain element will occur.

Thank' in advance!


Did you consider using a parser like JSoup? This is for java, but I am sure there would be options in other languages also.

0

精彩评论

暂无评论...
验证码 换一张
取 消