Open ikostan opened 5 years ago
i too have this problem,I killed a lot of time for search solution, but did not find c#, Win 64 and 32
Found that it works with the following capabilities:
browserName = "chrome"
browserVersion = "62.0"
It seems that webdriver binary is built with incorrect browser name inside (original Chrome).
Thanks for the comment. So it looks like it won't work for anyone unless you specify wrong browser name... wow
I had Opera webdriver working correctly. After updating the browser to 62 and the driver to 75 it stops working with this stupid error message. You broke it! Congratulations! Who was so clever to upload a webdriver to Github which does not even start the browser? Don't you do thorough testing before uploading a new version?
Seems like people starting waking up which is a good thing. It's been 10 days since I opened this issue and yet we have no response from the dev team... But I still have a hope.
Encountering same problem here :(. Hope this gets picked up/commented on/resolved soon!
I am using bonigarcia method for launching browsers, Other browsers like Chrome, Firefox, Edge launches fine but when I tried with Opera it not launching,
if(browser.equalsIgnoreCase("Opera")) { WebDriverManager.operadriver().setup(); tldriver.set(new OperaDriver());
Even I am getting below error message while using in Selenium
org.openqa.selenium.SessionNotCreatedException: session not created: No matching capabilities found Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
Please resolve!
I have the same problem using Opera 62 and Opera web driver 75.0.3770.100 (Windows 64 bit)
Launch sequence in Java: OperaOptions options = new OperaOptions(); options.setBinary("C:/Opera/62.0.3331.99/opera.exe"); webDriver = new OperaDriver(options);
Error message: SessionNotCreatedException: Message: session not created: No matching capabilities found
It worked well with Opera 60 and wed driver 2.45 I hope it will be fixed soon. Thanks.
I have successfully downgraded to older opera web driver v2.42 It seems to be a valid solution and it works with Opera 62 Have a good day.
I have successfully downgraded to older opera web driver v2.42 It seems to be a valid solution and it works with Opera 62 Have a good day.
Actually it is not a valid solution. I am pretty sure that driver v2.42 dos not support Opera 62. Just check your Opera binary folder and you will see that an old opera version is still there, meaning you working with Opera 60 or so.
As far as I understand the only workaround is to specify following capabilities:
browserName = "chrome" browserVersion = "62.0"
No need, just use old web driver 2.42 64 bit and check yourself, it works with Opera 62 (latest version). Windows 10 64 bit, Java, Selenium 3.141.59, TestNG 6.9.8
When used with Opera 62, driver version 2.42 returns the error session not created: Opera needs to be based on Chromium version between 70 and 73
for me, so downgrading the driver is not a valid option.
As far as I understand the only workaround is to specify following capabilities:
browserName = "chrome" browserVersion = "62.0"
Where should i set these parameters ? I tried to do this, but to no avail.
Function where i try to run web driver (without capabilities):
def setUp(self):
self.browser = webdriver.Firefox()
Thanks.
As far as I understand the only workaround is to specify following capabilities: browserName = "chrome" browserVersion = "62.0"
Where should i set these parameters ? I tried to do this, but to no avail.
Function where i try to run web driver (without capabilities):
def setUp(self): self.browser = webdriver.Firefox()
Thanks.
Hi there.
I gave up on this issue a few weeks ago. You better ask @vania-pooh how to do since it was his original comment.
Thanks.
@dakofiev these are standard Selenium capabilities to be set in the code.
Hi Guys! Sorry for delayed answer.
I have also experienced this issue. A quick workaround should be to use ChromeOptions() and additional argument for the browser: "allow-elevated-browser":
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('allow-elevated-browser')
driver = webdriver.Opera(options=options)
There is another issue with OperaDriver - which is not able to find Opera binary if it's installed in other location than "Program Files" or "Program Files (x86)". In such case "binary_location" option must be specified as well to properly locate the binary.
e.g.
options.binary_location = C:/Users/....../opera.exe
Make sure you also use the latest official selenium package (3.141.0). I hope this helps.
@rkrupski btw, official Opera Linux packages (aka opera-stable
) install Opera to /usr/bin/opera
, so at least this path should be processed too in operadriver binary.
@rkrupski btw, I see that Opera 63.0.3368.43 was released. Could you add respective binary for Operadriver?
@rkrupski, @ikostan, @vania-pooh, guys, thank you very much !!!
@vania-pooh We're going to release a new OperaDriver soon, but first we want to fix the problem with "No matching capabilities found" to eliminate a need to use any workarounds.
@rkrupski glad to hear. It would be great if you add /usr/bin/opera
as one of default search locations: https://github.com/bayandin/chromedriver/blob/master/chrome/chrome_finder.cc
for mac need to add following values for edge 80 and above
edge_opts = EdgeOptions()
edge_opts.use_chromium=True
edge_opts._page_load_strategy='eager'
edge_opts.add_argument("headless")
edge_opts.add_argument("disable-gpu")
app.logger.info("using edge options")
edge_caps = edge_opts.to_capabilities()
edge_caps["browserName"]="MicrosoftEdge"
edge_caps["platform"]="MAC
and refer these below links https://github.com/microsoft/edge-selenium-tools https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium?tabs=c-sharp
I got a same problem when i use msedgedriver to run an integration test. change the web_driver_server.dart work for me. Thanks to my technical leader for telling me this solution. I hope this helps.
OS: Win 10 64 bit Opera: 62.0.3331.99 operadriver: 75.0.3770.100 Error Log:
test setup failed self = <drivers.driver.Driver object at 0x042513D0>
..\drivers\driver.py:40:
self = <selenium.webdriver.opera.webdriver.WebDriver (session="None")> desired_capabilities = None executable_path = 'C:\Users\superadmin\Documents\GitHub\SELENIUM_WEBDRIVER_WORKING_WITH_ELEMENTS\drivers\opera\win_64\75.0.3770.100\operadriver.exe' port = 0, service_log_path = None, service_args = None options = <selenium.webdriver.opera.options.Options object at 0x042513B0>
..\venv\lib\site-packages\selenium\webdriver\opera\webdriver.py:83:
self = <selenium.webdriver.opera.webdriver.WebDriver (session="None")> executable_path = 'C:\Users\superadmin\Documents\GitHub\SELENIUM_WEBDRIVER_WORKING_WITH_ELEMENTS\drivers\opera\win_64\75.0.3770.100\operadriver.exe' port = 0 options = <selenium.webdriver.opera.options.Options object at 0x042513B0> service_args = None, desired_capabilities = None, service_log_path = None opera_options = None, keep_alive = True
..\venv\lib\site-packages\selenium\webdriver\opera\webdriver.py:62:
self = <selenium.webdriver.opera.webdriver.WebDriver (session="None")> executable_path = 'C:\Users\superadmin\Documents\GitHub\SELENIUM_WEBDRIVER_WORKING_WITH_ELEMENTS\drivers\opera\win_64\75.0.3770.100\operadriver.exe' port = 0 options = <selenium.webdriver.opera.options.Options object at 0x042513B0> service_args = None desired_capabilities = {'browserName': 'opera', 'operaOptions': {'args': [], 'binary': 'C:\Users\superadmin\AppData\Local\Programs\Opera\62.0.3331.99\opera.exe', 'extensions': []}, 'platform': 'ANY', 'version': ''} service_log_path = None, chrome_options = None, keep_alive = True
..\venv\lib\site-packages\selenium\webdriver\chrome\webdriver.py:81:
self = <selenium.webdriver.opera.webdriver.WebDriver (session="None")> command_executor = <selenium.webdriver.chrome.remote_connection.ChromeRemoteConnection object at 0x04251530> desired_capabilities = {'browserName': 'opera', 'operaOptions': {'args': [], 'binary': 'C:\Users\superadmin\AppData\Local\Programs\Opera\62.0.3331.99\opera.exe', 'extensions': []}, 'platform': 'ANY', 'version': ''} browser_profile = None, proxy = None, keep_alive = False, file_detector = None options = None
..\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py:157:
self = <selenium.webdriver.opera.webdriver.WebDriver (session="None")> capabilities = {'browserName': 'opera', 'operaOptions': {'args': [], 'binary': 'C:\Users\superadmin\AppData\Local\Programs\Opera\62.0.3331.99\opera.exe', 'extensions': []}, 'platform': 'ANY', 'version': ''} browser_profile = None
..\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py:252:
self = <selenium.webdriver.opera.webdriver.WebDriver (session="None")> driver_command = 'newSession' params = {'capabilities': {'alwaysMatch': {'browserName': 'opera', 'platformName': 'any'}, 'firstMatch': [{}]}, 'desiredCapabil...admin\AppData\Local\Programs\Opera\62.0.3331.99\opera.exe', 'extensions': []}, 'platform': 'ANY', 'version': ''}}
..\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py:321:
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x04251790> response = {'status': 500, 'value': '{"value":{"error":"session not created","message":"session not created: No matching capabili...98E8D+1281677]\n\tBaseThreadInitThunk [0x00007FF9D1B07974+20]\n\tRtlUserThreadStart [0x00007FF9D42CA271+33]\n"}}'}
..\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py:242: SessionNotCreatedException
During handling of the above exception, another exception occurred:
cls = <class 'basic_driver_test.opera_driver_test.MyTestCase'>
opera_driver_test.py:12:
..\drivers\driver.py:28: in init self._set_driver() ..\drivers\driver.py:47: in _set_driver self.driver = webdriver.Opera(options=options, executable_path=path) ..\venv\lib\site-packages\selenium\webdriver\opera\webdriver.py:83: in init service_log_path=service_log_path) ..\venv\lib\site-packages\selenium\webdriver\opera\webdriver.py:62: in init keep_alive=keep_alive) ..\venv\lib\site-packages\selenium\webdriver\chrome\webdriver.py:81: in init desired_capabilities=desired_capabilities) ..\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py:157: in init self.start_session(capabilities, browser_profile) ..\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py:252: in start_session response = self.execute(Command.NEW_SESSION, parameters) ..\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py:321: in execute self.error_handler.check_response(response)
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x041E2C10> response = {'status': 500, 'value': '{"value":{"error":"session not created","message":"session not created: No matching capabili...98E8D+1281677]\n\tBaseThreadInitThunk [0x00007FF9D1B07974+20]\n\tRtlUserThreadStart [0x00007FF9D42CA271+33]\n"}}'}
..\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py:242: SessionNotCreatedException