mirror of
https://github.com/appium/appium.git
synced 2026-02-09 03:09:02 -06:00
there are more ways of not being a web context now
I don't think this is the fix, but it could help with #3115
This commit is contained in:
@@ -56,7 +56,7 @@ arguments.
|
||||
|
||||
### Notes
|
||||
|
||||
* You must supply the `--no-reset` and `--full-reset` flags for
|
||||
* You must supply the `--no-reset` or `--full-reset` flags for
|
||||
Android to work on Windows.
|
||||
* There exists a hardware accelerated emulator for Android, it has it's own
|
||||
limitations. For more information you can check out this
|
||||
|
||||
@@ -1403,7 +1403,7 @@ iOSController.active = function (cb) {
|
||||
};
|
||||
|
||||
iOSController.isWebContext = function () {
|
||||
return !!this.curContext;
|
||||
return this.curContext !== null && this.curContext !== NATIVE_WIN;
|
||||
};
|
||||
|
||||
iOSController.webContextIndex = function () {
|
||||
@@ -1445,6 +1445,7 @@ iOSController.getContexts = function (cb) {
|
||||
};
|
||||
|
||||
iOSController.setContext = function (name, cb, skipReadyCheck) {
|
||||
logger.debug("Attempting to set context to '" + name + "'");
|
||||
if (name === this.curContext) {
|
||||
cb(null, {
|
||||
status: status.codes.Success.code
|
||||
|
||||
Reference in New Issue
Block a user