POST /wd/hub/session/fe55616b-233c-64ab-6c45-d0179686ca15/touch/perform 500 16ms
debug: Appium request initiated at /wd/hub/session/fe55616b-233c-64ab-6c45-d0179686ca15/touch/perform
debug: Request received with params: {"actions":[{"action":"press","options":{"y":850,"x":540}},{"action":"wait","options":{"ms":1000}},{"action":"moveTo","options":{"y":0,"x":540}},{"action":"release","options":{}}]}
debug: Proxying command to localhost:8080
info: Making http request with opts: {"url":"http://localhost:8080/wd/hub/session/fe55616b-233c-64ab-6c45-d0179686ca15/touch/perform","method":"POST","json":{"actions":[{"action":"press","options":{"y":850,"x":540}},{"action":"wait","options":{"ms":1000}},{"action":"moveTo","options":{"y":0,"x":540}},{"action":"release","options":{}}]}}
info: [SELENDROID] replyWithServerError 500
info: [SELENDROID] /wd/hub/session/fe55616b-233c-64ab-6c45-d0179686ca15/touch/perform
debug: Proxied response received with status 500: undefined
POST /wd/hub/session/fe55616b-233c-64ab-6c45-d0179686ca15/touch/perform 500 11ms
debug: Appium request initiated at /wd/hub/session/fe55616b-233c-64ab-6c45-d0179686ca15/touch/perform
debug: Request received with params: {"actions":[{"action":"press","options":{"y":850,"x":540}},{"action":"wait","options":{"ms":1000}},{"action":"moveTo","options":{"y":0,"x":540}},{"action":"release","options":{}}]}
debug: Proxying command to localhost:8080
info: Making http request with opts: {"url":"http://localhost:8080/wd/hub/session/fe55616b-233c-64ab-6c45-d0179686ca15/touch/perform","method":"POST","json":{"actions":[{"action":"press","options":{"y":850,"x":540}},{"action":"wait","options":{"ms":1000}},{"action":"moveTo","options":{"y":0,"x":540}},{"action":"release","options":{}}]}}
info: [SELENDROID] replyWithServerError 500
info: [SELENDROID] /wd/hub/session/fe55616b-233c-64ab-6c45-d0179686ca15/touch/perform
debug: Proxied response received with status 500: undefined
--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, Double> swipeObject = new HashMap<String, Double>();
swipeObject.put("startX", 128.0);
swipeObject.put("startY", 943.0);
swipeObject.put("endX", 128.0);
swipeObject.put("endY", 255.0);
swipeObject.put("duration", 2.0);
js.executeScript("mobile: swipe", swipeObject);
worked for me in webview on appium 1.0
POST /wd/hub/session/b75de559-f4bb-e11a-39c1-a127838a536d/touch/perform 500 12ms
debug: Appium request initiated at /wd/hub/session/b75de559-f4bb-e11a-39c1-a127838a536d/touch/perform
debug: Request received with params: {"actions":[{"action":"press","options":{"y":850,"x":1079}}]}
debug: Proxying command to localhost:8080
info: Making http request with opts: {"url":"http://localhost:8080/wd/hub/session/b75de559-f4bb-e11a-39c1-a127838a536d/touch/perform","method":"POST","json":{"actions":[{"action":"press","options":{"y":850,"x":1079}}]}}
info: [SELENDROID] replyWithServerError 500
info: [SELENDROID] /wd/hub/session/b75de559-f4bb-e11a-39c1-a127838a536d/touch/perform
debug: Proxied response received with status 500: undefined
POST /wd/hub/session/b75de559-f4bb-e11a-39c1-a127838a536d/touch/perform 500 10ms
debug: Appium request initiated at /wd/hub/session/b75de559-f4bb-e11a-39c1-a127838a536d/touch/perform
debug: Request received with params: {"actions":[{"action":"press","options":{"y":850,"x":1079}}]}
debug: Proxying command to localhost:8080
I guess I can try extending the AppiumDriver and implementing the HasTouchScreen but I’m doubtful that would work.. I’ll try it later on tonight..
Cheers,
Mario
=================================================
if(browser.equalsIgnoreCase("android")){
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME,"");
capabilities.setCapability("deviceName","Android");
capabilities.setCapability("device","Android");
capabilities.setCapability("takesScreenshot","true");
capabilities.setCapability("platformVersion","4.4.2");
capabilities.setCapability("appPackage","uk.co.ee.myee");
capabilities.setCapability("appActivity","uk.co.ee.myee.Launcher");
//capabilities.setCapability("udid","320497a8f74a11c9");
capabilities.setCapability("udid","989fb005");
driver = new AppiumSwipeableDriver(new URL("http://127.0.0.1:4723/wd/hub"),capabilities);
=====================================================
public class AppiumSwipeableDriver extends AppiumDriver implements HasTouchScreen{
public RemoteTouchScreen touch;
public AppiumSwipeableDriver(URL URL, Capabilities Cap) {
super(URL, Cap);
touch = new RemoteTouchScreen(getExecuteMethod());
}
@Override
public TouchScreen getTouch() {
return touch;
}
}
=====================================================
waitForVisible(By.xpath(OR.getProperty("wblL2Menu")),20);
driver.findElement(By.xpath(OR.getProperty("wblL2Menu"))).click();
driver.swipe(100, 200, 500, 200, 1000);
====================================================
Error
org.openqa.selenium.UnsupportedCommandException: unknown command: session/cb341a3868ff6d8c5ff192589d11d8ae/touch/perform
Command duration or timeout: 110 milliseconds
Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'
System info: host: 'SouvikDutta-PC', ip: '127.0.0.1', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_45'
Session ID: a759ac2b-fe87-4f79-af96-da09be2b3228
Best Regards,
Aniket Gadre
“Programming can be fun, so can cryptography; however they should not be combined.”
--
Best Regards,
Aniket Gadre
“Programming can be fun, so can cryptography; however they should not be combined.”