Size: a a a

Aerokube Support

2021 July 13

HB

Hemanth B in Aerokube Support
I am using ggr and started the server. I am not using any video storing. So it is returning this error
источник

HB

Hemanth B in Aerokube Support
Does anyone know safari docker has gnc inbuilt with WebKit?
источник

IK

Ivan Krutov in Aerokube Support
yes, browsers/safari image is built from original WebKit source code
источник

HB

Hemanth B in Aerokube Support
Does it has vnc support?
источник

IK

Ivan Krutov in Aerokube Support
yes
источник

ST

Sudeep Talele in Aerokube Support
@vaniaPooh  is that tls issue resolved in safari images?
источник

IK

Ivan Krutov in Aerokube Support
Not yet
источник

ДП

Діма Потапов... in Aerokube Support
Добрый день, есть вопрос по селениум 4
есть капабили старого формата
{
 "desiredCapabilities": {
   "browserName": "chrome",
   "chromeOptions": {
     "args": [
       "--disable-gpu",
       "--disable-gpu-program-cache",
       "--disable-gpu-shader-disk-cache"
     ],
     "mobileEmulation": {
       "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1",
       "deviceMetrics": {
         "width": 375,
         "height": 812
       }
     }
   }
 }
}
селеноид открывает все как нужно мобильную эмуляцию

при обновлении на селениум 4

в объект запроса добавляется

"capabilities": {
   "alwaysMatch": {
     "browserName": "chrome"
   }
 }

{
 "desiredCapabilities": {
   "browserName": "chrome",
   "chromeOptions": {
     "args": [
       "--disable-gpu",
       "--disable-gpu-program-cache",
       "--disable-gpu-shader-disk-cache"
     ],
     "mobileEmulation": {
       "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.",
       "deviceMetrics": {
         "width": 375,
         "height": 812
       }
     }
   }
 },
 "capabilities": {
   "alwaysMatch": {
     "browserName": "chrome"
   }
 }
}

Тогда селеноид уже не открывает мобильную а просто браузер в стандарт расширении

Селеноид
aerokube/selenoid:1.10.3
источник

BO

Boris Osipov in Aerokube Support
chromeOptions  => goog:chromeOptions должно помочь
источник

ДП

Діма Потапов... in Aerokube Support
спасибо, помогло
источник

BO

Boris Osipov in Aerokube Support
в w3c ограниченный набор полей в капабилити. и  chromeOptions там нет, а вот вендорные капабилити vendorname:xxx есть
источник

BO

Boris Osipov in Aerokube Support
и клиентская либа отсекает в w3c capabilities все "лишнее"
источник

D

Dement in Aerokube Support
Здравствуйте, у меня такая проблема: я в browsers.json указываю "image": "selenoid/chrome:latest",. При запуске тестов у меня ищет образ selenoid/chrome:91.0
у меня есть спуленный образ selenoid/chrome:latest
Вопрос: почему не используется selenoid/chrome:latest, а ищется образ selenoid/chrome:91.0 .
Если я пулю образ selenoid/chrome:91.0, то всё работает.

browsers.json
{
   "chrome": {
       "default": "latest",
       "versions": {
           "latest": {
               "image": "selenoid/chrome:latest",
               "port": "4444",
               "path": "/"
           }
       }
   }
}
источник

АА

Александр Андряшин... in Aerokube Support
скорее всего селеноид смотрит не на тот конфигурационный файл, выполните в контейнере с селеноидом
cat /etc/selenoid/browsers.json
источник

D

Dement in Aerokube Support
верно. Большое спасибо
источник

S

SIBER in Aerokube Support
Hello! Has anyone tried running Selenium-wire with Selenoid? I got them both working independant of eachother but when I combined them i get 502 bad gateway whenever i try to connect to a webpage that is in the same docker-compose as Selenoid.

My docker compose is:

version: '3'
services:
 selenoid:
   network_mode: bridge
   image: aerokube/selenoid:latest-release
   volumes:
     - "$PWD/config:/etc/selenoid"
     - "/var/run/docker.sock:/var/run/docker.sock"
     - "$PWD/video:/opt/selenoid/video"
     - "$PWD/logs:/opt/selenoid/logs"
   ports:
     - "4444:4444"
 selenoid-ui:
   network_mode: bridge
   links:
      - selenoid
   image: aerokube/selenoid-ui
   ports:
     - "8080:8080"
   command: -selenoid-uri http://selenoid:4444

And i try with this Python code:

from seleniumwire import webdriver

sw_options = {
   'auto_config': False,
   'addr': '127.0.0.1',
   'port': 9922, #setups up proxy on host machine 127.0.0.1:9922
}

capabilities = {
   "browserName": "chrome",
   "selenoid:options": {
       "enableVNC": True
   },
   'goog:chromeOptions': {'extensions': [],
                          'args': ['--proxy-server=host.docker.internal:9922', # tell selenium that the proxy exists on the host machine
                                   '--ignore-certificate-errors']
                          }
}

driver = webdriver.Remote(
   desired_capabilities=capabilities,
   seleniumwire_options=sw_options
)

driver.get("http://docker.host.internal:7000") # website address localhost:7000

for request in driver.requests:
   if request.response:
       print(
           request.url,
           request.response.status_code
       )

driver.close()


But, as mentioned i get 502 gateway when trying to connect to my webpage hosted at localhost:7000 which is in the same docker-compose file as Selenoid.
источник

ST

Sudeep Talele in Aerokube Support
I have been trying download functionality using selenoid but geting download pop up in chrome I have added all capabilities mentioned in doc still getting download pop up is anything more needs be added
источник

HB

Hemanth B in Aerokube Support
I am unable to use vnc with it do you have any example how to use it?
источник

АА

Александр Андряшин... in Aerokube Support
do you set capability "enableVNC" to boolean true?
источник

АА

Александр Андряшин... in Aerokube Support
источник