Repository navigation
fix(webdriver): support W3C appium: prefix and custom connection for directConnect - #1358
hoanle0126 wants to merge 1 commit into
Conversation
|
Have you observed services which return them with |
|
Yes, when routing Appium sessions through Selenium Grid 4 (or custom W3C-strict relay proxies) that enforce W3C vendor prefixes on extension capabilities, unprefixed keys get stripped or rejected unless prefixed with |
|
Yeah, technical term perspective is correct since I added them in the past. I wanted to know if any service returned these with prefix. I know some, but they returned both. So I was curious if you had this issue exactly - didn't work the directConnect because of the prefix related. So, you use this feature via selenium grid, and had this not working behavior? |
|
To be completely transparent: I haven't seen a third-party cloud provider return only the The actual bug I ran into was passing a pre-configured While fixing that and testing against a local mock/Grid setup, I added the |
Change list
Align direct connect capability handling in
WebDriver._update_command_executorwith the other official Appium clients (Java, .NET, and Ruby):appium:directConnectProtocol,appium:directConnectHost,appium:directConnectPort, andappium:directConnectPathcapabilities in the session response, preferring W3C-prefixed keys over unprefixed keys when both are present.Nonedirect connect capability values instead of constructing an invalid endpoint URL.direct_connection=TruewhenAppiumClientConfigis configured on a customAppiumConnectionpassed viacommand_executor, and preserve custom connection subclasses when updating the endpoint.Types of changes