chromedriver needs to be upgraded to v2 to work with current chromium-browser builds.

Bug #1248745 reported by Joe Millenbach
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

While using selenium code that worked fine with chromedriver v2.3 and v30 Chrome on x86 (but trying to run on an armhf system) I hit an error that looks very similar to https://code.google.com/p/chromedriver/issues/detail?id=471

Exception:
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, ImportSettings, IsFullscreenBubbleDisplayed, IsFullscreenBubbleDisplayingButtons, IsFullscreenForBrowser, IsFullscreenForTab, IsFullscreenPermissionRequested, IsMouseLockPermissionRequested, IsMouseLocked, KillRendererProcess, LaunchApp, LoadSearchEngineInfo, OmniboxAcceptInput, OmniboxMovePopupSelection, PerformActionOnDownload, PerformActionOnInfobar, PerformActionOnSearchEngine, RemoveNTPMostVisitedThumbnail, RemoveSavedPassword, RestoreAllNTPMostVisitedThumbnails, SaveTabContents, SetAppLaunchType, SetOmniboxText, SetWindowDimensions, WaitForAllDownloadsToComplete, WaitForNotificationCount, "

The solution in the bug is "ChromeDriver 1 does not work with Chrome 29." Which means for Chromium v29 and above chromedriver2 code must be used to make the chromium-chromedriver package. I'm trying to run on armhf, so can't use the packaged version from Google.

I assume the new code could be grabbed from https://sites.google.com/a/chromium.org/chromedriver/contributing (took a bit of poking around through invalid links to find).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in chromium-browser (Ubuntu):
status: New → Confirmed
Revision history for this message
Saikrishna Arcot (saiarcot895) wrote :

Just to check, is this referring to the version returned if I run /usr/lib/chromium-browser/chromedriver in Terminal, or is it the Selenium version?

Revision history for this message
Joe Millenbach (jmillenbach) wrote :

I don't have it in front of me (at home...and this is on a work computer), but from what I remember the original chromedriver had version numbers that looked like the chromium build. With the current Ubuntu binary I saw v30... which roughly matches the current Chromium build version number on the same machine.

Current x86 chromedriver2 builds have a version like 2.6. I downloaded my x86 files from http://chromedriver.storage.googleapis.com/index.html - found from http://chromedriver.googlecode.com , from https://code.google.com/p/selenium/downloads/list . There was a fork or new code base a few months back.

This is separate from the Selenium version.

Chad Miller (cmiller)
Changed in chromium-browser (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Joe Millenbach (jmillenbach) wrote :

How can I test this? We'd really like this to work.

And was it correct that you changed chromium-browser, and not chromium-driver?

Revision history for this message
Joe Millenbach (jmillenbach) wrote :

A coworker found a PPA to test this with and it let our test script run (that worked on an x86 similar system). Would be great to release it to regular folks too :-)

Olivier Tilloy (osomon)
Changed in chromium-browser (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.