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

Editing capabilities (raw JSON) does not work completely

Open worikgh opened this issue 3 years ago • 16 comments

Appium Desktop

App Version: 1.21.0 Electron: 7.2.4 Node.js: 12.8.1

The problem

A saved capability set cannot be modified

I have a saved capability set with the "app" value incorrectly set. I use the "Edit Raw JSON" button to correct it.

Then I click the "save" button.

I have two sets of capabilities. So I click on the other set. Then when I click back on the set I edited, the edit has been reverted

Environment

App Version: 1.21.0 Electron: 7.2.4 Node.js: 12.8.1 Mac OS Big Sur 11.3.1

worikgh avatar Jun 16 '21 22:06 worikgh

Please verify this issue still exists with the new Inspector - https://github.com/appium/appium-inspector/releases

jlipps avatar Jun 17 '21 22:06 jlipps

I am not sure what that is.

worikgh avatar Jun 21 '21 04:06 worikgh

This is the new Appium Inspector. Moving forward the Appium Desktop Server and Inspector will be two apps. No development is happening on the Inspector in this repo anymore, which is why I have asked you to try the new version.

jlipps avatar Jun 22 '21 23:06 jlipps

Ok. I will see if I can make that work.

Appreciate your efforts.

worikgh avatar Jun 24 '21 01:06 worikgh

You do not have permission to open the application “Appium Inspector”. Contact your computer or network administrator for assistance.

I am my computer administrator.

Not a very good one obviously!!

worikgh avatar Jun 24 '21 01:06 worikgh

which OS are you running?

jlipps avatar Jun 24 '21 02:06 jlipps

Big Sur 11.3.1 (20E241)

I should know how to over come this... But I do not!

worikgh avatar Jun 24 '21 02:06 worikgh

@worikgh

This is a security setting. There might be two ways to solve this

  1. Go to System Preferences > Security & Privacy. You might see a warning there. If you see something like "Appium Inspector was blocked...." then click on Open Anyway and it should open.
  2. If option 1 doesn't help then try this
    • open a terminal
    • run the following command: xattr -rd com.apple.quarantine /Applications/Appium\ Inspector.app/

Once done, this should let you open Inspector without any further issues.

wswebcreation avatar Jun 24 '21 07:06 wswebcreation

Yes, I always just run the command

xattr -cr /path/to/downloaded/dmg/or/zip

Unfortunately we don't have the dev resources to get apps signed correctly or whatever the process is required at the moment. But you can always remove the security quarantine using the above command and/or following @wswebcreation's advice.

jlipps avatar Jun 24 '21 15:06 jlipps

Unfortunately we don't have the dev resources to get apps signed correctly or whatever the process is required at the moment There is a special place in Hell reserved for the Apple execs who have made Apple development so hard...

worikgh avatar Jun 24 '21 22:06 worikgh

I installed: https://github.com/appium/appium-desktop/releases/download/v1.21.0/Appium-mac-1.21.0.dmg Installed it into the Applications directory (The Mac did it for me) Ran: /Applications % xattr -cr Appium\ 2.app and bingo. I could start it from the finder.

App Version: 1.21.0
Electron: 7.2.4
Node.js: 12.8.1

This is not the new version.... Duh!

worikgh avatar Jun 27 '21 21:06 worikgh

One more thing to try: can you download the zip instead of the dmg, and run the xattr command on the zipfile itself before decompressing?

jlipps avatar Jul 03 '21 00:07 jlipps

https://github.com/appium/appium-desktop/releases/download/v1.21.0/Appium-1.21.0-mac.zip?

worikgh avatar Jul 04 '21 02:07 worikgh

I have been trying to install V 1.21

Now I got https://github.com/appium/appium-inspector/releases/download/v2021.5.1-beta.5/Appium-Inspector-mac-2021.5.1-beta.5.dmg xattr -cr on it in downloads Open with the default app (DiskImageMountre) Get a weird window with a picture of the Appium icon, a picture of the "Applications" folder and a big arrow.
Right clicking on Appium icon, selecting opne bought up a error dialogue about Apple being unable to verify or similar nonsense. It gave me the option of open, so I took it Looking at Application window now.

I will make any issues about this. Not ideal that installing it is such drama, but Apple.

Looking good

worikgh avatar Jul 04 '21 21:07 worikgh

Update: I am running:

App Version: 2021.5.1-beta.5
Electron: 7.3.3
Node.js: 12.8.1

And I am still having this problem. Changes I make to the Capability Set do not get saved

worikgh avatar Jul 12 '21 21:07 worikgh

I'm having a little trouble following the error description. Are you able to record a screen video and attach it?

jlipps avatar Jul 12 '21 21:07 jlipps