如何在selenium中找到via样式
我有以下html代码:如何在selenium中找到via样式,selenium,Selenium,我有以下html代码: <tr id="d20209567" style="display: table-row;"><td class="f">7</td><td class="bc">20209567</td><td> </td><td> </td><td class="s"><a href="javascript:void(
<tr id="d20209567" style="display: table-row;"><td class="f">7</td><td class="bc">20209567</td><td> </td><td> </td><td class="s"><a href="javascript:void(0);" onclick="sb('20209567');">SEÇ</a></td></tr>
像下面这样的东西不起作用
find_elements_by_xpath("//div[@class='bfiltresp']//tbody//tr[@style='display: table-row']"
谢谢以下各项工作正常
contains(@style,'display: table-row;')
最后的呼吁是:
find_elements_by_xpath("//div[@class='bfiltresp']//tbody//tr[contains(@style,'display: table-row;')]")
find_elements_by_xpath("//div[@class='bfiltresp']//tbody//tr[contains(@style,'display: table-row;')]")