Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

ruby selenium-webdriver doesn't support chromedriver2 #5591

Closed
lukeis opened this issue Mar 4, 2016 · 12 comments
Closed

ruby selenium-webdriver doesn't support chromedriver2 #5591

lukeis opened this issue Mar 4, 2016 · 12 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 5591

What steps will reproduce the problem?
1. Download chromedriver2 (version 0.8)
2. Try to create a chrome webdriver and a session for it inside ruby

What is the expected output? 

chromedriver creates a new session

What do you see instead?

inside the logs: {"message":"unknown error: unrecognized chrome option: detach\n  (Driver
info: chromedriver=0.8,platform=Mac OS X 10.8.3 x86_64)"}

Operating system: Mac OS X 10.8.3 x86_64
selenium-webdriver gem version: 2.32.1

Comments:

The problem is that chromedriver2 doesn't support the option chrome.detach, which the
current webdriver always sends.

A related error is that the new chromedriver uses prefs, instead of profiles, so code
that changes the profiles will also not work, while there is no (easy) way to set prefs.

Here are two changes for bridge.rb that solve the original and the related issue:

https://github.com/sztupy/selenium-webdriver/commit/5c0e949fc5d5cc7b63194a79c9830763020288c4
(disregard the changes in other files)
https://github.com/sztupy/selenium-webdriver/commit/d3350b5bc6a8430cd1cfbb88912752ed79c3ad14

Reported by sztupy on 2013-05-02 17:57:57

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2013-05-05 21:20:30

  • Labels added: Lang-Ruby, Browser-Chrome

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Here's the corresponding issue in ChromeDriver - please star it to draw attention to
it:

  https://code.google.com/p/chromedriver/issues/detail?id=208


Reported by jari.bakken on 2013-05-05 23:26:24

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Can this issue be marked a duplicate of chromedriver#208 ?

Reported by barancev on 2013-05-12 17:46:57

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

chromedriver2 not handling the detach property is only part of the problem. The fact
that it now uses "prefs" instead of "profiles" (with different semantics) is something
that probably needs to be addressed inside selenium-webdriver

Reported by sztupy on 2013-05-12 17:52:11

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Btw the above mentioned two code changes address the two issues. The first one is for
the deatch property (enables it to be not-sent to the driver), while the second is
to add handling to the prefs property

Reported by sztupy on 2013-05-12 17:54:17

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

latest version of chromedriver shows issue 208 fixed for the detach problem. is that
enough to retry here?

Reported by luke.semerau on 2013-06-20 05:55:52

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Yes, this is no longer an issue with the latest chromedriver.

Reported by jari.bakken on 2013-06-20 09:22:53

  • Status changed: WontFix
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

The profile / prefs thing is still a problem, but it should be a separate issue.

Reported by jari.bakken on 2013-06-20 09:24:03

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

+1 still getting:
Selenium::WebDriver::Error::UnknownError: unknown error: unrecognized chrome option:
profile
  (Driver info: chromedriver=2.0,platform=Mac OS X 10.8.4 x86_64)

With latest chromedriver  and latest ruby bindings

Reported by flyinprogramer on 2013-06-25 23:08:48

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Submitted new issue for the related bug:

https://code.google.com/p/selenium/issues/detail?id=5951

Reported by sztupy on 2013-07-18 16:27:24

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by jari.bakken on 2015-02-26 23:01:21

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:17:14

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant