RobotFramework打不開谷歌瀏覽器問題

當你裝好了RobotFramework後,準備大幹一場,如果你已正確把chromedriver放到python目錄或者system32文件夾下,運行打開谷歌瀏覽器時,可以正常打開瀏覽器,如下圖

這裏寫圖片描述

但是不能輸入網址,發現RobotFramework運行日誌中報以下錯誤,那可能是你的chromedriver版本和瀏覽器版本不兼容造成,更換一下相對應的版本就可以就可以正常運行,目前chromedriver已更新到2.26版本

這裏寫圖片描述

以下是最近幾個版本更新記錄

----------ChromeDriver v2.26 (2016-12-09)----------
Supports Chrome v53-55
Resolved issue 1607: Chrome 57+ with perf logs enabled fails with "unexpected command response" [['OS-All', 'Pri-1']]
Resolved issue 1502: sendKeys(): SPACE key does not work on Chrome 53 [['OS-All', 'Pri-1']]
Resolved issue 984: Extend ChromeDriver capabilities to cover network throttling feature from Chrome DevTools [['OS-All', 'Pri-2']]
Resolved issue 877: UnhandledAlertException not being propagated upwards [['OS-All', 'Pri-2']]
Resolved issue 1578: Flash plugin blocked after updating Chrome browser [['OS-All', 'Pri-2']]
Resolved issue 1617: Fullscreen command is not recognised [['OS-All', 'Pri-3']]
Resolved issue 839: clear does not work on input type number with string value [['Pri-3']]
Resolved issue 1500: "Could not handle JavaScript dialog" error occurs randomly when accepting confirmation dialogs. [[]]
Resolved issue 1541: find element with empty tag is raising wrong exception in findElement [[]]
Resolved issue 1540: empty tagname value should raise an error when doing findElements [[]]

----------ChromeDriver v2.25 (2016-10-25)----------
Supports Chrome v53-55
Resolved issue 1547: Chromedriver crashes during event Runtime.consoleAPICalled [['OS-All', 'Pri-1']]
Resolved issue 1514: GetLog command times out if an alert is showing [['OS-All', 'Pri-1']]
Resolved issue 1460: "Disable Developer Mode Extensions" exists on Mac, but not Windows [[]]

----------ChromeDriver v2.24 (2016-09-09)----------
Supports Chrome v52-54
Resolved issue 1497: GetLog fails when the current window is closed [['OS-All', 'Pri-0']]
Resolved issue 1495: ChromeDriver crashes with "Check failed: !page_load_strategy_.empty()" [['OS-All', 'Pri-0']]
Resolved issue 1463: SessionNotCreatedException: Runtime.evaluate missing 'wasThrown' on Chrome 54+ [['OS-All', 'Pri-0']]
Resolved issue 1484: SendKeys of a Tab Key has no effect in Chrome 53 [['OS-All', 'Pri-1']]
Resolved issue 1431: GetLog command does not work for Chrome 54+ [['OS-All', 'Pri-1']]
Resolved issue 1411: sendKeys generates events that are missing some fields [['OS-All', 'Pri-1']]
Resolved issue 1451: Chrome 54+ session not created exception: Runtime.executionContextCreated has invalid 'context' [['Pri-1']]
Resolved issue 984: Extend ChromeDriver capabilities to cover network throttling feature from Chrome DevTools [['OS-All', 'Pri-2']]
Resolved issue 1454: Net::ReadTimeout error on launching Canary v54 through RemoteWebDriver [[]]

----------ChromeDriver v2.23 (2016-08-04)----------
Supports Chrome v51-53
Resolved issue 1378: Android 6: Intitialization of Chrome driver fails when Chrome/Webview process is in running (R) state [['OS-Android', 'Pri-1']]
Resolved issue 1379: Chromedriver does not catch all available browser console log entries [['OS-All', 'Pri-2']]

----------ChromeDriver v2.22 (2016-06-06)----------
Supports Chrome v49-52
Resolved issue 1348: Timeout error while navigating to URL on Chrome 51+ [['OS-All', 'Pri-0']]
Resolved issue 1381: Timeout error occurs when alert dialog is displayed on Chrome 52+ [['OS-All', 'Pri-1', 'merge-merged-2743']]
Resolved issue 1339: Failure when executing JS in a content script context [['OS-All', 'Pri-1']]
Resolved issue 1387: ChromeDriver hangs when calling driver.get() for same-process navigations [['OS-All', 'Pri-1']]
Resolved issue 1365: Touch emulation is not working under mobile emulation in Chrome 50+ [['OS-All', 'Pri-1']]
Resolved issue 1224: Chrome WebDriver throws an exception when trying to click a button inside a frame  [['OS-All', 'Pri-2']]
Resolved issue 107: ChromeDriver Won't Switch To Frame inside nested frameset [['OS-All', 'Pri-2']]
Resolved issue 1368: ExecuteScript returns "Cannot read property 'document' of null" [[]]
Resolved issue 1355: Session not created exception when connecting to existing browser on localhost [[]]
Resolved issue 1331: "chromeOptions.excludeSwitches" is not working on Android [[]]

----------ChromeDriver v2.21 (2016-01-28)----------
Supports Chrome v46-50
Resolved issue 1276: empty FindElement response is returned while trying to find element with tagname object/embed [['OS-All', 'Pri-1']]
Resolved issue 1272: GET url returns "data:text/html,chromewebdata" [['OS-All', 'Pri-2']]
Resolved issue 1310: ChromeDriver hangs (and times out) when inspecting inactive background pages [['OS-All', 'Pri-2']]
Resolved issue 824: ChromeDriver creates two cookies when the cookie to add contains the domain [['OS-All', 'Pri-2']]
Resolved issue 1274: ExecuteScript sends script to wrong execution context [['OS-All', 'Pri-2']]
Resolved issue 1249: Change "get current URL" behavior in ChromeDriver [['OS-All', 'Pri-2']]
Resolved issue 904: include Alert text in UnhandledAlertError stack trace [['OS-All', 'Pri-2']]
Resolved issue 474: getAttribute() fails when attribute name has colon (:) character [['OS-All', 'Pri-3']]
Resolved issue 1245: Unable to switch to 1st opened window in session [[]]
Resolved issue 1290: Cannot access elements from subframes [[]]
Resolved issue 1261: getTitle() should return empty string instead of page url when page title is empty [[]]
Resolved issue 1238: testExecuteInRemovedFrame fails on waterfall bots [['OS-All']]
Resolved issue 1246: Chromedriver version number is not displayed in logs/ getCapabilities() [['OS-All']]

----------ChromeDriver v2.20 (2015-10-08)----------
Supports Chrome v43-48
Resolved issue 1225: RESPONSE InitSession unknown error: Device <device_id> is not online [['OS-Android', 'Pri-0']]
Resolved issue 960: ChromeDriver support to access WebView elements [['OS-All', 'Pri-2']]
Resolved issue 1229: Spec violation: /sessions endpoint returns session ID at `sessionId` key instead of `id` key [['OS-All', 'Pri-2']]

----------ChromeDriver v2.19 (2015-08-28)----------
Supports Chrome v43-47
Resolved issue 1167: Various issues with ChromeDriver navigation tracker [['OS-All', 'Pri-1']]
Resolved issue 1205: Chrome crashes when enabling touch emulation [['OS-Mac', 'OS-Windows', 'Pri-1']]
Resolved issue 1142: cookies' httponly attribute is not returned [['Pri-2']]

----------ChromeDriver v2.18 (2015-08-19)----------
Supports Chrome v43-46
Resolved issue 1158: Unable to find elements after installing Chrome 44 [['ChromeDriver-2.17', 'OS-All', 'Pri-1']]
Resolved issue 635: Implement touch actions for android chrome [['OS-Android', 'Pri-2']]
Resolved issue 1194: unknown error: cannot determine loading status from disconnected: received Inspector.detached event [[]]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章