Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Update the logic that determines the session protocol #336

Merged
merged 2 commits into from
Jul 18, 2019

Conversation

mykola-mokhnach
Copy link
Contributor

It might be that we proxy /status call first to the downstream driver and it responds in W3C style (since this is a default setting), but then after createSession request is sent the photo is changed to JSONWP based on the provided caps. This change should properly handle such scenario.

Copy link
Member

@jlipps jlipps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code looks good to me, but I'm realizing with a lot of this kind of code, the rationale is a bit opaque. It would be nice to have comments explaining under what circumstances the different conditional blocks are triggered, and why.

@mykola-mokhnach
Copy link
Contributor Author

Makes sense. Added the explanation comment

@mykola-mokhnach mykola-mokhnach merged commit ed16a68 into appium:master Jul 18, 2019
@mykola-mokhnach mykola-mokhnach deleted the tune_proto branch July 18, 2019 17:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants