lundi 16 septembre 2019

Swipe on Kobiton device using selenium

I am trying to swipe left to right on my mobile automation testing.

I am using a selenium framework to open the mobile devices on Kobiton but cant seem to find a way to swipe the screen.

I have tried using

JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("('element').trigger('swipe', {startX: 0.95})");

which I found from another ticket but it doesnt work, is there a way to swipe an element in selenium or is there some other way to swipe.

If more information is needed im happy to oblige

Aucun commentaire:

Enregistrer un commentaire