org.openqa.selenium.ElementClickInterceptedException: element click intercepted

     [java]     => org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <div data-kt-menu-trigger="click" class="menu-item menu-accordion ">...</div> is not clickable at point (631, 227). Other element would receive the click: <form name="_partner_whole_search_form" id="_partner_whole_search_form" action="/lnv/hicxesm-manager/app/quicksearch.html" method="post" class="w-100 position-relative me-3 mt-5 .hicx-ignore-dirty-form-check">...</form>
     [java]   (Session info: chrome=101.0.4951.54)
     [java] Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
     [java] System info: host: 'xxxx-PC2CAVBF', ip: 'xxxx', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_332'
     [java] Driver info: org.openqa.selenium.chrome.ChromeDriver
     [java] Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 101.0.4951.54, chrome: {chromedriverVersion: 100.0.4896.60 (6a5d10861ce8..., userDataDir: C:\Users\xxxxx\AppData\Loc...}, goog:chromeOptions: {debuggerAddress: localhost:51732}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
     [java] Session ID: 3f945d1e3d54f41c48ee743a906d1dff
     [java]        sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [java]        sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
     [java]        sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     [java]        java.lang.reflect.Constructor.newInstance(Constructor.java:423)
     [java]        org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
     [java]        org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
     [java]        org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
     [java]        org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
     [java]        org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
     [java]        org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
     [java]        [...]
     [java] 
     [java] Test run finished after 178307 ms
     [java] [         3 containers found      ]
     [java] [         0 containers skipped    ]
     [java] [         3 containers started    ]
     [java] [         0 containers aborted    ]
     [java] [         3 containers successful ]
     [java] [         0 containers failed     ]
     [java] [         1 tests found           ]
     [java] [         0 tests skipped         ]
     [java] [         1 tests started         ]
     [java] [         0 tests aborted         ]
     [java] [         0 tests successful      ]
     [java] [         1 tests failed          ]
     [java] 
     [java] Java Result: 1
     [echo] Scripts Execution Complete

元素不可點擊,可以嘗試選擇它的可點擊的子元素,作爲點擊的對象

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值