Update Selenium to 4.4.0 to fix DevTools interactions +semver: feature #220
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
to be merged after the Aquality.Selenium.Core library is updated: aquality-automation/aquality-selenium-core-dotnet#99
Found a solution unexpectedly by comparing java and dotnet implementation and documentation on selenium.dev.
Solution was to prepare proper ChromeOptions:
set binary to location of launcher.exe
set start arguments: "--remote-debugging-port=9222", "--no-sandbox", "--disable-dev-shm-usage"
! force set "w3c" to true.
In java this is quite simple:
options.setExperimentalOption("w3c", true);
In C# such capability is forbidden as already known, so I had to use the reflection to forcibly add it to additionalChromeOptions private dictionary in ChromiumOptions class:
Related to bug SeleniumHQ/selenium#10835
Opera native support was removed from Selenium library since version 4.2.0:
SeleniumHQ/selenium@6dcef3a
, and provided example (https://www.selenium.dev/documentation/webdriver/getting_started/open_browser/#opera) from official site is not working
Related discussions:
https://forum.robotframework.org/t/opera-browser-unable-to-open-browser/4086
https://stackoverflow.com/questions/72536114/selenium-driver-failing-with-opera-87-0-4390-45
https://stackoverflow.com/questions/72560244/opera-webdriver-is-not-starting-on-selenium-4
operasoftware/operachromiumdriver#100 (comment)
operasoftware/operachromiumdriver#96 (comment)
SeleniumHQ/selenium#10835 (comment)