Category : selenium-chromedriver

I am using Chrome driver Docker image within a docker-compose.yml. The Python code running using Chrome is as follow: class merge : def __init__(self,file_dir=None,personalized = 1,wait = 10) : self.wait = wait self.personalized = personalized if file_dir is None : file_dir = os.getcwd() print(file_dir) self.path = Path(file_dir) options = Options() options.add_argument("–no-sandbox") options.add_argument("–headless") options.add_argument("–window-size=1920,1080") options.add_argument("–disable-dev-shm-usage") options.add_argument("–allow-insecure-localhost") ..

Read more

So I am trying to run at least one test which uses selenium and chromedriver. I have also setup xvfb so that I can run these tests in a headless manner. I have the xvfb jenkins plugin installed and it is working correctly. So.. here’s what my Dockerfile looks like: Dockerfile FROM jenkins/jenkins:latest ENV JAVA_OPTS ..

Read more

We are using browserless docker to read content on certain websites. For few websites, the CPU increases proportional to the number of sessions open. Specifics docker version browserless/chrome:1.35-chrome-stable Script to reproduce once docker is up and running. #!/bin/bash HOST=’localhost:3000′ curl_new_session() { echo $(curl -XPOST http://$HOST/webdriver/session -d ‘ {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"binary":"","args":["–window-size=1400,900","–no-sandbox","–headless"]},"goog:chromeOptions":{"args":["–window-size=1400,900","–no-sandbox","–headless"]}}}’ | jq ‘.sessionId’) | tr -d ‘"’ ..

Read more

I would like to run the code below and connect to chrome with selenium. I have the chromedriver 91.0.4472.101 installed in PATH and chromium-browser installed. Do I miss something to install? Is it an access id/pw error? Any hint would be appreciated. The code: @retry(tries=4, delay=2, backoff=2,exceptions=(RetryException)) def oneTry(self,fromd,tod,exit=0): try : self.openSearchPage() self.prep(fromd.strftime("%d/%m/%Y"),tod.strftime("%d/%m/%Y"),exit) self.searchClick() self.checkTableHTML() ..

Read more

I am trying to execute the chrome driver from the docker container but did not succeed with the process, so far I did the following. Implement the Microsoft Azure Functions Implement the Dockerfile Running a docker container successfully Python File def main(req: func.HttpRequest) -> func.HttpResponse: logging.info(‘Python HTTP trigger function processed a request. 11:38’) chrome_options = ..

Read more