Class org.openqa.selenium.interactions.touch.TouchActions doesn't return web driver
public TouchActions(WebDriver driver) {
this(((HasInputDevices) driver).getKeyboard(),
((HasTouchScreen) driver).getTouch());
}
@Deprecated
public Actions(Keyboard keyboard) {
this.driver = null;
this.jsonKeyboard = keyboard;
this.jsonMouse = null;
}
I have got error
java.lang.NullPointerException
at org.openqa.selenium.interactions.Actions$BuiltAction.perform(Actions.java:631)
at org.openqa.selenium.interactions.Actions.perform(Actions.java:593)
at ,
because TouchAction receive me driver=null
use selenium 3.4.0
For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect.
See CONTRIBUTING.md
Method
public static void openNotificationPanel(SelenideElement statusBar){
new TouchActions(driver)
.flick(statusBar,0,+600,500)
.perform();
}
test failed at .perform
actual result: Error is displayed expected result: The touch action is open Notification Panel
Please provide a concise reproducible test case and describe what results you are seeing and what results you expect.
Closing the issue, there is no reporoduction scenario provided.