aerokube / images

Browser images for Selenoid and Moon 1.x
https://aerokube.com/images/latest/
Apache License 2.0
168 stars 127 forks source link

Android: The desired capabilities must include either an app, appPackage or browserName #185

Open mikk150 opened 5 years ago

mikk150 commented 5 years ago

How to tell to Appium that I require Chrome browser?

vania-pooh commented 5 years ago

@mikk150 just use browserName = chrome.

mikk150 commented 5 years ago

but I have to use browserName = android in order for it to give me android

vania-pooh commented 5 years ago

@mikk150 then use deviceName = android.

mikk150 commented 5 years ago

@mikk150 then use deviceName = android.

@vania-pooh and then we are at square one

mikk150 commented 5 years ago

do I have to say in browsers.json that chrome image is android?

this part is really badly documented...

I want to test Chrome browser on Android

vania-pooh commented 5 years ago

@mikk150 you don't have to use deviceName = android in case of Chrome Mobile. Should have the following capabilities:

browserName = chrome
version = mobile-75.0

And you should have the same browser name and version in browsers.json.

czenczakm commented 4 years ago

I have the same issue. I'm trying to run tests in selenoid/android:8.1 so in browsers.json I added:

"android": {
  "default": "8.1",
  "versions": {
    "8.1": {
      "image": "selenoid/android:8.1",
      "port": "4444",
      "tmpfs": {"/tmp":"size=512m"}
    }
  }
}

and trying to start it by setting capabilities:

desiredCapabilities.setBrowserName("android");
desiredCapabilities.setVersion("8.1");

in selenoid/android:8.1 container I got error:

[AndroidDriver] Error: The desired capabilities must include either an app, appPackage or browserName
aandryashin commented 4 years ago

Try to change android to chrome and version to mobile-77.0 in browsers.json, image should remain the same...

ср, 23 окт. 2019 г., 11:38 czenczakm notifications@github.com:

I have the same issue. I'm trying to run tests in selenoid/android:8.1 so in browsers.json I added:

"android": { "default": "8.1", "versions": { "8.1": { "image": "selenoid/android:8.1", "port": "4444", "tmpfs": {"/tmp":"size=512m"} } } }

and trying to start it by setting capabilities:

desiredCapabilities.setBrowserName("android"); desiredCapabilities.setVersion("8.1");

in selenoid/android:8.1 container I got error:

[AndroidDriver] Error: The desired capabilities must include either an app, appPackage or browserName

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid-images/issues/185?email_source=notifications&email_token=AAKY23I6VHRDM67JWSYFKVDQQAERZA5CNFSM4I2ESC2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECASP4Y#issuecomment-545335283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23MUEAARSIMZBZ6UKCTQQAERZANCNFSM4I2ESC2A .

vania-pooh commented 4 years ago

@czenczakm These images are used for testing mobile applications in Android emulator and logically you have to specify which application to test. This is done via app capability. E.g. https://github.com/aerokube/demo-tests/blob/master/src/test/java/com/aerokube/selenoid/AndroidRemoteApkTest.java To work with Chrome Mobile use selenoid/chrome:mobile-77.0 image.

mikk150 commented 4 years ago

selenoid/chrome:mobile-77.0

Please, try to download selenoid/chrome:mobile-77.0 image, you will see that it fails miserably because those images do not exist

vania-pooh commented 4 years ago

@mikk150 did not build yet. Older versions exist.

mikk150 commented 4 years ago

@mikk150 did not build yet. Older versions exist.

https://hub.docker.com/r/selenoid/chrome/tags?page=1&name=mobile

I see no tags here... if I am not mistaken they should be here

vania-pooh commented 4 years ago

@mikk150 https://hub.docker.com/r/selenoid/chrome-mobile/tags However browserName should be chrome.

DimqBBSQO commented 1 year ago

@vania-pooh

А есть возможность добавить chrome к образу selenoid/android? чтобы при тестировании из ссылки внутри приложения можно было перейти в гугл хром, а не в стандартный браузер?

vania-pooh commented 1 year ago

@DimqBBSQO selenoid/android это по определению образ без Хрома. Вы всегда можете собрать себе такой образ самостоятельно, используя наши скрипты.