selenium-chromedriver

Altair automatic save chart as svg using selenium chromedriver [duplicate]

瘦欲@ 提交于 2020-03-04 21:33:32
问题 This question already has answers here : selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH error with Headless Chrome (1 answer) WebDriverException: Message: 'chromedriver' executable needs to be in PATH while setting UserAgent through Selenium Chromedriver Phyton (1 answer) Error Message: 'chromedriver' executable needs to be PATH (1 answer) Closed last month . I am trying to produce few charts in a loop and save them automatically. I am

How to Select Current Date and/or Use System Variables or System Calls to Forward Information with Selenium in Python Like Dates and Name Formats

无人久伴 提交于 2020-03-04 18:03:19
问题 So I am trying to select the current date, or use a system call from Powershell or Linux/Mac to a system variable with the OS Module. I need help in understanding the best way about how to go about accomplishing this. Option 1. How can I select the Highlighted date within the Calendar Option 2. How can I use a System Variable that will format the date to what I desire Preferably I like option 2 because the system variable will always be set by that of the computer. So I know that the date is

.sendkeys method not working to upload file using Python Selenium

折月煮酒 提交于 2020-03-03 11:48:07
问题 I'm trying to automate facebook marketplace posts. But i'm struggling to upload pictures to it. I already locate the element. When i click the element it will show the 'box' showing the file manager so that i can click on the folders and then the desired image. ele = wait.until(EC.element_to_be_clickable((By.XPATH,'//*[@id="rc.js_c"]/div/div[1]/div[5]/div[2]/div/div/div/div/div[1]/div/div/span/div/a/div[2]'))) ele.click() But when i try this: ele.send_keys('/file_path/rasp.jpeg') It raises

This version of ChromeDriver has not been tested with Chrome version 75 error with Selenium ChromeDriver and Chrome through facebook/php-webdriver

安稳与你 提交于 2020-03-03 09:27:12
问题 I'm using selenium, chromedriver, facebook/php-webdriver But the server always hang after an error What could be the problem? selenium or php? here is the php error: Fatal error: Uncaught Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"w3c":false,"binary":"","args":["--no-sandbox","--headless","--disable-gpu"]}}} Operation timed out after 51627

How to fix error Message: 'chromedriver.exe' executable may have wrong permissions [duplicate]

北慕城南 提交于 2020-03-03 08:57:54
问题 This question already has answers here : 'Webdrivers' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home (9 answers) Closed 2 years ago . I'm installing webdriver of selenium. However I get a following error : PermissionError Traceback (most recent call last) /usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in start(self) 75 stderr=self.log_file, ---> 76 stdin=PIPE) 77 except TypeError: /usr/lib/python3.6

Chrome doesn't start in WSL (Ubuntu 18.04) with “DevToolsActivePort file doesn't exist” under Chromedriver

我是研究僧i 提交于 2020-03-03 07:23:29
问题 I see the error Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: crashed (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) #0 0x7f87e934a7a9 <unknown> when trying to launch Chrome headless via Selenium::Chromedriver in Rails (5.2.3) with Capybara under WSL (Windows Subsystem for Linux) that's running Ubuntu 18.04

Unable to send date as text to datepicker field using send_keys when max attribute is set using ChromeDriver and Selenium

↘锁芯ラ 提交于 2020-03-03 07:06:07
问题 I am trying to use chromedriver to download some files. I have switched to chromedriver because in firefox the link I need to click opens a new window and the download dialog box appears even after all the required settings and I wasn't able to get around it. chromedriver works fine for the download but I can't seem to send_keys() to the element below, it works on firefox but can't seem to get it to work on this. <input name="" value="" id="was-returns-reconciliation-report-start-date" type=

Chrome failed to start in docker container using Selenium after upgrading to ChromeDriver v80 and Chrome v80

走远了吗. 提交于 2020-03-02 08:02:27
问题 I have E2E tests running in a docker container. After Friday's update of selenium/node-chrome it would not work anymore. I have tried to use older versions of selenium/node-chrome but it won't work. I have very little experience with docker containers etc. Google Chrome 80.0.3987.106 <- Info gotten running command google-chrome --version chromedriver-80.0.3987.106 <- Info gotten from /opt/selenium/ folder. Here`s how my Dockerfile looks like: FROM selenium/node-chrome:3.141.59 ENV NODE

python selenium: WebDriverException: Message: chrome not reachable

我只是一个虾纸丫 提交于 2020-03-01 21:25:46
问题 I am facing the issue with python selenium I entered the code below, it worked well few minutes ago, but now it doesn't work saying chrome not reachable Please help! from selenium import webdriver driver = webdriver.Chrome('/Users/Danny/Downloads/chromedriver_win32/chromedriver') driver.get('https://google.com') results --------------------------------------------------------------------------- WebDriverException Traceback (most recent call last) <ipython-input-36-6bcc3a6d3d05> in <module>()

Selenium Google Login Block

房东的猫 提交于 2020-03-01 06:35:37
问题 I have a problem with Google login. I want to login to the my account but Google says that automation drivers are not allowed to login. I am looking for a solution. Is it possible to get cookie of normal Firefox/Chrome and load it into the ChromeDriver/GeckoDriver? I thought that this can be a solution. But I am not sure is it possible or not.. Looking for solutions.. Also, I want to add a quick solution for this. I solved this issue by using one of my old verified account. That can be a