java-client icon indicating copy to clipboard operation
java-client copied to clipboard

org.openqa.selenium.UnsupportedCommandException: mobile:deepLink

Open CharbelAA1 opened this issue 5 years ago • 9 comments

The problem

I'm trying to use this driver2.execute("mobile:deepLink", ImmutableMap.of("url",reset_password_link,"package",));

Environment

  • Appium version (or git revision) that exhibits the issue: 1.15.1
  • Last Appium version that did not exhibit the issue (if applicable): never worked for me before
  • Desktop OS/version used to run Appium: 10.15.5
  • Node.js version (unless using Appium.app|exe):2.18. 2
  • Npm or Yarn package manager:
  • Mobile platform/version under test: android 10
  • Real device or emulator/simulator: real device
  • Appium CLI or Appium.app|exe: appium cli

Details

after running the code I get org.openqa.selenium.UnsupportedCommandException: mobile:deepLink, I even Tried driver2.executeScript but it gave me javascript error DeepLink not defined

Code To Reproduce Issue [ Good To Have ]

            driver2.execute("mobile:deepLink", ImmutableMap.of("url",reset_password_link,"package",<apppackage>));

CharbelAA1 avatar Jul 10 '20 08:07 CharbelAA1

Please try the most recent server version and attach the server log

mykola-mokhnach avatar Jul 10 '20 09:07 mykola-mokhnach

Are you sure the log is the correct one? I don't observe any calls to deepLink there

mykola-mokhnach avatar Jul 10 '20 12:07 mykola-mokhnach

I was trying to share a txt log instead but it turns out, git does not support that format. and yes this is the log from the appium, I will run it again and share it. I can also share the logs i am getting in the terminal.

CharbelAA1 avatar Jul 10 '20 12:07 CharbelAA1

Is it possible that the problem is related to dependencies ?

CharbelAA1 avatar Jul 10 '20 12:07 CharbelAA1

Still no traces in the recent log. Are you sure you call the endpoint properly on the client side?

mykola-mokhnach avatar Jul 10 '20 12:07 mykola-mokhnach

should it be driver.execute or driver.executeScript ? I Don't think i fully understood your question

CharbelAA1 avatar Jul 10 '20 12:07 CharbelAA1

Still facing same issue. Can you explain more this : Are you sure you call the endpoint properly on the client side?

CharbelAA1 avatar Jul 28 '20 08:07 CharbelAA1

I have the same problem, the error is reported on the calling side, so appium has no log

RoyZhengHuijiang avatar Oct 27 '22 09:10 RoyZhengHuijiang