Responding to client that a method is not implemented for Chrome

I’m trying to test a touch action on a site. Testing on chrome in an android emulator (Genymotion)
I have this code:

it("should get the url", function () {
        return driver
            .get('http://ori.il.capriza.com/mobile/maintest.html#devmode#yuval')
            .waitForElementById('tab-header-mc11718', 5000).then(function(el) {
                var a1 = (new wd.TouchAction(driver)).tap({el: el});
                a1.perform();
            }).sleep(20000);
    });

But in appium server logs I see:

info: --> POST /wd/hub/session/d4186900bd3895397d117d1b633fdff9/touch/perform [{“action”:“tap”,“options”:{“element”:“0.3143423041328788-1”}}]
info: [debug] Responding to client that a method is not implemented
info: <-- POST /wd/hub/session/d4186900bd3895397d117d1b633fdff9/touch/perform 501 0.552 ms - 154

Please Help!

Thanks,
Ori

Hi @Ori_Harel,

Could you try this:

((AndroidDriver)driver).tap(1,((AndroidDriver)driver).findElement(By.xpath(‘element-path’)),20);

If driver is not an AndroidDriver instance, else you can remove the cast and try.

Thanks,
Sujata

Solved!

it("should get the url", function () {
        return driver
            .get('http://ori.il.capriza.com/mobile/maintest.html#devmode#yuval')
            .waitForElementByClassName('tabs-container', 5000)
            .context('NATIVE_APP')
            .then(function(el) {
                var action = new wd.TouchAction(driver);
                action.press({el: el, x: 0, y: 0})
                    .wait(500)
                    .moveTo({x: 100, y: 0})
                    .release();
                action.perform();
            }).sleep(8000);
    });

Needed to change context just before invoking the touch action.

I am getting the same issue.
I tried changing the context to native just before the perform call it gave me an error : -

UnreachableBroswerException : Error communicating with the remote browser. It may have died. 

I assume your solution won’t work in my scenario. Can you help me. Is there any other solution? What I am doing wrong?

Please check my post