selenium-chromedriver

webscraping using python and selenium and tried to use multiprocessing but code not working. without it code works fine

廉价感情. 提交于 2021-02-11 16:55:15
问题 Am doing web scraping with python & selenium. I used to scrape data for one location & year at a time, by creating 1800 .py files (600 places * 3 years = 1800) and batch opening 10 at a time and waiting for it to complete. which is time-consuming so I decided to use multiprocessing. I made my code to read places data from a text file and iterate with it. the text file looks like this Aandimadam Aathur_Dindugal Aathur_Salem East Abiramam Acchirapakkam Adayar Adhiramapattinam Alandur

Python: Headless mode picks up the older version of chrome

廉价感情. 提交于 2021-02-11 15:10:05
问题 I am trying to automate sending a text message using python & selenium from https://voice.google.com/about . When I run below code, it picks up the lattest version/ instance of google chrome and works fine. But, when I run it headless mode, it uses an older version of google chrome(guessing from screenshot) and gives TimeoutException() exception. It fails while logging in. I checked an element id of sign in box in an IE emulator and it appears to be the same. url = "https://voice.google.com

TestNG Selenium ChromeDriver : java.lang.NoSuchMethodError

梦想的初衷 提交于 2021-02-11 14:59:50
问题 by wanting to perform a first execution of my framework, i launch a simple testcase with Selenium - testNG on intellij IDEA and, i have an error of which I do not know the real origin. This is my POM.xml dependencies <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion>

Selenium Basic VBA focus on new tab that is opened by Click

偶尔善良 提交于 2021-02-11 14:34:06
问题 I'm working on the Selenium Basic Wrapper for Excel VBA, but upon clicking a button that opens a new tab, I am unable to get the selenium web-driver to switch focus onto the new tab that is opened, and to close the original tab.. Believe this should be achievable using the Java Selenium, but is there any way to do it through the Selenium Basic wrapper on excel VBA? Have tried using bot.switchtopreviouswindow/nextwindow to no avail, Selenium does not even seem to detect the new tab/window

Website denies get request using Selenium

假装没事ソ 提交于 2021-02-11 14:24:07
问题 I am trying to use selenium in order to automate for login into a website https://afghanbids.com/ but when I run my python program, the browser loads a page which says access denied. You may please see the screen shot below. My code: driver = webdriver.Chrome(executable_path="chromedriver.exe") driver.get("https://afghanbids.com/") It shows that: How can I make the request so that the target website does not deny my request? 回答1: I took your code, added a few tweaks and encountered the access

Using RSelenium to open chrome browser, getting “Unable to create new service: ChromeDriverService” message and error

℡╲_俬逩灬. 提交于 2021-02-11 14:11:21
问题 As the title says, I've got a script written using RSelenium to automate web navigation, using chrome as the browser. This script has worked fine for months now, but today when I tried to run it, I got the following message: Selenium message:Unable to create new service: ChromeDriverService Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08- 02T20:13:22.693Z' System info: host: 'LAPTOP-22QM8890', ip: '192.168.133.65', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0

Using RSelenium to open chrome browser, getting “Unable to create new service: ChromeDriverService” message and error

淺唱寂寞╮ 提交于 2021-02-11 14:10:37
问题 As the title says, I've got a script written using RSelenium to automate web navigation, using chrome as the browser. This script has worked fine for months now, but today when I tried to run it, I got the following message: Selenium message:Unable to create new service: ChromeDriverService Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08- 02T20:13:22.693Z' System info: host: 'LAPTOP-22QM8890', ip: '192.168.133.65', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0

Scraping multiple select options using Selenium

巧了我就是萌 提交于 2021-02-11 14:02:29
问题 I am required to scrape PDF's from the website https://secc.gov.in/lgdStateList . There are 3 drop-down menus for a state, a district and a block. There are several states, under each state we have districts and under each district there are blocks. I tried to implement the following code. I was able to select the state, but there seems to be some error when I select the district. from selenium import webdriver from selenium.webdriver.support.ui import Select import requests from bs4 import

Install a previous version of chromedriver with brew

半腔热情 提交于 2021-02-11 13:59:11
问题 I want to install chromedriver version 79.0.3945.36 with brew. When I try to run brew cask install chromedriver@79.0.3945.36 It fails saying chromedriver@79.0.3945.36 is unavailable: No Cask with this name exists. 回答1: I did a quick check, did not find cask formula has versioned ones. The hack way of installing a old version of cask formula would be: cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask , go the place where cask is referenced git reset --hard c3c1b84b7a , this would

Selenium webdriver error Chrome failed to start [duplicate]

情到浓时终转凉″ 提交于 2021-02-11 13:46:33
问题 This question already has answers here : WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser (31 answers) Closed 2 years ago . I am trying to open Chrome webdriver through Selenium and I'm getting an error when initializing it. The error I'm receiving: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "F:\WinPython\python-3.6.7.amd64\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in _