A Selenium method that returns attributes
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.
精彩评论