当前位置:首页 » 《资源分享》 » 正文

谷歌webdriver下载地址

22 人参与  2024年04月20日 08:11  分类 : 《资源分享》  评论

点击全文阅读


在使用模拟加载页面操作时,谷歌浏览器升级了,你的模拟用不了了,这时候需要下载相对应的驱动,很多情况找不到下载地址,下面两个地址够用了,遇到这种问题,可以查看。

http://chromedriver.storage.googleapis.com/index.html

https://googlechromelabs.github.io/chrome-for-testing/

var DRIVER  = require('selenium-webdriver');var profile = DRIVER.Capabilities.chrome();profile.set( 'browserName', 'chrome' );profile.set('chromeOptions', {       'headless': true,      'args' : ['--lang=EN', '--disable-popup-blocking', '--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36' ]});var BUILDER = new DRIVER.Builder().withCapabilities( profile );var BROWSER = BUILDER.build();

针对上面这种模式使用方式,puppeteer使用方式可以忽略。


点击全文阅读


本文链接:http://zhangshiyu.com/post/97827.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1