Category : selenium

I am trying to run tests using Docker-compose, but I am having trouble with Selenium. I have no previous experience with docker so I am struggling with it. Dockerfile # syntax=docker/dockerfile:1 FROM ruby:2.7.2 RUN apt-get update -qq && apt-get install -y nodejs postgresql-client WORKDIR /myapp COPY Gemfile /myapp/Gemfile COPY Gemfile.lock /myapp/Gemfile.lock RUN bundle install # ..

Read more

i am using Docker to run a selenium-grid. Right now i am using the following docker-compose: services: chrome-1: image: selenium/node-chrome:4.0.0-beta-3-20210426 volumes: – /dev/shm:/dev/shm depends_on: – selenium-hub environment: – SE_EVENT_BUS_HOST=selenium-hub – SE_EVENT_BUS_PUBLISH_PORT=4442 – SE_EVENT_BUS_SUBSCRIBE_PORT=4443 ports: – "6900:5900" – "5901:5900" – "7901:7900" restart: always … selenium-hub: image: selenium/hub:4.0.0-beta-3-20210426 container_name: selenium-hub ports: – "4442:4442" – "4443:4443" – "4444:4444" ..

Read more

I am trying to run Selenium test cases inside docker through Jenkins. The docker is on Amazon EC2 instance. I start docker with the following command: docker run -d -v /var/jenkins_home:/var/jenkins_home:z -p 80:8080 -p 50000:50000 -v "/home/ec2-user/source/jenkins" -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker -v $(which docker-compose):/usr/bin/docker-compose jenkins/jenkins:lts Below is the docker-compose.yaml file: version: "3" services: hub: ..

Read more

I have written a test case using Robot Framework & Selenium Library to open chrome://webrtc-internals/ URL in headless chrome browser. Those of you who don’t know what webRTC internals is please read this : https://webrtc.org/. Now coming back to the problem my test case executes successfully on my local machine (Both headless/non-headless mode). But when ..

Read more