配了一中午的,好不容易正好记录下。

1.我的centos的位数

  1. 输入rpm -q centos-release
  2. 结果:centos-release-7-4.1708.el7.centos.x86_64

 ok,64位的系统 

1.下载最新的chrome目前是65,下面的命令将下载当前最新版本的chrome

  1. yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rp

2下载对应的chromedriver

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

经过查看该文件  得知需要chromedriver版本为2.36(windows到了2.37了)

notes.text

  1. ----------ChromeDriver v2.36 (2018-03-02)----------
  2. Supports Chrome v63-65
  3. Resolved issue 1819: testIFrameWithExtensionsSource is failing on Chrome v60+ [[Pri-1]]
  4. Resolved issue 2221: Add command-line option to log INFO level to stderr [[Pri-2]]
  5. Resolved issue 450: ChromeDriver hangs when switching to new window whose document is being overwritten [[Pri-2]]
  6. Resolved issue 2235: Add option to control the wait for extension background pages [[Pri-2]]
  7. Resolved issue 2234: fixed webview_devtools_remote_ is not right [[Pri-2]]
  8. Resolved issue 2223: Unable to load extension if background page name starts with / [[Pri-2]]
  9. Resolved issue 2280: ChromeDriver should be more extensible [[Pri-]]
  10. Resolved issue 2231: Pixel 2 and Pixel 2 XL not working in Mobile Emulation [[Pri-]]
  11. Resolved issue 746266: Chromedriver does not support OOPIF
  12.  
  13. ----------ChromeDriver v2.35 (2018-01-10)----------
  14. Supports Chrome v62-64
  15. Resolved issue 2191: Executing JavaScript code fails if the script returns no result [[Pri-1]]
  16. Resolved issue 2183: Connections Aren't Persistent [[Pri-2]]
  17. Resolved issue 2207: Some mobile emulation devices do not work [[Pri-2]]
  18. Resolved issue 2177: Get local storage returns command names in Chrome 63 [[Pri-2]]
  19. Resolved issue 2179: absolute time on log entries [[Pri-2]]
  20.  
  21. ----------ChromeDriver v2.34 (2017-12-10)----------
  22. Supports Chrome v61-63
  23. Resolved issue 2025: Incorrect navigation on Chrome v63+ [['Pri-0']]
  24. Resolved issue 2034: Error looking for "Timeline.start" in Chrome [['Pri-2']]
  25. Resolved issue 1883: Unable to emulate android devices with Chromedriver 2.30 [['Pri-2']]
  26. Resolved issue 2103: Touch in mobile emulation doesn't work [[]]
  27.  
  28. ----------ChromeDriver v2.33 (2017-10-03)----------
  29. Supports Chrome v60-62
  30. Resolved issue 2032: ChromeDriver crashes while creating DNS resolver [['Pri-1']]
  31. Resolved issue 1918: Get/SetWindowSize & Get/SetWindowPosition commands are failing on Chromev62+ [['Pri-1']]
  32. Resolved issue 2013: Android 8.0.0 webviews not supported [['Pri-2']]
  33. Resolved issue 2017: In mobileEmulation "element is not clickable" if it is outside the visible area [['Pri-2']]
  34. Resolved issue 1981: chromedriver does not respect excludeSwitches flag [['Pri-2']]
  35. Partially Resolved issue 2002: Add Cookie is not spec compliant [[]]
  36. Resolved issue 1985: FindElement raises the wrong error [[]]
  37.  
  38. ----------ChromeDriver v2.32 (2017-08-30)----------
  39. Supports Chrome v59-61
  40. Resolved issue 1852: Error 'Element is not clickable at point' occurs on Chrome v61+ [['Pri-1']]
  41. Resolved issue 1950: DeleteCookie in Chrome v62 and Chromedriver v2.31 fails [['Pri-2']]
  42. Resolved issue 1942: ChromeDriver response in W3C mode is not standard compliant [['Pri-2']]
  43. Resolved issue 1910: Fails to retrieve default prompt text on Chrome v62+ [['Pri-2']]
  44. Resolved issue 1900: LaunchApp command throws UnknownError: cannot get automation extension on Mac and Windows Chrome v62+ [['Pri-2']]
  45. Resolved issue 1885: unknown error: Cannot use 'in' operator to search for 'String' in null [['Pri-2']]
  46. Resolved issue 1882: Chromedriver URI for Execute Async Script is not spec compliant [['Pri-3']]
  47. Resolved issue 1621: Implement session/<session id>/window/fullscreen command [['Pri-3']]
  48. Resolved issue 1896: Characters '3' and '#' are not being entered using SendKeys on Mac Chrome v62+ [[]]
  49. Resolved issue 1894: chromedriver 2.31 should be linked with glibc 2.17 [[]]
  50. Resolved issue 1740: ChromeDriver session handshake needs to be W3C compliant [[]]
  51. Resolved issue 1898: Wrong error is thrown while sending text to non prompt dialog. [[]]
  52. Resolved issue 1888: Chromedriver doesn't throw an exception when uploading an invalid file with selenium [[]]
  53.  
  54. ----------ChromeDriver v2.31 (2017-07-21)----------
  55. Supports Chrome v58-60
  56. Resolved issue 1804: Flakiness when retrieving cookies using GetCookies command on Windows [['Pri-1']]
  57. Resolved issue 1879: Implement /session/{session id}/cookie/{name} command [['Pri-2']]
  58. Resolved issue 1860: WebDriverException: Message: unknown error: bad inspector message:"" when attempting to get page_source [['Pri-2']]
  59. Resolved issue 1293: Timed out receiving message from renderer on window.location change [['Pri-2']]
  60. Resolved issue 1849: ChromeDriver 2.30 AddCookie command uses incorrect default path [['Pri-2']]
  61. Resolved issue 1256: switchToFrame should throw StaleElementReferenceException in case the element is stale [['Pri-2']]
  62. Resolved issue 1786: Feature request: change chromeOptions to goog:chromeOptions [['Pri-3']]
  63. Resolved issue 1772: Chromedriver running against canary chrome w/ headless flag requires XVFB for sendKey interactions [[]]
  64. Resolved issue 727979: Failed to set Chrome's command line file on device for long command line [['Pri-3']]
  65.  
  66. ----------ChromeDriver v2.30 (2017-06-07)----------
  67. Supports Chrome v58-60
  68. Resolved issue 644: ChromeDriver does not delete the profile & scoped_dir* folders after test exits [['Pri-1']]
  69. Resolved issue 1114: unknown error:Maximum call stack size exceeded on calling any webdriver command [['OS-All', 'Pri-1']]
  70. Resolved issue 1773: ChromeDriver crashes when using console.time on Chromev58+ [['OS-All', 'Pri-1']]
  71. Resolved issue 1526: mobileEmulation not working for the listed devices in the chrome [['Pri-2']]
  72. Resolved issue 1777: NoSuchFrameException is thrown when attempting to focus on a frame with protocol "chrome-extension://" within a page with protocol "https://" on Chrome 58 [['OS-All', 'Pri-2']]
  73. Resolved issue 1779: testWindowMaximize is failing on Mac for Chrome v60+ [['OS-Mac', 'Pri-2']]
  74. Resolved issue 1775: testShouldHandleNewWindowLoadingProperly failing on Chrome v60+ [['OS-All', 'Pri-2']]
  75. Resolved issue 1796: Chromedriver failed to connect to Chrome on CrOS with latest canary build [[]]
  76. Resolved issue 1353: Sending text to Alert / Confirm dialog should throw element not visible exception [[]]
  77.  
  78. ----------ChromeDriver v2.29 (2017-04-04)----------
  79. Supports Chrome v56-58
  80. Resolved issue 1521: Assignment to Object.prototype.$family causes a crash [['Pri-1']]
  81. Resolved issue 1482: Chromedriver cannot handle the alert generated by onbeforeunload event [['OS-All', 'Pri-2']]
  82. Resolved issue 1315: |switch_to.window| does not visually switch tabs [['OS-All', 'Pri-3']]
  83.  
  84. ----------ChromeDriver v2.28 (2017-03-09)----------
  85. Supports Chrome v55-57
  86. Resolved issue 1625: Error: cannot get automation extension on Chrome57+ [['OS-All', 'Pri-1', 'merge-merged-2987']]
  87. Resolved issue 1695: Chrome crashes on Linux32 bot [['OS-Linux', 'Pri-1']]
  88. Resolved issue 1467: A hang occurs when an alert dialog is displayed on Chrome 52+ [['OS-All', 'Pri-2']]
  89. Resolved issue 1688: Exported Netlog with --log-net-log is truncated [['OS-Linux', 'OS-Mac', 'Pri-2']]
  90. Resolved issue 1388: find Elements is failing [['Pri-2']]
  91.  
  92. ----------ChromeDriver v2.27 (2016-12-23)----------
  93. Supports Chrome v54-56
  94. Resolved issue 1637: Getting window handles fails in the presence of shared workers on Chrome 55+ [['OS-All', 'Pri-1']]
  95.  
  96. ----------ChromeDriver v2.26 (2016-12-09)----------
  97. Supports Chrome v53-55
  98. Resolved issue 1607: Chrome 57+ with perf logs enabled fails with "unexpected command response" [['OS-All', 'Pri-1']]
  99. Resolved issue 1502: sendKeys(): SPACE key does not work on Chrome 53 [['OS-All', 'Pri-1']]
  100. Resolved issue 984: Extend ChromeDriver capabilities to cover network throttling feature from Chrome DevTools [['OS-All', 'Pri-2']]
  101. Resolved issue 877: UnhandledAlertException not being propagated upwards [['OS-All', 'Pri-2']]
  102. Resolved issue 1578: Flash plugin blocked after updating Chrome browser [['OS-All', 'Pri-2']]
  103. Resolved issue 1617: Fullscreen command is not recognised [['OS-All', 'Pri-3']]
  104. Resolved issue 839: clear does not work on input type number with string value [['Pri-3']]
  105. Resolved issue 1500: "Could not handle JavaScript dialog" error occurs randomly when accepting confirmation dialogs. [[]]
  106. Resolved issue 1541: find element with empty tag is raising wrong exception in findElement [[]]
  107. Resolved issue 1540: empty tagname value should raise an error when doing findElements [[]]
  108.  
  109. ----------ChromeDriver v2.25 (2016-10-25)----------
  110. Supports Chrome v53-55
  111. Resolved issue 1547: Chromedriver crashes during event Runtime.consoleAPICalled [['OS-All', 'Pri-1']]
  112. Resolved issue 1514: GetLog command times out if an alert is showing [['OS-All', 'Pri-1']]
  113. Resolved issue 1460: "Disable Developer Mode Extensions" exists on Mac, but not Windows [[]]
  114.  
  115. ----------ChromeDriver v2.24 (2016-09-09)----------
  116. Supports Chrome v52-54
  117. Resolved issue 1497: GetLog fails when the current window is closed [['OS-All', 'Pri-0']]
  118. Resolved issue 1495: ChromeDriver crashes with "Check failed: !page_load_strategy_.empty()" [['OS-All', 'Pri-0']]
  119. Resolved issue 1463: SessionNotCreatedException: Runtime.evaluate missing 'wasThrown' on Chrome 54+ [['OS-All', 'Pri-0']]
  120. Resolved issue 1484: SendKeys of a Tab Key has no effect in Chrome 53 [['OS-All', 'Pri-1']]
  121. Resolved issue 1431: GetLog command does not work for Chrome 54+ [['OS-All', 'Pri-1']]
  122. Resolved issue 1411: sendKeys generates events that are missing some fields [['OS-All', 'Pri-1']]
  123. Resolved issue 1451: Chrome 54+ session not created exception: Runtime.executionContextCreated has invalid 'context' [['Pri-1']]
  124. Resolved issue 984: Extend ChromeDriver capabilities to cover network throttling feature from Chrome DevTools [['OS-All', 'Pri-2']]
  125. Resolved issue 1454: Net::ReadTimeout error on launching Canary v54 through RemoteWebDriver [[]]
  126.  
  127. ----------ChromeDriver v2.23 (2016-08-04)----------
  128. Supports Chrome v51-53
  129. Resolved issue 1378: Android 6: Intitialization of Chrome driver fails when Chrome/Webview process is in running (R) state [['OS-Android', 'Pri-1']]
  130. Resolved issue 1379: Chromedriver does not catch all available browser console log entries [['OS-All', 'Pri-2']]
  131.  
  132. ----------ChromeDriver v2.22 (2016-06-06)----------
  133. Supports Chrome v49-52
  134. Resolved issue 1348: Timeout error while navigating to URL on Chrome 51+ [['OS-All', 'Pri-0']]
  135. Resolved issue 1381: Timeout error occurs when alert dialog is displayed on Chrome 52+ [['OS-All', 'Pri-1', 'merge-merged-2743']]
  136. Resolved issue 1339: Failure when executing JS in a content script context [['OS-All', 'Pri-1']]
  137. Resolved issue 1387: ChromeDriver hangs when calling driver.get() for same-process navigations [['OS-All', 'Pri-1']]
  138. Resolved issue 1365: Touch emulation is not working under mobile emulation in Chrome 50+ [['OS-All', 'Pri-1']]
  139. Resolved issue 1224: Chrome WebDriver throws an exception when trying to click a button inside a frame [['OS-All', 'Pri-2']]
  140. Resolved issue 107: ChromeDriver Won't Switch To Frame inside nested frameset [['OS-All', 'Pri-2']]
  141. Resolved issue 1368: ExecuteScript returns "Cannot read property 'document' of null" [[]]
  142. Resolved issue 1355: Session not created exception when connecting to existing browser on localhost [[]]
  143. Resolved issue 1331: "chromeOptions.excludeSwitches" is not working on Android [[]]
  144.  
  145. ----------ChromeDriver v2.21 (2016-01-28)----------
  146. Supports Chrome v46-50
  147. Resolved issue 1276: empty FindElement response is returned while trying to find element with tagname object/embed [['OS-All', 'Pri-1']]
  148. Resolved issue 1272: GET url returns "data:text/html,chromewebdata" [['OS-All', 'Pri-2']]
  149. Resolved issue 1310: ChromeDriver hangs (and times out) when inspecting inactive background pages [['OS-All', 'Pri-2']]
  150. Resolved issue 824: ChromeDriver creates two cookies when the cookie to add contains the domain [['OS-All', 'Pri-2']]
  151. Resolved issue 1274: ExecuteScript sends script to wrong execution context [['OS-All', 'Pri-2']]
  152. Resolved issue 1249: Change "get current URL" behavior in ChromeDriver [['OS-All', 'Pri-2']]
  153. Resolved issue 904: include Alert text in UnhandledAlertError stack trace [['OS-All', 'Pri-2']]
  154. Resolved issue 474: getAttribute() fails when attribute name has colon (:) character [['OS-All', 'Pri-3']]
  155. Resolved issue 1245: Unable to switch to 1st opened window in session [[]]
  156. Resolved issue 1290: Cannot access elements from subframes [[]]
  157. Resolved issue 1261: getTitle() should return empty string instead of page url when page title is empty [[]]
  158. Resolved issue 1238: testExecuteInRemovedFrame fails on waterfall bots [['OS-All']]
  159. Resolved issue 1246: Chromedriver version number is not displayed in logs/ getCapabilities() [['OS-All']]
  160.  
  161. ----------ChromeDriver v2.20 (2015-10-08)----------
  162. Supports Chrome v43-48
  163. Resolved issue 1225: RESPONSE InitSession unknown error: Device <device_id> is not online [['OS-Android', 'Pri-0']]
  164. Resolved issue 960: ChromeDriver support to access WebView elements [['OS-All', 'Pri-2']]
  165. Resolved issue 1229: Spec violation: /sessions endpoint returns session ID at `sessionId` key instead of `id` key [['OS-All', 'Pri-2']]
  166.  
  167. ----------ChromeDriver v2.19 (2015-08-28)----------
  168. Supports Chrome v43-47
  169. Resolved issue 1167: Various issues with ChromeDriver navigation tracker [['OS-All', 'Pri-1']]
  170. Resolved issue 1205: Chrome crashes when enabling touch emulation [['OS-Mac', 'OS-Windows', 'Pri-1']]
  171. Resolved issue 1142: cookies' httponly attribute is not returned [['Pri-2']]
  172.  
  173. ----------ChromeDriver v2.18 (2015-08-19)----------
  174. Supports Chrome v43-46
  175. Resolved issue 1158: Unable to find elements after installing Chrome 44 [['ChromeDriver-2.17', 'OS-All', 'Pri-1']]
  176. Resolved issue 635: Implement touch actions for android chrome [['OS-Android', 'Pri-2']]
  177. Resolved issue 1194: unknown error: cannot determine loading status from disconnected: received Inspector.detached event [[]]

  3.安装 这个教程来。

https://cuiqingcai.com/4886.html

centos 无界面安装selenium+chrome+chromedirver的设置的更多相关文章

  1. Ubuntu 无界面使用selenium chrome + headless

    1. 安装 selenium : sudo pip install selenium 2. 安装 chromdriver: 进入 淘宝镜像源 下载 chromdriver, 可以查看 notes.tx ...

  2. centos 无界面 服务器 安装chrome部署chromedriver

    转:https://blog.csdn.net/u013849486/article/details/79466359 基本 做完了,要弄进docker里面去了的时候,才搜到 docker-chrom ...

  3. arm树莓派Raspbian 下安装selenium+chrome

    arm树莓派Raspbian 下安装selenium+chrome 安装selenium pip3 install selenium 安装chromedriver sudo apt-get insta ...

  4. linux无界面模式安装selenium+chrome+chromedriver并成功完成脚本(亲测可用)

    环境:docker centos 7.4 能通外网 写好的selenium脚本. 具体步骤: 一:安装selenium  这是最简单的 直接利用 pip3 install selenium 二 安装c ...

  5. ubuntu中如何安装selenium+chrome(headless)无界面浏览器?

    selenium是一个Web的自动化测试工具,它可以根据我们的指令,让浏览器自动加载页面,获取需要的数据,甚至页面截屏,或者判断网站上某些动作是否发生.但是它自身不带浏览器,不支持浏览器的功能,因此它 ...

  6. Centos 7.6 安装selenium+firefox+google chrome(支持xshell运行)

    1. 查看Linux 版本 [root@penguin selenium]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) ...

  7. linux安装selenium+chrome+phantomjs

    1. 安装 selenium pip3 install selenium pip3 安装参考 2. 安装 ChromeDriver yum install chromedriver.x86_64 3. ...

  8. arm 环境下安装selenium+chrome

    1.  升级软件 apt-get update 2. 安装pip apt-get install python3-pip 3. 安装selenium pip3 install selenium .4. ...

  9. 在linux中安装selenium+chrome

    主要参照百度的一些内容加上自己的实际操作,对自己遇到的几个问题进行总结: 第一个问题:安装selenium---sudo pip install selenium 显示:You are using p ...

随机推荐

  1. node+express POST请求

    // POST 登录 app.post('/login', function (req, res) { // 定义了一个post变量,用于暂存请求体的信息 let [post,addSql,addSq ...

  2. 工具 - VNC

    安装 ubuntu下vnc客户端的安装命令sudo apt-get install xtightvncviewer 重置密码 cd /root/.vnc/ rm -rf passwd vncserve ...

  3. 应用安全-软件安全-漏洞CVE整理

    jira ssrf CVE-2019-8451 url = url + '/plugins/servlet/gadgets/makeRequest?url=' + host + '@www.baidu ...

  4. python控制流-循环

    一.while循环语句 1.只要 while 语句的条 件为 True,while 子句中的代码就会执行. 2.while 语句总是包含下面几 部分: (1)关键字(2)条件(求值为 True 或 F ...

  5. Hibernate的批量抓取

    批量抓取理解:如果我们需要查找到客户的所有联系人的话,按照正常的思路,一般是首先查询所有的客户,得到返回的客户的List集合.然后遍历List集合,得到集合中的每一个客户,在取出客户中的联系人(客户表 ...

  6. Java数据结构之链表(Linked List)

    1.链表(Linked List)介绍 链表是有序的列表,但是它在内存存储结构如下: 2.特点: 链表是以节点的方式来存储,是链式存储 每个节点包含 data 域, next 域:指向下一个节点. 链 ...

  7. hdu-4289.control(最小割 + 拆点)

    Control Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Sub ...

  8. String hashCode 这个数字,很多人不知道!

    作者:coolblog segmentfault.com/a/1190000010799123 1. 背景 某天,我在写代码的时候,无意中点开了 String hashCode 方法.然后大致看了一下 ...

  9. PTA第二题

    #include<string.h> #include<stdio.h> #include<malloc.h> ]; ][]={"ling",& ...

  10. BZOJ 1100 &&luogu 3454(计算几何+KMP)

    题面 给定一个多边形,求对称轴数量. 分析 初看这似乎是一道计算几何的题目,但是如果暴力枚举对称轴,再去判断对称轴两边的边和角是否相等,时间复杂度为\(O(n^2)\),显然会TLE 问题转换 顺时针 ...