DEV Community

Discussion on: Emulate GeoLocation for Automated Testing with webdriverIO

Collapse
 
grk_official profile image
Guna Ravikumar 🇮🇳 • Edited

In the case of using the browser.cdp, it works fine when running the test on the local environment, but in the case of remote running, I get this error:

[chrome 98.0.4758.102 linux #0-0] browser.cdp is not a function
[chrome 98.0.4758.102 linux #0-0] TypeError: browser.cdp is not a function
[chrome 98.0.4758.102 linux #0-0] at Context. (/home/gunaravikumar/automated-qa-mp/test/specs/tires_wallet_landing_test.js:33:39).