All Questions
111 questions
0
votes
1
answer
73
views
What is the Page Object Model syntax if you want to find by ios Class chain or IOS predicate using .net package
Here is sample of my current page object
[FindsByAndroidUIAutomator(XPath = "//android.widget.ImageView")]
[FindsByIOSUIAutomation(Accessibility = "ic_login_logo")]
private ...
0
votes
0
answers
73
views
Appium TouchAction Hold Without Duration Alternative
I currently have 2 methods to handle touch actions of hold and release
public static void HoldLongPressByCoordinates(int x, int y, int waitTime = 3)
{
Thread.Sleep(TimeSpan....
0
votes
1
answer
53
views
how to use function keys and keywords at the same time in c#
Have to press f7Q to quit from an windows application for that my below code is not working.
element.SendKeys(Keys.F7 + "Q");
-1
votes
2
answers
166
views
Appium Getting error Assembly Initialization method threw exception on azure pipelines
I am running appium tests on Azure Devops yaml pipelines
The tests are created in MS Unit Test and in C#
Tests are being run with following command
nohup appium -p 4723 & dotnet test <csproj ...
1
vote
0
answers
543
views
Unable to launch a Windows application using Appium in C#
I'm trying to automate a Windows application using Appium in C# with Visual Studio. Here's my code:
using NUnit.Framework;
using OpenQA.Selenium.Appium;
using OpenQA.Selenium.Appium.Windows;
using ...
0
votes
0
answers
65
views
What's wrong with this relative XPath?
I want to automate a SQL developer tool so I'm trying to click on the "create new connection" button create new connection using relative XPath. Why is WinAppDriver failing to click on the ...
0
votes
0
answers
181
views
SendKeys inserting �� instead of Emoji
I have a winforms application.
I installed the latest stable Appium version through NuGet.
I simply want to enter an emoji into a text field
using OpenQA.Selenium.Appium.Android;
using OpenQA.Selenium....
2
votes
2
answers
277
views
Catch ElementClickInterceptedException in Selenium with C#
I'm trying to catch a ElementClickInterceptedException in C#, but it apppears I'm doing something wrong since it doesn't go to the catch code line when I get that exception while debugging. Strange ...
0
votes
1
answer
302
views
Get text from password field
I am trying to get text from password field, as I need it to pass the test case.
Currently I am trying to do it with this
_passwordInput.SendKeys(user.Password);
Assert.Equals(_passwordInput.Text, ...
0
votes
1
answer
333
views
Drag and Drop not working using WinAppDriver C#
I have a scenario to drag a tree view item and drop it at a data item in data grid.
I have tried Action class with element and action with offset and Mouse Move/Down/Up but nothing working.
It clicks ...
1
vote
1
answer
94
views
Time where minutes are not counted in a C# assertion snippet for an appium test
I am attempting to ensure that hours are not off minutes I am not too concerned with but can't seem to break them off the code. Is there a way to allow the assertion to be 10 minutes off?
public ...
0
votes
1
answer
347
views
Having an assertion that contains one word I want it to Assert that word exists anywhere on the page with , or not
I have a Test with an Assert in it for contains Duck.Sometimes I will see Duck,Goose. The later Fails because it sees the ,Goose. I thought Contains would fix this and I thought the * wildcard would ...
0
votes
2
answers
2k
views
Appium WebDriver WinAppDriver Error - Defined in 'WebDriver', but it could not be found Error
I'm currently trying to run the following code in order to automate Windows desktop apps with WinAppDriver in C#.
Whenever I enter the following code WindowsDriver<WindowsElement> _driver;
I get ...
1
vote
1
answer
1k
views
Reference to type error when adding the DotNetSeleniumExtras package extension
I'm creating a test automation framework in C# .Net using Appium to automate IOS and Android and wanted to use Page Object Design Pattern. So I wanted to utilize the PageFactory extension.
By adding ...
3
votes
2
answers
4k
views
WinAppDriver:-Reference to type 'IFindsByTagName' claims it is defined in 'WebDriver', 'IFindsByClassName' , 'IFindsById' claims it is defined'
1- Developer mode active
2- WinApp installed properly
3- Nuget appium dependency installed
4- Microsoft visual studio 2022
using OpenQA.Selenium.Appium;
using OpenQA.Selenium.Appium.Windows;
...