I am trying to start chrome on Android using wdio and Appium, but it does not start Chrome, and wondering hy the reason. I need help.
This is the error I’m getting
> [0-9] 2023-11-16T16:29:49.711Z INFO webdriver: DATA {
appPackage: 'com.android.chrome', appActivity: 'com.google.android.apps.chrome.Main' } [0-9] 2023-11-16T16:29:49.714Z DEBUG webdriver: request failed due to response error: invalid session id [0-9] 2023-11-16T16:29:49.714Z ERROR webdriver: Request failed with status 404 due to invalid session id: A session is either terminated or not started [0-9] Error in "On-boarding - negative and edge cases: Magic link expire: And I click on magic link to login to my account" invalid session id: A session is either terminated or not started at processTicksAndRejections (internal/process/task_queues.js:89:5) at World.<anonymous> (
THis is the code written to start it.
> driver.startActivity(‘com.android.chrome’, ‘com.google.android.apps.chrome.Main’);
driver.pause(DEFAULT_PAUSE_TIME_2000_MILLISECOND); driver.setOrientation('portrait'); webView.waitForWebsiteLoaded(helper.magicLink); driver.pause(DEFAULT_PAUSE_TIME_2000_MILLISECOND);