在Selenium webDriver中将chrome浏览器更新为65后发生错误

时间:2018-03-21 05:47:43

标签: selenium-webdriver selenium-chromedriver

我的Chrome浏览器版本更改为65.0.3325.181后面临以下错误。

 org.openqa.selenium.WebDriverException: unknown error: Element <a 
class="actionInActionBox" id="BACK" name="BACK" title="Selection Page" 
onclick="document.getElementById('ListLeftNLSelectedTop').value='Catalog_NL'; submitTopFormByAction('ListLeftNL');return false;">...</a> is not clickable at 
point (300, 20). Other element would receive the click: <div 
id="overlay_modal" class="overlay_infoWindow" style="display: block; 
position: absolute; top: 0px; left: 0px; z-index: 30; width: 100%; height: 
720px;"></div>
 (Session info: chrome=65.0.3325.181)
(Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 10.0.15063 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z'
os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_151'
Driver info: org.openqa.selenium.chrome.ChromeDriver

Session ID: 451d25fe77677cb5c5dccf2f8501d752

我在帧更改时使用了显式等待。在更改框架时,页面加载一段时间,然后在元素可单击时单击actionInActionBox。但现在不是等待,而是直接点击元素。

WebElement element=wait.until(ExpectedConditions.elementToBeClickable(By.id(objrep.get("Content_ID")))); //Clicked on Content
        element.click();
framewait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt("FrameName"));
WebElement element0 = wait.until(ExpectedConditions.elementToBeClickable(By.className("actionInActionBox")));
element0.click();

建议将不胜感激。

1 个答案:

答案 0 :(得分:0)

解决了将隐式等待的时间从5秒延长到20秒的问题。