0

使用 Python 绑定,我在启动 chromedriver 时遇到了问题。我(可能有点匆忙)为 OS X 安装了 Mavericks 升级。当我第一次尝试运行 chromedriver 时,我收到了一个未知错误:Chromedriver 无法启动。(Chrome 驱动程序 2.2、2.3 和 2.4)。

在做了一些阅读之后,我发现了使用详细模式的建议解决方法(Chromedriver 2.4,Chrome 版本 30.0.1599.101)。现在,我仍然无法启动它,但我收到了一个不同的错误,这次是在浏览器打开后:

selenium.common.exceptions.WebDriverException: Message: u"Unknown command 
'WaitForAllTabsToStopLoading'. Options: AcceptOrDismissAppModalDialog, 
ActionOnSSLBlockingPage, ActivateTab, AddBookmark, AddDomEventObserver, AppendTab, 
ApplyAccelerator, BringBrowserToFront, ClearEventQueue, CloseBrowserWindow, CloseTab, 
CreateNewAutomationProvider, DeleteCookie, DeleteCookieInBrowserContext, 
DoesAutomationObjectExist, DragAndDropFilePaths, ExecuteJavascript,
ExecuteJavascriptInRenderView, GetActiveTabIndex, GetAppModalDialogMessage, 
GetBookmarkBarStatus, GetBookmarksAsJSON, GetBrowserInfo, GetBrowserWindowCount, 
GetChromeDriverAutomationVersion, GetCookies, GetCookiesInBrowserContext, 
GetDownloadDirectory, GetExtensionsInfo, GetIndicesFromTab, GetLocalStatePrefsInfo,
GetMultiProfileInfo, GetNextEvent, GetPrefsInfo, GetProcessInfo, GetSecurityState, 
GetTabCount, GetTabIds, GetTabInfo, GetViews, GoBack, GoForward, InstallExtension, 
IsDownloadShelfVisible, IsFindInPageVisible, IsMenuCommandEnabled, IsPageActionVisible, 
IsTabIdValid, MaximizeView, NavigateToURL, OpenFindInPage, OpenNewBrowserWindow, 
OpenNewBrowserWindowWithNewProfile, OpenProfileWindow, OverrideGeoposition, 
RefreshPolicies, Reload, RemoveBookmark, RemoveEventObserver, ReparentBookmark, 
RunCommand, SendWebkitKeyEvent, SetBookmarkTitle, SetBookmarkURL, SetCookie, 
SetCookieInBrowserContext, SetDownloadShelfVisible, SetExtensionStateById, 
SetLocalStatePrefs, SetPrefs, SetViewBounds, SimulateAsanMemoryBug, 
TriggerBrowserActionById, TriggerPageActionById, UninstallExtensionById, 
UpdateExtensionsNow, WaitForBookmarkModelToLoad, WaitUntilNavigationCompletes, 
WebkitMouseButtonDown, WebkitMouseButtonUp, WebkitMouseClick, WebkitMouseDoubleClick, 
WebkitMouseDrag, WebkitMouseMove, AcceptCurrentFullscreenOrMouseLockRequest,
AddOrEditSearchEngine, AddSavedPassword, CloseNotification, 
DenyCurrentFullscreenOrMouseLockRequest, DisablePlugin, EnablePlugin, FindInPage, 
GetAllNotifications, GetDownloadsInfo, GetFPS, GetHistoryInfo, GetInitialLoadTimes,
GetNTPInfo, GetNavigationInfo, GetOmniboxInfo, GetPluginsInfo, GetSavedPasswords,
GetSearchEngineInfo, GetV8HeapStats, IsFullscreenBubbleDisplayed,
IsFullscreenBubbleDisplayingButtons, IsFullscreenForBrowser, IsFullscreenForTab, 
IsFullscreenPermissionRequested, IsMouseLockPermissionRequested, IsMouseLocked, 
KillRendererProcess, LaunchApp, LoadSearchEngineInfo, OmniboxAcceptInput, 
OmniboxMovePopupSelection, PerformActionOnDownload, PerformActionOnInfobar, 
PerformActionOnSearchEngine, RemoveNTPMostVisitedThumbnail, RemoveSavedPassword, 
RestoreAllNTPMostVisitedThumbnails, SaveTabContents, SetAppLaunchType, SetOmniboxText, 
SetWindowDimensions, WaitForAllDownloadsToComplete, WaitForNotificationCount, "
4

1 回答 1

1

此问题似乎已在 chromedriver 2.6 中得到修复:https ://code.google.com/p/chromedriver/issues/detail?id=599

于 2013-11-11T21:55:40.240 回答