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)
- [🐛 Bug]: element not located in the shadow root nested element HOT 6
- [🐛 Bug]: browser.execute throw error if injectGlobals set to false, wdio v9 HOT 1
- [🐛 Bug]: Only Android does not show appName in wdio-spec-reporter HOT 4
- [🐛 Bug]: getText() doesn't work when switching to another browser window on v.9
- [🐛 Bug]: `$('body')` returns no results in v9 HOT 2
- Error while running view coverage using @wdio/browser-runner. HOT 1
- [🐛 Bug]: V9: newer versions of V9 break switchWindow functionality HOT 1
- [🐛 Bug]: WDIO v9 breaks backwards compatibility of `executeAsync` when used with BiDi
- [🐛 Bug]: browser.execute breaks when declaring functions HOT 12
- [🐛 Bug]: Top-level await is currently not supported Issue HOT 7
- [🐛 Bug]: <title> scroll direction(swipe up) in mobile is not working HOT 2
- [🐛 Bug]: Memory leak in execution and warning running mpm install HOT 1
- [🐛 Bug]: Issue with ShadowRootManager after refreshing the page HOT 1
- [🐛 Bug]: <@wdio/allure-reporter": "^8.39.0 generates green report even for the failed tests> HOT 1
- [🐛 Bug]: module system issue when using with vite and storybook HOT 2
- [🐛 Bug]: Webdriver Bidi command timed out HOT 10
- [🐛 Bug]: Cannot run iOS specs on Browserstack after upgrade to wdio v9 HOT 6
- [🐛 Bug]: V9: cannot run tests using node.js v18.16.0 HOT 1
- [🐛 Bug]: wdio v9 issue with selenium grid protected by basic auth HOT 4
- [🐛 Bug]: Browser runner hangs and times out on Firefox in wdio v9 HOT 3
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.