o.k … I found a code that someone wrote that helps me
public void scroll() {
Dimension dimensions = driver.manage().window().getSize();
int Startpoint = (int) (dimensions.getHeight() * 0.5);
int scrollEnd = (int) (dimensions.getHeight() * 0.2);
driver.swipe(200, Startpoint,200,scrollEnd,2000);
}
And the call to the function
while(!telemessage.general.uiObject.elementByTextContains(element).exist()){
scroll();
Thread.sleep(500); // wait 1 sec
}
I do not go straight to the element but drop every few pixels until it reaches my element (with a loop) it works great!
I do not remember which site I found this but it’s not my code
Thank you all !!