Open dipakkumar1225 opened 1 year ago
i use "driver.get(URL);" for opening a deeplink in appium 2.0
Not sure what UIA2 driver has to do with that. It simply generated adb command to execute. If this command does not work even being executed manually then the issue must be either in the app under test or Android itself.
oh android :) there i open it this way and it works with rc3
Map<String, Object> deeplink = ImmutableMap.of( "url", URL, "package", packageName ); driver.executeScript("mobile: deepLink", deeplink);
Not sure what UIA2 driver has to do with that. It simply generated adb command to execute. If this command does not work even being executed manually then the issue must be either in the app under test or Android itself.
Manually I am able to navigate properly
oh android :) there i open it this way and it works with rc3
Map<String, Object> deeplink = ImmutableMap.of( "url", URL, "package", packageName ); driver.executeScript("mobile: deepLink", deeplink);
I also using the same, but still not able to navigate.
protected void navigateToScreenUsingDeepLink_1(final String argsDeepLink, final String argsPkgName) {
HashMap<String, Object> map = new HashMap<>();
map.put("url", argsDeepLink);
map.put("package", argsPkgName);
map.put("waitForLaunch", true);
Map<String, Object> result = (Map<String, Object>) getBaseDriver().executeScript("mobile: deepLink", map);
log.info("DEEP LINK RESULT " + result);
}
Manually I am able to navigate properly
Then simply compare the actual adb command you enter manually with the one generated by the driver and find out what the difference is
Description
Not Able to navigate to deeplink, where the same code was working proper in Appium1.x I am using mobile command mobile: deepLink for deepLink navigation and below is the code
Environment
Details
Also tried below two approaches, with these also not able to navigate to the screen.
Approach - 2
### Approach - 3
Code To Reproduce Issue [ Good To Have ]
Exception Stacktraces
Link To Appium Logs
Detailed Log: https://gist.github.com/dipakkumar1225/850f4334ce61cda6a5fbc68fb8972fd6