Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/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
Google chrome 元素在点错误处不可单击_Google Chrome_Selenium_Selenium Webdriver_Selenium Chromedriver - Fatal编程技术网

Google chrome 元素在点错误处不可单击

Google chrome 元素在点错误处不可单击,google-chrome,selenium,selenium-webdriver,selenium-chromedriver,Google Chrome,Selenium,Selenium Webdriver,Selenium Chromedriver,在Chrome浏览器上运行Selenium测试并单击一个元素后,出现以下错误: org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (30, 22). Other element would receive the click: <div tabindex="-1" role="dialog" class="modal fade ng-isolate-scope d

在Chrome浏览器上运行Selenium测试并单击一个元素后,出现以下错误:

org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (30, 22). Other element would receive the click: <div tabindex="-1" role="dialog" class="modal fade ng-isolate-scope dialogs-default in" ng-class="{in: animate}" ng-style="{'z-index': 1050 + index*10, display: 'block'}" ng-click="close($event)" modal-window="" window-class="dialogs-default" size="md" index="0" animate="animate" style="z-index: 1050; display: block;">...</div>
(Session info: chrome=41.0.2272.101)
2

((JavascriptExecutor)driver).executeScript("arguments[0].scrollIntoView(true);", driver.findElement(designerViewButton));
但没有一个成功。我是否需要使用chromedriver版本,该版本比我正在使用的版本小?如果是这种情况,我在哪里可以获得以前的chromedriver版本?

有两种变体

1) 实际上还有另一个模式视图,它的z索引比您的按钮高,您单击的是错误的


2) 您正在尝试在未设置分辨率的虚拟机上无头或/和运行它

您可以共享链接以便我们进行调查吗
((JavascriptExecutor)driver).executeScript("arguments[0].scrollIntoView(true);", driver.findElement(designerViewButton));