Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use gestures on android browser, java-client:2.1.0 #157

Closed
mparimi06 opened this issue Feb 18, 2015 · 1 comment
Closed

Unable to use gestures on android browser, java-client:2.1.0 #157

mparimi06 opened this issue Feb 18, 2015 · 1 comment

Comments

@mparimi06
Copy link

i have tried to using below 2 methods but i get error:
org.openqa.selenium.WebDriverException: Not yet implemented. Please help us: http://appium.io/get-involved.html (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 11 milliseconds

MobileElement e = (MobileElement) driver.findElement(By.cssSelector(".image-wrap img"))
e.tap(1, 1000)
e.zoom()
e.swipe(SwipeElementDirection.LEFT,1000)

JavascriptExecutor js = (JavascriptExecutor) driver
HashMap<String, Double> swipeObject = new HashMap<String, Double>()
swipeObject.put("startX", 0.95)
swipeObject.put("startY", 0.5)
swipeObject.put("endX", 0.05)
swipeObject.put("endY", 0.5)
swipeObject.put("duration", 1.8)
js.executeScript("mobile: swipe", swipeObject)

@mparimi06 mparimi06 changed the title Unable to use gestures on android website, java-client:2.1.0 Unable to use gestures on android browser, java-client:2.1.0 Feb 18, 2015
@Jonahss
Copy link
Member

Jonahss commented Feb 18, 2015

You shouldn't be finding elements by CSSSelector, that shouldn't work on appium (unless, are you inside of a webview, or a browser?)

There might currently be issues with TouchActions on webviews in android. I think this is related: appium/appium#4075

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants