发现org.openqa.selenium.ElementClickInterceptedException错误。如何解决此问题?

时间:2020-03-05 08:05:15

标签: java selenium selenium-webdriver junit automation

这是我的代码...

 @Test
    public void userStory8() {

        driver.switchTo().frame("framelive");
        driver.manage().window().maximize();

        driver.findElement(By.id("category-9")).click();
        driver.findElement(By.cssSelector(".ps-shown-by-js")).click();
        driver.findElement(By.xpath("//h2[@class='h3 product-title']")).click();
}}

这是我遇到的错误,如何解决此错误,请问有人可以指导我吗?

[1583394608.583][WARNING]: Timed out connecting to Chrome, retrying...

org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <h2 class="h3 product-title" itemprop="name">...</h2> is not clickable at point (652, 635). Other element would receive the click: <div class="overlay__inner">...</div>
  (Session info: chrome=80.0.3987.132)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'DESKTOP-9EVKVA7', ip: '192.168.0.26', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 80.0.3987.132, chrome: {chromedriverVersion: 79.0.3945.36 (3582db32b3389..., userDataDir: C:\Users\chinm\AppData\Loca...}, goog:chromeOptions: {debuggerAddress: localhost:51255}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 0daa821d72f0d5dcb76eab92d9922e5

0 个答案:

没有答案