hello i’m intern in a QA Team and i try to learn appium by myself, however swipe doesn’t want to work.
edit : – in native app it’s working but in chrome it doesn’t work i explain in last reply –
System.out.println("--------------------------------------------------------------"
+ "\n step 3.0 Get the size of screen. \n"
+ "--------------------------------------------------------");
size = driver.manage().window().getSize();
System.out.println("la taille de l'ecran est de : " + size + " px.\n");
System.out.println("--------------------------------------------------------------"
+ "\n step 3.1 Find swipe start and end point from screen's with and height.\n"
+ " Find startx point which is at bottom side of screen.\n"
+ "--------------------------------------------------------");
int starty = (int) (size.height * 0.80);
System.out.println("--------------------------------------------------------------"
+ "\n step 3.2 Find endx point which is at top side of screen. \n"
+ "--------------------------------------------------------");
int endy = (int) (size.width * 0.20);
System.out.println("--------------------------------------------------------------"
+ "\n step 3.3 Find horizontal point where you wants to swipe. \n"
+ " It is in middle of screen width. \n"
+ "--------------------------------------------------------");
int startx = size.height / 2;
System.out.println("- starty = " + starty + " ,endy = " + endy + " , startx = " + startx);
System.out.println("--------------------------------------------------------------"
+ "\n step 3.4 Swipe from Bottom to Top. \n"
+ "--------------------------------------------------------");
driver.swipe(startx, starty, startx, endy, 3000);
Thread.sleep(2000);
intelij said :
step 3.0 Get the size of screen.
the size of the screen is : (1536, 1952) px.
step 3.1 Find swipe start and end point from screen's with and height.
Find startx point which is at bottom side of screen.
step 3.2 Find endx point which is at top side of screen.
step 3.3 Find horizontal point where you wants to swipe.
It is in middle of screen width.
- starty = 1561 ,endy = 307 , startx = 976
step 3.4 Swipe from Bottom to Top.
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
if you have any idea of what i missed plz tell me