Hi @ravikr42
I have now turned this code , the action took place on Android, but the test failed.
@Test
public void SwipeLeftoRight() throws InterruptedException {
OpenMainMenu();
size = driver.manage().window().getSize();
System.out.println(size);
int star_x = (int) (size.width * 0.90);
int end_x = (int) (size.width * 0.09);
int star_y = size.height / 2;
System.out.println("star_x = " + star_x + " ,end_x = " + end_x + " , star_y = " + star_y);
//Right to left
driver.swipe(star_x, star_y, end_x, star_y,500);
}}
That error
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
Test falls after the last line of code.