2013-10-24 62 views
0

随着Python的绑定,我遇到了启动chromedriver的问题。我(可能有些急躁)为OS X安装了Mavericks升级版。当我第一次尝试运行chromedriver时,我收到了未知错误:Chromedriver未能启动。 (Chromedriver 2.2,2.3和2.4)。Chromedriver Mavericks Selenium

在做了一些阅读之后,我发现了一个建议的使用详细模式(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, " 
+0

对于原始错误,我尝试了版本2.2,2.3和2.4。我在chromedriver 2.4上运行了详细的版本。 Chrome版本是30.0.1599.101 – qaduderino

+0

啊,是的,这是有道理的。将我的env信息添加到票证中。谢谢! – qaduderino

+0

@ qaduderino自从发布这个问题以来,chromedriver已经有了一些更新。你有没有试过chromedriver 2.6?它为我解决了所有的小牛问题。 –

回答

相关问题