Remove 'browserName' capability from stereotype when using RelaySession#14247
Remove 'browserName' capability from stereotype when using RelaySession#14247diemol merged 5 commits intoSeleniumHQ:trunkfrom
Conversation
…resent is SessionRequest
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
java/src/org/openqa/selenium/grid/node/relay/RelaySessionFactory.java
Outdated
Show resolved
Hide resolved
…on (SeleniumHQ#14247) * Remove 'browserName' capability from stereotype. We expect it to be present is SessionRequest * Only remove 'browserName' when 'appium:app' is present * Formatting file --------- Co-authored-by: Diego Molina <diemol@users.noreply.github.com> Co-authored-by: Diego Molina <diemol@gmail.com>
…on (SeleniumHQ#14247) * Remove 'browserName' capability from stereotype. We expect it to be present is SessionRequest * Only remove 'browserName' when 'appium:app' is present * Formatting file --------- Co-authored-by: Diego Molina <diemol@users.noreply.github.com> Co-authored-by: Diego Molina <diemol@gmail.com>
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Remove browserName capability from stereotype before merging requested capabilities and stereotype.
Motivation and Context
When using Selenium Grid relay with appium and trying to test a mobile application, if node declares a browserName in stereotype, this browserName is added to capabilities sent to appium
Solves issue #14216
Moreover, if the session would need a browser, browserName capability would be provided in session request
Types of changes
Checklist
I've tested the change in the situation where the problem occured, and it's solved.
PR Type
Bug fix
Description
browserNamecapability from the stereotype inRelaySessionFactoryto prevent conflicts with Appium tests when an app is provided.MutableCapabilitiesandCapabilityTypeto facilitate these changes.Changes walkthrough 📝
RelaySessionFactory.java
RemovebrowserNamecapability from stereotype in RelaySessionFactoryjava/src/org/openqa/selenium/grid/node/relay/RelaySessionFactory.java
MutableCapabilitiesandCapabilityType.browserNamecapability from the stereotype to avoid conflictswith Appium tests.