gpt4 book ai didi

java - Xpath 在 Chrome 浏览器中工作,但相同的 Xpath 在 Firefox 浏览器中不工作

转载 作者:太空宇宙 更新时间:2023-11-04 09:29:39 25 4
gpt4 key购买 nike

我正在开发页面对象模块,这是我的 xpath

By Organization = By.xpath("//input[@value='Organization']");

相同的 Xpath 在 Chrome 浏览器上工作,但在 Firefox 浏览器上不工作。在 Firefox 浏览器上出现以下错误:

Selected checkbox type is = Organization
Element <input id="TypeOfClient" name="TypeOfClient" type="radio"> is not clickable at point (618,160) because another element <div id="divLoadimg" class="modalTabelGray"> obscures it
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'NAV-L186', ip: '192.168.0.186', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_212'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 68.0.1, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20190717172542, moz:geckodriverVersion: 0.24.0, moz:headless: false, moz:processID: 47144, moz:profile: C:\Users\zafar.ahmad\AppDat..., moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, platformVersion: 10.0, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 1fa44ff4-7c0d-4f61-b7bd-0dea567b2b77

最佳答案

正如错误所示,有一个正在加载的图像,请等待直到加载图像消失

关于java - Xpath 在 Chrome 浏览器中工作,但相同的 Xpath 在 Firefox 浏览器中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57248285/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com