Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/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 java webdriver找不到下面的按钮_Selenium - Fatal编程技术网

使用selenium java webdriver找不到下面的按钮

使用selenium java webdriver找不到下面的按钮,selenium,Selenium,我正在使用selenium,但无法使用findElementBy.xpath找到下面的按钮。。。有人能帮忙吗?非常感谢 <button type='button' class='pzhc' data-ctl data-click='[["processAction", ["LookUpPreview","true",":event","","Rule-HTML-Section"]]]' ><div class='pzbtn-lft' ><div class='p

我正在使用selenium,但无法使用findElementBy.xpath找到下面的按钮。。。有人能帮忙吗?非常感谢

<button type='button' class='pzhc' data-ctl data-click='[["processAction", ["LookUpPreview","true",":event","","Rule-HTML-Section"]]]'  ><div class='pzbtn-lft'  ><div class='pzbtn-rgt'><div class='pzbtn-mid' data-click='...'><img src='webwb/zblankimage.gif' class='pzbtn-i'/> Lookup</div></div></div></button>
使用类名:

WebElement=driver.findElementBy.classNamepzhc