开发者

css first and last doesn't work in selenium rc

开发者 https://www.devze.com 2023-02-11 11:21 出处:网络
I have a query: x= sel.is_element_present(\"css=div#result form[class*=\'result\']:last\") gives me false, but this:

I have a query:

x= sel.is_element_present("css=div#result form[class*='result']:last")

gives me false, but this:

    <td>storeElementPresent</td>
<td>css=div#result form[class*='result']:last</td>
<td>selFlightsFormCurre开发者_如何学Gont</td>

gives me true.

Is there any bug with it?


You might want to consider using an XPath selector to get your first and last items. I've found XPath to be a bit more flexible than CSS.

0

精彩评论

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

关注公众号