WebDriver simulate touch events in Desktop Browser

前端 未结 2 1595
耶瑟儿~
耶瑟儿~ 2021-01-14 19:36

I\'m trying to simulate some touch events like swap, tap in web-based application using Chrome and Firefox browsers. I\'ve tried to simulate touch events with Actions, Hummb

2条回答
  •  离开以前
    2021-01-14 19:54

    With jQueryMobile it is quite simple, I execute some Javascript which trigger the corresponding touch events from jQueryMobile.

    ((JavascriptExecutor)driver).executeScript("window.jQuery('#myId').trigger('swiperight')");
    

    Maybe that helps.

提交回复
热议问题