• Maven selenium java 缺文件 at April 08, 2020

    我的倒是可以启动。但是在打开新网页时出错。比如已经在百度了,执行js window.open(‘https://www.baidu.com’) ,新的页面出现了,但是报错无法连接到本地某端口。
    Started InternetExplorerDriver server (32-bit)
    3.141.59.0
    Listening on port 12156
    Only local connections are allowed
    四月 08, 2020 11:40:52 上午 org.openqa.selenium.remote.ProtocolHandshake createSession
    信息: Detected dialect: W3C

    org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:12156
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: 'WIN-4FIAQBPKU2T', ip: '10.8.0.34', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_45'
    Driver info: driver.version: RemoteWebDriver

  • 你可以试试用js。就是找到对应的元素执行click动作,如果有效果就可以用js模拟点击了

做自动化的java