I have followed the reference from the above discussion but nothing got at the o/p on the real device, Please help.
Code for swipe from right to left-
Dimension size=driver.manage().window().getSize();
System.out.println(size);
int startx= (int)(size.width0.70);
int endx= (int)(size.width0.30);
int starty=size.height/2;
long duration=0;
int y=0;
new TouchAction(driver).press(startx, y).waitAction(Duration.ofMillis(duration)).moveTo(endx, y).release().perform();
Iâm getting the "trueâ status in the Logs, but nothing is implementing on the real device-
logs-
[debug] [MJSONWP] Calling AppiumDriver.performTouch() with args: [[{âactionâ:âpressâ,âoptionsâ:{âxâ:503,âyâ:0}},{âactionâ:âwaitâ,âoptionsâ:{âmsâ:0}},{âactionâ:âmoveToâ,âoptionsâ:{âxâ:216,âyâ:0}},{âactionâ:âreleaseâ,âoptionsâ:{}}],â0a9677b1-78bf-407c-a744-8039daa28a61â]
[debug] [AndroidBootstrap] Sending command to android: {âcmdâ:âactionâ,âactionâ:âswipeâ,âparamsâ:{âstartXâ:503,âstartYâ:0,âendXâ:216,âendYâ:0,âstepsâ:22}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {âcmdâ:âactionâ,âactionâ:âswipeâ,âparamsâ:{âstartXâ:503,âstartYâ:0,âendXâ:216,âendYâ:0,âstepsâ:22}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: swipe
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Display bounds: [0,0][720,1184]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Display bounds: [0,0][720,1184]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Swiping from [x=503.0, y=592.0] to [x=216.0, y=592.0] with steps: 22
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.performTouch() result: true
[HTTP] <-- POST /wd/hub/session/0a9677b1-78bf-407c-a744-8039daa28a61/touch/perform 200 468 ms - 76
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {âstatusâ:0,âvalueâ:true}
[BaseDriver] Shutting down because we waited 45 seconds for a command
[debug] [AndroidDriver] Shutting down Android driver
[Appium] Closing session, cause was âNew Command Timeout of 45 seconds expired. Try customizing the timeout using the ânewCommandTimeoutâ desired capabilityâ
[Appium] Removing session 0a9677b1-78bf-407c-a744-8039daa28a61 from our master session list
[debug] [ADB] Getting connected devicesâŚ
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running âC:\Users\SJ\AppData\Local\Android\Sdk\platform-tools\adb.exeâ with args: ["-P",5037,"-s",âX606A1ZH69090204â,âshellâ,âamâ,âforce-stopâ,âcom.letsdogether.dogetherâ]
[debug] [ADB] Pressing the HOME button
[debug] [ADB] Getting connected devicesâŚ
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running âC:\Users\SJ\AppData\Local\Android\Sdk\platform-tools\adb.exeâ with args: ["-P",5037,"-s",âX606A1ZH69090204â,âshellâ,âinputâ,âkeyeventâ,3]
[debug] [AndroidBootstrap] Sending command to android: {âcmdâ:âshutdownâ}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [UiAutomator] Shutting down UiAutomator
[debug] [UiAutomator] Moving to state âstoppingâ
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {âcmdâ:âshutdownâ}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type SHUTDOWN
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {âstatusâ:0,âvalueâ:âOK, shutting downâ}
[debug] [AndroidBootstrap] [UIAUTO STDOUT] close [socket][/127.0.0.1:4724]
[debug] [UiAutomator] UiAutomator shut down normally
[debug] [UiAutomator] Moving to state âstoppedâ
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devicesâŚ
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running âC:\Users\SJ\AppData\Local\Android\Sdk\platform-tools\adb.exeâ with args: ["-P",5037,"-s",âX606A1ZH69090204â,âshellâ,âpsâ]
[ADB] No uiautomator process found to kill, continuingâŚ
[debug] [UiAutomator] Moving to state âstoppedâ
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Getting connected devicesâŚ
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running âC:\Users\SJ\AppData\Local\Android\Sdk\platform-tools\adb.exeâ with args: ["-P",5037,"-s",âX606A1ZH69090204â,âshellâ,âamâ,âforce-stopâ,âio.appium.unlockâ]
[debug] [AndroidDriver] Not cleaning generated files. Add clearSystemFiles
capability if wanted.
As we can see in the logs x value changes from 503 to 216 but nothing is happening on the real device