appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.2k stars 755 forks source link

TypeError: this[mobileCommandsMapping[mobileCommand] #1945

Closed ValzRon closed 1 year ago

ValzRon commented 1 year ago

Hi,

when I try to run driver.pressKey(new KeyEvent().withKey(AndroidKey.BACK)); I get:

Executing native command 'mobile: pressKey'[debug] 
[EspressoDriver@3d68 (7c5705bf)] Encountered internal error running command: TypeError: this[mobileCommandsMapping[mobileCommand]

The issue is not present in 8.3.0. Should be easy to reproduce.

Environment:

mykola-mokhnach commented 1 year ago

Try espresso driver 2.23.3+

ValzRon commented 1 year ago

that works, thanx

ValzRon commented 1 year ago

Hello, im facing the same issue again with the command "mobile: backgroundApp". Should this be reported here or in the espresso driver repo?

ValzRon commented 1 year ago

Opened issue #888