Size: a a a

Aerokube Support

2021 January 01

SW

Stanford Wong in Aerokube Support
I saw Ivan recommended setting -container-network flag?  What argument do I need to pass to -container-network?  By default, cm seems to use "-container-network selenoid".  This seems like an issue only for running on Windows/WSL?
источник

IK

Ivan Krutov in Aerokube Support
Stanford Wong
I saw Ivan recommended setting -container-network flag?  What argument do I need to pass to -container-network?  By default, cm seems to use "-container-network selenoid".  This seems like an issue only for running on Windows/WSL?
need to pass name of the network where Selenoid is running itself
источник

DS

Donovan Shook in Aerokube Support
Hello. I'm trying to download a file and then upload the same file for one of my tests. When I download the file, I can see that it's been downloaded on the container at /home/selenium/Downloads. However, when I try to upload the file, I get an error that the file does not exist.

I've set the default directory to /home/selenium/Downloads on chrome.

This works fine using Zalenium, but I can't seem to get it working on Selenoid. Selenoid's performance is significantly better than Zalenium, so I'd really like to get this working so I can move our entire testing suite over to Selenoid.

I've read the documentation on how to download a file, but this seems to be giving me problems.

Any advice you could offer would be greatly appreciated. Thanks in advance.
источник

IK

Ivan Krutov in Aerokube Support
Donovan Shook
Hello. I'm trying to download a file and then upload the same file for one of my tests. When I download the file, I can see that it's been downloaded on the container at /home/selenium/Downloads. However, when I try to upload the file, I get an error that the file does not exist.

I've set the default directory to /home/selenium/Downloads on chrome.

This works fine using Zalenium, but I can't seem to get it working on Selenoid. Selenoid's performance is significantly better than Zalenium, so I'd really like to get this working so I can move our entire testing suite over to Selenoid.

I've read the documentation on how to download a file, but this seems to be giving me problems.

Any advice you could offer would be greatly appreciated. Thanks in advance.
could you show an example code snippet? In case if you need to immediately upload a file that was downloaded with the same browser before, I would simply set value of respective file input field to /home/selenium/Downloads/<file-name> and then submit the form.
источник

DS

Donovan Shook in Aerokube Support
Ivan Krutov
could you show an example code snippet? In case if you need to immediately upload a file that was downloaded with the same browser before, I would simply set value of respective file input field to /home/selenium/Downloads/<file-name> and then submit the form.
Thanks for the quick response! That's what I'm currently trying, but it's entirely possible that I'm missing something. I'm not near my computer right now, but I'll be able to upload an example later. Thanks again
источник
2021 January 02

SJ

Sarah Jones in Aerokube Support
Hi I'm relatively new at programming so I apologize if this is a noob question
источник

SJ

Sarah Jones in Aerokube Support
I am trying to set up selenoid for android over docker
источник

SJ

Sarah Jones in Aerokube Support
I am using Ubuntu and i'm encountering an issue where it fails during

driver = webdriver.Remote("http://localhost:4444/wd/hub", desired_caps)
источник

SJ

Sarah Jones in Aerokube Support
I've tried swapping localhost to my selenoid docker ip but that also failed
источник

SJ

Sarah Jones in Aerokube Support
selenium.common.exceptions.WebDriverException: Message: Requested environment is not available
источник

SJ

Sarah Jones in Aerokube Support
I've been looking through the documentation online, and it looks like both bridge and container-network options might be helpful for my situation
источник

SJ

Sarah Jones in Aerokube Support
I'm currently using
sudo ./cm selenoid start --vnc --browsers "android:10.0" --args "-session-attempt-timeout 4m -service-startup-timeout 4m"
источник

SJ

Sarah Jones in Aerokube Support
and I have KVM enabled on my Linux machine
источник

SJ

Sarah Jones in Aerokube Support
I've tried both docker-compose and ./cm and both are giving me error
источник

SJ

Sarah Jones in Aerokube Support
kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
источник

SJ

Sarah Jones in Aerokube Support
so I'm pretty sure the virtualization is settled
источник

RO

Roman Orlov in Aerokube Support
Hello, try to curl http://localhost:4444/status  and ensure that you have android browser there. Then check capabilities 'browserName' and 'browserVersion' in your test. It should match with those in /status output.
источник

SJ

Sarah Jones in Aerokube Support
It says You are using Selenoid 1.10.0!
источник

SJ

Sarah Jones in Aerokube Support
version: '3'
services:
 selenoid:
   network_mode: bridge
   image: aerokube/selenoid:latest-release
   volumes:
     - "/home/temp/Appium/appium-compose:/etc/selenoid"
     - "/var/run/docker.sock:/var/run/docker.sock"
     - "/home/temp/Appium/appium-compose/video:/opt/selenoid/video"
     - "/home/temp/Appium/appium-compose/logs:/opt/selenoid/logs"
   environment:
     - OVERRIDE_VIDEO_OUTPUT_DIR=/home/temp/Appium/appium-compose/video
   command: ["-conf", "/etc/selenoid/browsers.json", "-video-output-dir", "/opt/selenoid/video", "-log-output-dir", "/opt/selenoid/logs", "-service-startup-timeout", "2m", "-session-attempt-timeout", "2m"]
   ports:
     - "4444:4444"
источник

SJ

Sarah Jones in Aerokube Support
is my docker-compose file
источник