We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Добавляем в docker-compose.yaml
docker-compose.yaml
version: '3.4' services: selenoid: image: aerokube/selenoid:latest-release volumes: - "${PWD}/init/selenoid:/etc/selenoid" - "${PWD}/work/selenoid/video:/opt/selenoid/video" - "${PWD}/work/selenoid/logs:/opt/selenoid/logs" - "/var/run/docker.sock:/var/run/docker.sock" environment: - OVERRIDE_VIDEO_OUTPUT_DIR=work/selenoid/video command: ["-conf", "/etc/selenoid/browsers.json", "-video-output-dir", "/opt/selenoid/video", "-log-output-dir", "/opt/selenoid/logs"] ports: - "4444:4444" network_mode: bridge
Создаем конфиг браузеров init/selenoid/browsers.json
init/selenoid/browsers.json
{ "chrome": { "default": "75.0", "versions": { "75.0": { "env" : ["LANG=ru_RU.UTF-8", "LANGUAGE=ru:en", "LC_ALL=ru_RU.UTF-8", "TZ=Europe/Moscow"], "image": "selenoid/vnc:chrome_75.0", "tmpfs": {"/tmp": "size=512m"}, "hosts": ["x01.aidata.io:127.0.0.1"], "port": "4444" }, "76.0": { "env": ["LANG=ru_RU.UTF-8", "LANGUAGE=ru:en", "LC_ALL=ru_RU.UTF-8", "TZ=Europe/Moscow"], "image": "selenoid/vnc:chrome_76.0", "tmpfs": {"/tmp": "size=512m"}, "hosts": ["x01.aidata.io:127.0.0.1"], "port": "4444" } } } }
Заменяем на remote webdriver:
@BeforeEach public void initDriver() throws IOException { final String url = "http://192.168.90.245:4444/wd/hub"; WebDriver driver = new RemoteWebDriver(new URL(url), DesiredCapabilities.chrome()); driver.manage().window().setSize(new Dimension(1920,1024)); WebDriverRunner.setWebDriver(driver); } @AfterEach public void stopDriver() { Optional.ofNullable(WebDriverRunner.getWebDriver()).ifPresent(WebDriver::quit); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Добавляем в
docker-compose.yaml
Создаем конфиг браузеров
init/selenoid/browsers.json
Заменяем на remote webdriver:
The text was updated successfully, but these errors were encountered: