Questions tagged [appium-java]
117 questions
3
votes
0 answers
Getting Error: Cannot find module 'node:util' when executing the commnd "appium"
C:\Users\win>appium
Error: Cannot find module 'node:util'
Require…

Shreyansh Jain
- 498
- 4
- 7
2
votes
2 answers
Cannot invoke "org.openqa.selenium.os.CommandLine.isRunning()" because "this.process" is null
When I am executing the script then it is giving me an error as : Cannot invoke "org.openqa.selenium.os.CommandLine.isRunning()" because "this.process" is null
[RemoteTestNG] detected TestNG version 7.4.0
SLF4J: No SLF4J providers were found.
SLF4J:…

TheDhanraj
- 21
- 4
2
votes
0 answers
Appium AndroidUIAutomator2 scroll is very slowly
When I scroll with the code below, it scrolls very slowly, how can I speed it up?
public WebElement scrollToElement() {
return getDriver().findElement(AppiumBy.androidUIAutomator(
"new UiScrollable(new…

Onurcan
- 31
- 2
2
votes
0 answers
1
vote
1 answer
How can I perform a quick double tap using TouchAction in Appium?
I am automating my mobile keyboard, and it requires a quick double-tap on the shift key to lock the capital letters. However, when I try to double-tap the shift key, I am unable to lock the capital letters.
This is my Java-code.
TouchAction…

Mohammed Irfan
- 11
- 4
1
vote
1 answer
"sharp" module issue while launching Appium v2.0.0-rc.3 from mac terminal
I have been facing same issue due to 'sharp' module when I try to launch appium server from mac terminal.
Software Versions:
Mac 13.4 (22F66)
Processor 1.4 GHz Quad-Core Intel Core i5
Appium v2.0.0-rc.3
Java 11
Node 20.3.0
NPM…

Manish Arya
- 31
- 4
1
vote
1 answer
appium 7.4.1 is not supporting for qaf version 3.1.0 and selenium 4.2.2
We are trying to update qaf and selenium and appium from old versions, we tried to change selenium from 3.141.59 to 4.2.2 , and qmetry 3.0.1 to 3.1.0 and appium 7.4.1 is not supporting for this version .
With this updated version of qaf and selenium…

ashwini r
- 21
- 2
1
vote
1 answer
It doesn't always scroll to the same place, Appium Android
I am using the following method while scrolling android. but It doesn't always scroll to the same place, even though it's on the same page. what would be the reason.
public void ScrollToCampaignNotice(){
try {
…

Onurcan
- 31
- 2
1
vote
1 answer
How to display all elements not just the visible elements with java
I want to get all names from settings…
user20468552
1
vote
1 answer
I cannot Select an Element with the AndroidFindBy
I am fairly new to Appium and i am currently working on UI testing of an application. I want to click an element but it is not visible until you scroll down the page.
I have tried using the command below but it does not work for…

Taiwo Olori
- 13
- 2
1
vote
0 answers
Getting " Failed to create session. Request timed out" in Appium Inspector for iOS testing
I tried inspecting my iOS app on appium inspector, my WebDriver agent is also building successfully on xcode .
My Xcode version is 13.4.1
iOS =15.5
device = iPhone 13 Pro
Java Code:
XCUITestOptions options = new…

Azpect
- 43
- 6
1
vote
0 answers
Unable to initialize the Alt unity Driver using Appium
Failed to connect to AltUnity Tester on host: 127.0.0.1 port: 13000.
private void connectunity() {
AltUnityPortForwarding.forwardAndroid();
try {
altdriver = new AltUnityDriver();
}catch (Exception e) {
// TODO: handle exception
…

Srujan
- 11
- 1
1
vote
0 answers
Socket Hang up issue
Below are the logs:
[debug] [35m[W3C][39m Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error:…

Aarif
- 11
- 1
1
vote
0 answers
Appium : xPath without text not identifying the object
Issue description: Using xpath with text description works fine, but using xpath having id is not working.
[Sensitive parts being masked in picture and code]
I'm trying to perform a mock project on a mobile app with latest appium version.
Having…

Ramkumar
- 116
- 1
- 11
1
vote
1 answer
AndroidDriver cant be initialized after mvn clean
As usually, before running mvn test i executed mvn clean, but this time a lot of things started downloading, once it finished i ran the code and got this error:
class org.openqa.selenium.Platform$22 cannot be cast to class java.lang.String…

André Kuljis
- 90
- 1
- 9