appium-desktop icon indicating copy to clipboard operation
appium-desktop copied to clipboard

Can't switch to webview in inspector: Can't parse goog:chromeOptions: Unrecognized chrome option: androidDeviceSerial

Open kgtrey1 opened this issue 4 years ago • 7 comments

Appium or Appium Desktop?

You are reporting an issue at the Appium Desktop repository. Appium Desktop is a wrapper around Appium. If you are having trouble running tests, it is much more likely that the problem you are encountering is not a problem with Appium Desktop but with Appium. For that reason we require you to have tried your testcase with Appium CLI before reporting issues. Check the checkbox below to confirm that you have proven your issue does not reproduce on Appium itself:

  • [X] I have verified that my issue does not occur with Appium and should be investigated as an Appium Desktop issue

The problem

I'm currently testing an hybrid application. I'm facing a problem where, when I scroll down too much, I can't use inspector to inspect elements (WebDriverIO doesn't find them either).

What i'm trying to do right now is to get all context inside the inspector and I get: NATIVE_APP, WEBVIEW_my_app.

Then, I try to set the context to the WebView context and I get this error:

InvalidArgumentError: invalid argument: cannot parse capability: goog:chromeOptions from invalid argument: unrecognized chrome option: androidDeviceSerial

I'm launching inspector session with capabilities androidPlatform & chromedriverExecutable.

Any idea on why i can't switch to the webview on Appium Inspector?

Environment

  • I am running Appium Desktop version 1.18.3. (with option: --no-sandbox)
  • I am on (pick one):
    • [ ] Mac
    • [ ] Windows
    • [X] Linux (Debian Buster)
  • I am using chromedriver 87.0.4280.20

kgtrey1 avatar Nov 02 '20 08:11 kgtrey1

Could you share the log? I wonder the message was from chromedriver.

KazuCocoa avatar Nov 07 '20 08:11 KazuCocoa

Similiar issue! The desiredCapabilities object was not valid for the following reason(s): 'chromeOptions' must be of type object

Could you share the log? I wonder the message was from chromedriver.

Gunkkk avatar Dec 19 '20 07:12 Gunkkk

Were you able to sort it out @kgtrey1? Cheers

nunosilvaaa avatar Nov 18 '21 10:11 nunosilvaaa

I am facing a similar issue: Any help?

An unknown server-side error occurred while processing the command. Original error: invalid argument: cannot parse capability: goog:chromeOptions
from invalid argument: unrecognized chrome option: androidDeviceSerial

SyedFurqanHaider avatar Dec 06 '21 12:12 SyedFurqanHaider

@SyedFurqanHaider did you resolve that? any help please

Muratoi avatar Mar 01 '22 09:03 Muratoi

I'm facing the same issues, any news here?

bokas5 avatar May 13 '22 07:05 bokas5

Same issue. Have tried updating chrome on emulator to same as my desktop, have matching emulator. It throws same exception message

An unknown server-side error occurred while processing the command. Original error: invalid argument: cannot parse capability: goog:chromeOptions from invalid argument: unrecognized chrome option: androidDeviceSerial

jarMegger avatar May 26 '22 07:05 jarMegger

I'm having the same issue: An unknown server-side error occurred while processing the command. Original error: invalid argument: cannot parse capability: goog:chromeOptions from invalid argument: unrecognized chrome option: androidDeviceSerial

leandroolivpint avatar Nov 01 '22 12:11 leandroolivpint