Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Avoid using getSession call for capability values retrieval #1216

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

mykola-mokhnach
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach commented Aug 26, 2019

Change list

W3C protocol does not contain getSession API in its spec, which means all calls to HasSessionDetails interface methods will end up with no such method error. As a result, I have replaced all the "static" calls with simple capabilities extraction and the "dynamic" call uses the fact that none of native mobile drivers support javascript execution, - this only works in browser context.

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Details

See https://github.com/appium/appium/issues/13124#issuecomment-524850823

@mykola-mokhnach mykola-mokhnach changed the title Avoid using getSession call for capability values retrieval fix: Avoid using getSession call for capability values retrieval Aug 26, 2019
@mykola-mokhnach mykola-mokhnach changed the title fix: Avoid using getSession call for capability values retrieval [WIP] fix: Avoid using getSession call for capability values retrieval Aug 26, 2019
@mykola-mokhnach mykola-mokhnach changed the title [WIP] fix: Avoid using getSession call for capability values retrieval fix: Avoid using getSession call for capability values retrieval Aug 27, 2019
@mykola-mokhnach
Copy link
Contributor Author

mykola-mokhnach commented Aug 27, 2019

The error in e2e tests is a CI flakiness issue

Copy link
Member

@SrinivasanTarget SrinivasanTarget left a comment

Choose a reason for hiding this comment

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

👍

@SrinivasanTarget
Copy link
Member

The error in e2e tests is a CI flakiness issue

Yeah, I did notice in master. Will fix it asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants