selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Class org.openqa.selenium.interactions.touch.TouchActions doesn't return web driver

Open uNl1m opened this issue 9 years ago • 4 comments

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

uNl1m avatar May 03 '17 21:05 uNl1m

For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect.

See CONTRIBUTING.md

barancev avatar Jul 31 '17 13:07 barancev

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

uNl1m avatar Aug 09 '17 12:08 uNl1m

Please provide a concise reproducible test case and describe what results you are seeing and what results you expect.

barancev avatar Aug 11 '17 14:08 barancev

Closing the issue, there is no reporoduction scenario provided.

barancev avatar Aug 31 '17 20:08 barancev