question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run web test (WebdriverIO) and ios app test (Appium) within the same test

See original GitHub issue

What are you trying to achieve?

I am trying to automate test cases where I have to do some stuff in the mobile app then move to a desktop browser and do other stuff.

Things that I have tried so far

Set both Appium and WebdriverIO as helpers

  • Mobile tests works fine but when I get to the browser part, I get a Method is not implemented error for I.amOnPage('/'). Note that I already have existing browser test cases that I wish to reuse.

Set Appium only as helper and pass url config(since the Appium driver only extends Webdriver)

  • Mobile tests works, then opens a browser within the Simulator.

I have noticed that it is always using the Appium driver, thus getting the error mentioned above. Is there a way to switch drivers? if there aren’t any, what do you think is the best solution aside from rewriting the test cases themselves?

  • CodeceptJS version: 1.1.4

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:17

github_iconTop GitHub Comments

6reactions
reubenmillercommented, Mar 7, 2018

Yeah it was just a quick proof of concept so it appears that it doesn’t support page objects.

Though we were discussing this kind of feature, and it received a positive feedback but we can’t guarantee if or when just yet.

0reactions
kaushi-mrcommented, Dec 22, 2022

We are doing a POC on CodeceptJS and we have a number of scenarios which involves sandwiched test cases wherein we have to switch between Web, Mobile and API sessions in the same test case. Could you please let me know if this feature is implemented wherein I can switch between different helpers (for example: from Webdriver to Appium) in the same scenario?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run web test (WebdriverIO) and ios app test (Appium ... - GitHub
I am trying to automate test cases where I have to do some stuff in the mobile app then move to a desktop...
Read more >
Mobile e2e tests using WebdriverIO and Appium
These tests are based on a user's perspective. You put in the shoes of the final user and start the app, and tap...
Read more >
Mobile Automation Testing using WebdriverIO - YouTube
... # appium # webdriverio Get started with Mobile Automation Testing ... to find elements for both iOS & Android apps - Working...
Read more >
Running Tests - Appium
Running your test app with Appium (iOS) ... Basically, first make sure Appium is running: node . Then script your WebDriver test, sending...
Read more >
How to automate mobile and web app e2e tests in a single ...
Currently, I can start both browser and mobile app automation at the same time by adding separate configuration files for the iOS app....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found