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.

Integrate deep link into `url` command

See original GitHub issue

Using deeplinks in mobile automation can be a very useful feature as it allows to open specific views of an app with one single call rather than walking through the app over and over again. I suggest to enhance to enhance the url command to support this functionality from the wdio-mobile-utils package with the following interface:

  • before: url(path: string)
  • after: url(path: string, urlOpts: UrlCommandOptions)
    • where UrlCommandOptions = { id: string }
    • where id is the bundle or app id depending which environment the user is using
    • the original implementation comes with a timeout option for its iOS implementation, I suggest to make a good guess here and hard code this timeout to avoid to many options that only confuse users and aren’t gonna be used much anyway

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:26 (26 by maintainers)

github_iconTop GitHub Comments

2reactions
wswebcreationcommented, Sep 23, 2021

ok, tested it with the appium-boilerplate with the old implementation on sims with opening Safari, entering the address and get to the deeplink screen

[iPhone 12 iOS 14.5 #0-0] Running: iPhone 12 on iOS 14.5 executing /Users/wimselles/Sauce/Git/appium-boilerplate/apps/iOS-Simulator-NativeDemoApp-0.4.0.app.zip
[iPhone 12 iOS 14.5 #0-0] Session ID: 9dca563b-3124-480f-8779-93c3f1fd4533
[iPhone 12 iOS 14.5 #0-0]
[iPhone 12 iOS 14.5 #0-0] » /tests/specs/app.deep.link.navigation.spec.ts
[iPhone 12 iOS 14.5 #0-0] WebdriverIO and Appium, when navigating by deep link
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the webview
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the login form screen
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the forms screen
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the swipe screen
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the drag and drop screen
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the home screen
[iPhone 12 iOS 14.5 #0-0]
[iPhone 12 iOS 14.5 #0-0] 6 passing (56.6s)

Same now with the new way, meaning determine that you are a sim and open it direct from the app with the browser.url('deeplink://url') and this is the result

[iPhone 12 iOS 14.5 #0-0] Running: iPhone 12 on iOS 14.5 executing /Users/wimselles/Sauce/Git/appium-boilerplate/apps/iOS-Simulator-NativeDemoApp-0.4.0.app.zip
[iPhone 12 iOS 14.5 #0-0] Session ID: 9dca563b-3124-480f-8779-93c3f1fd4533
[iPhone 12 iOS 14.5 #0-0]
[iPhone 12 iOS 14.5 #0-0] » /tests/specs/app.deep.link.navigation.spec.ts
[iPhone 12 iOS 14.5 #0-0] WebdriverIO and Appium, when navigating by deep link
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the webview
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the login form screen
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the forms screen
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the swipe screen
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the drag and drop screen
[iPhone 12 iOS 14.5 #0-0]    ✓ should be able to open the home screen
[iPhone 12 iOS 14.5 #0-0]
[iPhone 12 iOS 14.5 #0-0] 6 passing (23.9s)

Almost half the time!!! 🎉

1reaction
wswebcreationcommented, Nov 23, 2021

Cool! Will put it on my agenda to work on it before the end of the year

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Deep Links to App Content - Android Developers
To allow users to enter your app from links, you must add intent filters for the relevant activities in your app manifest. These...
Read more >
Deep linking - React Navigation
Below, we'll go through required configurations so that the deep link integration works. Setup with Expo projects​. First, you will want to specify...
Read more >
Deep Linking in Android with Example - GeeksforGeeks
A Deep Link is a URL link that is generated, when anyone clicks on that link our app will be open with a...
Read more >
How to Integrate Deep Linking into Your App
Deep link integration is often used to share content and drive downloads from user to user via SMS, email, or social — it's...
Read more >
What is deep linking and why are deep links important? | Adjust
Deep linking does this by specifying a custom URL scheme (iOS Universal Links) or an intent URL (on Android devices) that opens your...
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