Category : selenium-chromedriver

I am just trying to upgrade my local web scraper in python to a celery periodic task, so I won’t have to manually execute it every day. I’ve set up a celery image with chrome/chromedriver installed through dockerfile. The beam works fine except that it directly jumped to the end the moment it finished processing ..

Read more

I’m using selenium in docker and it worked fine, but today something went wrong I have this code in my docker file to install latest versions of chrome and chromedriver: # install google chrome RUN wget -q -O – https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add – RUN sh -c ‘echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list’ ..

Read more

Going off this SO question/answer, and a few others, I’ve been trying to get scraping function below to work in a Docker container. Right now, the Dockerfile is installing selenium from my requirements.txt file and I have the chromedriver extension uploading in the project directory. I don’t think this is the right way, and I’ve ..

Read more

I have created a docker-compose.yml file to run some protractor tests that are stored in a public repo. There are several containers created in the yml file: shared_repo: where tests are cloned. selenium-hub: container with a selenium image. chrome: container with a selenium/node-chrome-debug. protractor: container with a node:12.14 image Docker-compose file is: version: ‘2.4’ services: ..

Read more

I am able to run the Selenium scripts with the extension in my local machine by giving options.addExtensions(new File(".crx")); and "–load-extension " options. When I am trying to give –load-extension in chrome options, the extension is not getting loaded to chrome in the container when executing selenium scripts but I am able to add the ..

Read more

FROM python:3.7 WORKDIR /opt RUN curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /chrome.deb RUN dpkg -i /chrome.deb || apt-get install -yf RUN rm /chrome.deb ENV CHROMEDRIVER_VERSION 89.0.4389.23 ENV CHROMEDRIVER_DIR /chromedriver RUN mkdir -p $CHROMEDRIVER_DIR # Download and install Chromedriver RUN wget -q –continue -P $CHROMEDRIVER_DIR "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip" RUN unzip $CHROMEDRIVER_DIR/chromedriver* -d $CHROMEDRIVER_DIR ENV PATH $CHROMEDRIVER_DIR:$PATH RUN apt-get update COPY . ..

Read more

I am running selenium inside docker and getting this error on this call: driver.get(URL) Traceback (most recent call last): File "esdm.py", line 244, in <module> upload_to_esdm(browser, version_url, args.im_file, args.build, args.user_name, args.password, args.apps_file) File "esdm.py", line 78, in upload_to_esdm browser.get(version_url) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 333, in get self.execute(Command.GET, {‘url’: url}) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) ..

Read more