Comments (10)
@jlipps Any Comments.
from dotnet-client.
@login4amit - i'm no expert but i'm almost positive you can't switch from one to another. I've actually never tried your con ops (concept of operations). I would assume if you use the iOS driver one from the beginning, it should work though. Try it out and let me know - i'm curious too since i've only used it with apps.
from dotnet-client.
i'm no expert but i'm almost positive you can't switch from one to another.
I've never tried this.
But I can advice this...
driver.Context = "NATIVE_APP";
I'am really not sure that it works...
@Astro03 What do you think about the enhancement on the server-side if client code above doesn't work with case described by @login4amit ?
from dotnet-client.
@Astro03 & @TikhomirovSergey
Sure I will take a look at it and will get back to u soon.
Thanks for the response.
from dotnet-client.
i'm having the same problem, did you find a solution?
from dotnet-client.
Hi,
do you get any solution?
from dotnet-client.
example of the code we use in our mobile framework
`public IDevice SwitchToNativeAppContext()
{
_driver.Context = "NATIVE_APP";
return this;
}
public IDevice SwitchToWebViewContext()
{
//wait until webview context load in app
var i = 0;
string context;
while (true)
{
var contextList = _driver.Contexts.ToList();
context = contextList.FirstOrDefault(c => c.Contains("WEBVIEW"));
if (context != null)
break;
if (i >= 50) //wait up to 5 seconds to load webview
throw new Exception("Could not find WEBVIEW context");
Thread.Sleep(TimeSpan.FromMilliseconds(100)); //Maybe the view hasn't loaded yet
i++;
}
_driver.Context = context;
return this;
}`
from dotnet-client.
thank you very much
I have to switch between two iOS apps
what should I define on
_driver.Context=?
from dotnet-client.
I don't think its possible. Because when you start driver you're define app package and it can't be changed during same webdriver session.
from dotnet-client.
I have the problem to get OTP
when I do Swipe to notification the appium logs:
[debug] [XCUITest] Connection to WDA timed out
[debug] [iProxy] recv failed: Operation not permitted
and C# error is:
A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL ...
The status of the exception was KeepAliveFailure, and the message was: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
I thought that there is a way to get otp from SMS app
maybe you have any idea for this?
from dotnet-client.
Related Issues (20)
- Context function not working HOT 3
- How to use explicit wait for latest appium driver nugget? HOT 1
- Appium Windows assembly is not supporting for 5.0.0 beta version HOT 4
- Chore: Replace all LaunchApp() methods on Integration tests
- [Feat]: CDP! HOT 4
- Getting NullReferenceException on Android specific methods such as IsKeyboardShown(), PressKeyCode(), HideKeyboard() etc. when wrapping my driver with ICommandExecutor HOT 8
- All Android Tests I now get a CSS Selector exception for HOT 29
- Drag and Drop Issue on C# with winapps HOT 2
- Not possible to do move to an element (Windows App) HOT 6
- OpenQA.Selenium.WebDriverException : The executeScript command returned an unexpected error. HOT 10
- I am confused about how should I use WinAppDriver on .NET in the future HOT 5
- Cant seem to tap using new code HOT 14
- [Bug]: Creating WindowsDriver with AppiumOptions throws exeption HOT 9
- [Bug]: AppiumOptions.ToDictionary() returns an empty dictionary HOT 1
- [Feat]: 5.0 release HOT 9
- [Chore]: Add XML comments for visible types or members HOT 7
- [Bug]: None of the Driver Selectors work on a macOS Desktop App HOT 4
- appium.webdriver is missing NuGet package README file HOT 2
- chore: Remove ByIosUIAutomation selector
- [Appium.WebDriver.5.0.0-rc.5]: Toggle wifi functionality not working/ "setConnectivity" "getConnectivity" not supported in .net client even though you could execute via appium inspector 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 dotnet-client.