Comments (6)
It would be actually nice if this could be a native Appium command. I wonder what Appium does when calling the refresh WebDriver command? We could just run above code in the Appium server.
@jlipps what do you think?
from webdriverio.
I guess there's no reason it couldn't be in Appium itself. What do you think @mykola-mokhnach?
from webdriverio.
I guess there's no reason it couldn't be in Appium itself. What do you think @mykola-mokhnach?
I don't see how such API could look like. In Android and iOS extensions to run apps work differently, not saying about other drivers.
For example, in order to restart an iOS app one could perform mobile: launchApp
and xctest automatically terminates it if it is already running.
In Android for the mobile: startActivity
API one must set stop
arg to true
in order for the activity to be restarted upon launch.
from webdriverio.
I don't see how such API could look like.
Ideally it would be great if we could the operation of restarting an app within the refresh WebDriver command (/session/{session id}/refresh
). To simplify this, it would require the xcuitest
and uiautomator2
driver to keep the information which app was or is currently opened. Can you confirm if these drivers are capable to do that? Maybe Appium could call getCurrentActivity
for example in Android as part of the execution.
from webdriverio.
Unfortunately it's not so simple. The current activity might not be launchable. Also, we don't know what/if we need to apply any additional arguments or environment variables on startup.
from webdriverio.
The current activity might not be launchable.
In this case the refresh
command should/would fail.
Also, we don't know what/if we need to apply any additional arguments or environment variables on startup.
Is there a way to pull these information before we shut down the app and use them when starting the app again?
from webdriverio.
Related Issues (20)
- [π Docs]: } added after method names in INFO panels HOT 4
- [π‘ Feature]: Support for Grid Managed Downloads HOT 2
- BrowserStack build identifier is not set when `BROWSERSTACK_BUILD_NAME` environment variable is set
- [π Bug]: BrowserStack build identifier is not set when BROWSERSTACK_BUILD_NAME environment variable is set HOT 5
- [π‘ Feature]: Timeout for Entirety of WebDriverIO Test Runner Instance HOT 2
- [π Bug]: have a switch to allow offline mode, and donβt check chrome labs when not using chrome HOT 5
- [π Bug]: Cannot command on elements coerced into an array: `Malformed type for "elementId" parameter` HOT 2
- [π Bug]: Is the gitpod environment broken? HOT 2
- [π Bug]: @wdio/junit-reporter - Both Errors and Failures Incremented for Failed Tests HOT 2
- [π Bug]: touchAction exec error ( [email protected] ) HOT 1
- [π Bug]: Chrome temporary profile left on disk HOT 5
- [π Bug]: Mocha Step Definition Timeout HOT 4
- [π Bug]: custom element commands doesn't work with browser runner HOT 7
- [π Bug]: TypeError: Spread syntax requires ...iterable[Symbol.iterator] to be a function HOT 3
- [π‘ Feature]: Centralized context manager for Iframe lookups HOT 1
- [π‘ Feature]: Support configuring NODE_OPTIONS for ChromeDriver separately from NODE_OPTIONS for WDIO itself HOT 5
- [π Bug]: I should be able to chain element using both xpath and css HOT 1
- [π Bug]: "goog:chromeOptions" args and prefs are being ignored? HOT 3
- [π Bug]: <Tough all the test cases of my spec files are passed it shows 1 spec failure in the console log> HOT 5
- [π‘ Feature]: Allow skipping anywhere in test execution HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdriverio.