skip to Main Content

Why can't I connect to Chrome when using the undetected chromedriver? – Ubuntu

I am running a python script inside a docker container running https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc/. The python script can be found below: import logging logging.basicConfig(level=logging.NOTSET) import undetected_chromedriver.v2 as uc import time driver = uc.Chrome() driver.get('https://www.google.com/') time.sleep(777) The output of the logs can be…

VIEW QUESTION

With Selenium on CentOS 7, getting a MoveTargetOutOfBoundsException on my CentOS 7, which doesn't occur when the script is run on Mac OS Big Sur

I'm using Python 3.9 with the latest Selenium and have this code, which runs fine on my Mac, Chrome driver 101 headless instance of my script ... element = self.driver.find_element(By.CSS_SELECTOR, "body") actions = ActionChains(self.driver) actions.move_to_element_with_offset(element, 0, 0).perform() However, when I…

VIEW QUESTION

SessionNotCreatedException: Message: Could not start a new session. Response code 500 error with Python Selenium Chrome In Docker

I installed selenium/standalone-chrome in docker, and the version is 4.1.2. But when I run my python code get bellow error: My selenium/standalone-chrome in docker: My python code: def demo(): options = Options() options.add_argument('--headless') options.add_argument('--disable-gpu') driver = webdriver.Remote( command_executor="http://localhost:4444/wd/hub", desired_capabilities=DesiredCapabilities.CHROME )…

VIEW QUESTION

I need send copied text in telegram bot using selenium-chromedriver – Telegram API

element = browser.find_element_by_xpath("//div[@class='span12']") # send the copied text back context.bot.send_message(chat_id=update.message.chat_id, text=element) #come error element = browser.find_element_by_xpath("//div[@class='span12']") 2021-10-15 05:34:51,229 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception ........................ raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of…

VIEW QUESTION
Back To Top
Search