seleniumselenium-webdriverwebdriver-iowdio

Unable to click intercepted element in wdio 7


I'm using wdio 7 last couple of weeks. but still unable to resolve intercepted element.

In protractor, I'm using

            browser.actions().
            click($(".pay-modal-container i[class='webfont-date_range']")).
            sendKeys(protractor.Key.TAB).
            sendKeys(protractor.Key.TAB).
            sendKeys(protractor.Key.ENTER).
            perform();

Don't know In Wdio how it works. Please help me if anyone has an idea of it.

Note : Already used browser.execute("arguments[0].click()", locator); not doing anything if i used into script


Solution

  • browser.performActions([{ "type": "pointer", "id": "click on add button", parameters: { pointerType: 'mouse' }, actions: [ { type: 'pointerMove', x: 1, y: 1, origin: browser.findElement("css selector", locator) }, { type: 'pointerDown', button: 0 }, { type: 'pointerUp', button: 0 }, ] } ]);