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

feat: add appium:includeDeviceCapsToSessionInfo to be able to ignore /screen call to WDA #1278

Merged
merged 3 commits into from
Feb 12, 2021

Conversation

KazuCocoa
Copy link
Member

For appium/appium#15101

In some environments, it seems /screen endpoint takes long time to get the response in XCTest.
As a workaround for now, we can disable the call.

We can call them via an extension like mobile:screenInfo or existing deviceInfo?

lib/driver.js Outdated Show resolved Hide resolved
@KazuCocoa KazuCocoa changed the title feat: add includeScreenInfoInSession to be able to ignore /screen call to WDA feat: add appium:includeDeviceCapsToSessionInfo to be able to ignore /screen call to WDA Feb 12, 2021
@@ -239,6 +239,9 @@ let desiredCapConstraints = _.defaults({
safariIgnoreWebHostnames: {
isString: true,
},
includeScreenInfoInSession: {
Copy link
Contributor

Choose a reason for hiding this comment

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

should the name also be updated here?

Copy link
Contributor

@mykola-mokhnach mykola-mokhnach left a comment

Choose a reason for hiding this comment

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

workarounds, workarounds everywhere. I would rather prefer moving the call to a separate extension and bumping the major driver version

@KazuCocoa
Copy link
Member Author

yea, highly agree with you

@KazuCocoa KazuCocoa merged commit 14e1189 into appium:master Feb 12, 2021
@KazuCocoa KazuCocoa deleted the ignore-screen branch February 12, 2021 22:52
github-actions bot pushed a commit that referenced this pull request Feb 12, 2021
# [3.37.0](v3.36.1...v3.37.0) (2021-02-12)

### Features

* add appium:includeDeviceCapsToSessionInfo to be able to ignore /screen call to WDA ([#1278](#1278)) ([14e1189](14e1189))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 3.37.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

khanayan123 pushed a commit to khanayan123/appium-xcuitest-driver that referenced this pull request May 10, 2021
…/screen call to WDA (appium#1278)

* feat: add includeScreenInfoInSession to be able to ignore /screen call to WDA

* fix review

* fix desired-caps
khanayan123 pushed a commit to khanayan123/appium-xcuitest-driver that referenced this pull request May 10, 2021
# [3.37.0](appium/appium-xcuitest-driver@v3.36.1...v3.37.0) (2021-02-12)

### Features

* add appium:includeDeviceCapsToSessionInfo to be able to ignore /screen call to WDA ([appium#1278](appium#1278)) ([14e1189](appium@14e1189))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants