开发者

Select link from table using single selector

I wrote selector like this

jQuery("td:contains('test')").parent("tr").find("a")

I want to click link in table. It works great, however I'd like to use it as selenium selector.

Selenium supports jQuery selectors, but they have to be one liners, for example

selenium.click("jquery=a:contains('test')");

How to convert my selector into o开发者_StackOverflow中文版ne liner selector? Is it even possible?


Try jQuery("tr:has(td:contains('test')) a")

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜