You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been doing product development and testing for the past 10 years and took over our company's R&D selenium testing for one of our products a couple years ago. I'm in the process of updating our C# test framework that tests our product's webserver functionality across a series of browsers. One of the browsers recently added by PM was Opera. Currently, we are using the following versioning in our framework:
PM specified we had to ensure we support Opera 58.x for our customer as this will be documented to the customer in our next product release, so unfortunately I'm tied to testing against this specific version.
I've done some extensive reading online about automating Opera. I determined from GitHub that I needed the operachromiumdriver v2.42 for my specifc 58.x version of Opera.
When I ran the above code with nunit as administrator, the following 3 things happen in order:
1. Operadriver.exe console window launches
2. OperaSoftware.OperaWebBrowser.1610649940 console window launches An
3. instance of Opera.exe launches
At this point, nunit indicates the following error for this test:
SystemTest_S7_1200.Communications._45WebServer._456_WebServer_Opera._45001_BasicFunctionality:
SetUp : OpenQA.Selenium.WebDriverException : unknown error: Opera failed to start: crashed
(Opera not reachable)
(The process started from chrome location C:\Users\System Test\AppData\Local\Programs\Opera\58.0.3135.127\opera.exe is no longer running, so OperaDriver is assuming that Opera has crashed.)
(Driver info: OperaDriver=2.42.3135 (O58),platform=Windows NT 10.0.17763 x86_64)
I was a bit confused by this error because I can clearly see Opera started. So, I got looking at the logging for operadriver.exe:
In the OperaSoftware.OperaWebBrowser console, the following is logged:
[8116:8468:0201/164204.426:ERROR:tcp_socket_win.cc(355)] bind() returned an error: Only one usage of each socket address (protocol/network address/port) is normally permitted. (0x2740)
[8116:8468:0201/164204.442:ERROR:tcp_socket_win.cc(355)] bind() returned an error: Only one usage of each socket address (protocol/network address/port) is normally permitted. (0x2740)
[8116:8468:0201/164204.473:ERROR:devtools_http_handler.cc(295)] Cannot start http server for devtools.
[8116:3184:0201/164205.297:ERROR:gpu_process_transport_factory.cc(967)] Lost UI shared context.
I know I'm really close here to having it working... The thing I believe is my hurdle here is that DevTools HTTP Requests fail on multiple attempts, eventually resulting in the InitSession failing because it fails to reach/attach to Opera.
My question... what am I missing here? With the other browsers we test like Chrome, IE11, etc, launching the webdriver and attaching to the browser instance isn't hard at all. I'm afraid that whatever I'm missing is blatantly obvious and I'm just not seeing it. Of course, from what I've researched online, I didn't see anything clear and definitive when it comes to testing with Opera. Any input is much appreciated.
The text was updated successfully, but these errors were encountered:
I've been doing product development and testing for the past 10 years and took over our company's R&D selenium testing for one of our products a couple years ago. I'm in the process of updating our C# test framework that tests our product's webserver functionality across a series of browsers. One of the browsers recently added by PM was Opera. Currently, we are using the following versioning in our framework:
Selenium WebDriver: V3.141.0.0
Selenium WebDriver.Support: V3.141.0.0
Operadriver_win64: V2.42
Opera Browser: 58.0.3135.127
PM specified we had to ensure we support Opera 58.x for our customer as this will be documented to the customer in our next product release, so unfortunately I'm tied to testing against this specific version.
I've done some extensive reading online about automating Opera. I determined from GitHub that I needed the operachromiumdriver v2.42 for my specifc 58.x version of Opera.
When I ran the above code with nunit as administrator, the following 3 things happen in order:
At this point, nunit indicates the following error for this test:
I was a bit confused by this error because I can clearly see Opera started. So, I got looking at the logging for operadriver.exe:
In the OperaSoftware.OperaWebBrowser console, the following is logged:
I know I'm really close here to having it working... The thing I believe is my hurdle here is that DevTools HTTP Requests fail on multiple attempts, eventually resulting in the InitSession failing because it fails to reach/attach to Opera.
My question... what am I missing here? With the other browsers we test like Chrome, IE11, etc, launching the webdriver and attaching to the browser instance isn't hard at all. I'm afraid that whatever I'm missing is blatantly obvious and I'm just not seeing it. Of course, from what I've researched online, I didn't see anything clear and definitive when it comes to testing with Opera. Any input is much appreciated.
The text was updated successfully, but these errors were encountered: