Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在selenium中找到via样式_Selenium - Fatal编程技术网

如何在selenium中找到via样式

如何在selenium中找到via样式,selenium,Selenium,我有以下html代码: <tr id="d20209567" style="display: table-row;"><td class="f">7</td><td class="bc">20209567</td><td>&nbsp;</td><td>&nbsp;</td><td class="s"><a href="javascript:void(

我有以下html代码:

<tr id="d20209567" style="display: table-row;"><td class="f">7</td><td    class="bc">20209567</td><td>&nbsp;</td><td>&nbsp;</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;')]")