Mobile automation : The save and close button in the add application window is not active

I’m trying to add an Internet start page in Chrome, but the save and close button does not become active, can anyone tell me why?

You need to give it a name! The name field has a red underline, showing you that, that field is required.

@phaserescu
Sorry I missed it :slight_smile:
But after I entered a name I got this error why ?

without more details I can’t say!

@phaserescu
I config this one


I pressed the play button
image
Then I pressed connect
image
And then I got the error
I run it from my work

  1. Is Appium running locally?
  2. What version of Appium are you using?
  3. What is the url you’re using?
  1. yes
  2. [Appium] Welcome to Appium v2.2.3
  3. https://www.walla.co.il/

The link for the device, not the link for the app! The link pointing to your Appium instance? Does it have /wd/hub at the end or not? If it has then it’s probably wrong for Appium 2.x because they don’t use that prefix anymore, unless you explicitly enable it.

@phaserescu
I am using this command to run the appium

@mironb in MDM you defined a device. In that device configuration you have to provide an Appium Url (see the image). Is your appium url looking like that in the image (assuming your appium is running on the same computer)?

@phaserescu

I got this error

image

This what I do

What is aoutomationName ?

I don’t know but most probably the app doesn’t have the right settings. Try to connect to the device without the app (see image, it should be possible because you’re running Appium locally).

image

If it works, then this tells you that the app has some missing or incorrectly configured settings. If it doesn’t work, then you’ll know that your device configuration is to blame.

@phaserescu

The same error with out the app

This is what display in the CMD

you didn’t install the android driver. Your instance of Appium is just a dump instance:

Run the following to install uiautomator2 (more info at Install the UiAutomator2 Driver - Appium Documentation)

appium driver install uiautomator2
Attempting to find and install driver 'uiautomator2'
✔ Installing 'uiautomator2' using NPM install spec 'appium-uiautomator2-driver'
Driver uiautomator2@2.0.5 successfully installed
- automationName: UiAutomator2
- platformNames: ["Android"]

Then you have to restart Appium and you should see something like the following:

[Appium] Available drivers:
[Appium]   - uiautomator2@2.0.5 (automationName 'UiAutomator2')

@phaserescu

I have error :frowning:

@mironb try to also give context with the error. Nobody can read in stars! Or if there is somebody, I assure you they don’t hang out on this forum.

My guess is and it is just a guess that you didn’t defined the environment variable ANDROID_HOME. Define that to point to the installed Android Sdk and try again.

@phaserescu

I have it

image

It should be in the user variables or system variables because it is in the system variables in my case

it doesn’t matter, it’s good in both places. You had at least one restart after you set the variable, right? (to make sure that the command window where you type the install command picked it up). when the command fails, you should have some more details before the error. Can you show those as well?

@phaserescu

Yes - but for safe I will make another one now
these are the details

The details of the driver install command. These are from starting the session.