appium-dotnet-driver | Extension to the official Selenium dotnet | Functional Testing library
kandi X-RAY | appium-dotnet-driver Summary
kandi X-RAY | appium-dotnet-driver Summary
This driver is an extension of the Selenium C# client. It has all the functionalities of the regular driver, but add Appium specific methods on top of this.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of appium-dotnet-driver
appium-dotnet-driver Key Features
appium-dotnet-driver Examples and Code Snippets
Community Discussions
Trending Discussions on appium-dotnet-driver
QUESTION
I'm new to Appium and testing as a whole. I used Android driver to test an app in android.
I can handle all clicks and typing in the app. But the issue arises while using the OAuth service to log in the app.
I use the following Driver client. appium dotnet driver
The login service opens in a separate chrome browser. I have to type text in an input element inside the web page.
I use the following code. On debugging page resource only has the android elements of the chrome browser and nothing of the web content.
...ANSWER
Answered 2020-Sep-24 at 05:28The issue was not changing to web context for searching in web page. The test flow had to be
- Perform action to open the web page from the app. (In my case clicking login button)
- Wait till the web page appears. (This is important as the web context will be available only after the web page appears) For this, I used a
FindElementByClassName
for a unique control visible in the web page but not on the previous App page. There sure can be a better way. - Get available contexts and switch to web context.
- I used
FindByCssSelector
for finding the element with id.
Changing to web context
QUESTION
I've been tasked to find out how to implement UI automation for desktop apps with appium-dotnet-driver. I've successfully managed to use the windows calculator app for UI unit testing.
That being said, having a lot of trouble with my company's winforms app because some elements either don't have an AutomationId or it changes every time something is clicked on the program.
Is there an easy way to define the AutomationId for a control type (i.e. Button)?
...ANSWER
Answered 2019-May-09 at 12:23Solved by setting the Name property of relevant controls. AutomationId is automatically inferred from Name
or Text
properties. Hope it helps someone.
QUESTION
My project stopped working. I have the newest version of all nugets and appium server. Where is a problem? I receive error like this:
Message:
...OneTimeSetUp: System.TypeLoadException : Method 'Dispose' in type 'OpenQA.Selenium.Appium.Service.AppiumCommandExecutor' from assembly 'appium-dotnet-driver, Version=3.0.0.2, Culture=neutral, PublicKeyToken=null' does not have an implementation.**
ANSWER
Answered 2019-Feb-19 at 12:41yes, the above problem is resolved after downgrading selenium Nuget package to 3.11.2
QUESTION
I'm trying to just run the calculator test C# example (https://github.com/Microsoft/WinAppDriver/tree/master/Samples/C%23/CalculatorTest) inside visual studio 2017. When I download and build the example, it shows several lines as deprecated;
...ANSWER
Answered 2019-Feb-01 at 11:07Dude, I didn't have any luck at all with those examples but what I have managed to do is launch an application from it's filepath and test that. I also had to figure out that you must set "Developer Mode" to On (nobody tells you that!) and a few other things. Here are my notes that I made for myself and other developers...
Installing and Running Windows Application Driver
1.Download Windows Application Driver installer from https://github.com/Microsoft/WinAppDriver/releases
2.Run the installer on a Windows 10 machine where your application under test is installed and will be tested
3.Set Developer Mode to On (Start -> type "Use Developer Features"), open that and set Developer Mode On...
4.Run WinAppDriver.exe from the installation directory (E.g. C:\Program Files (x86)\Windows Application Driver)
Install Win App Driver Recorder, then launch it. Click the little yellow rectangle icon at the top of it.
https://github.com/Microsoft/WinAppDriver/releases
Using the above, the examples begin to make more sense but as I said, I have only tested apps where I can launch the executable from it's filepath...
QUESTION
I'm using appium-dotnet-driver v4.0.0.4 beta of the appium nuget package (but I have downgraded to the previous versions too and I'm getting the same issue)
So I've never used it before, therefore not entirely sure how it should work. Currently I'm doing this:
...ANSWER
Answered 2019-Jan-21 at 16:46I found out I had to be at the latest version on Selenium on both test framework and test solution.
Simple answer to a mind boggling question.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install appium-dotnet-driver
Setup the Api Key (see here).
alias NuGet='mono <Nuget Path>/NuGet.exe'
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page