selenium-chromedriver

SeleniumBasic VBA Fastest Loop of WebElements using a WebElement method

守給你的承諾、 提交于 2020-05-14 12:48:13
问题 I'm noticing a rather long time for an operation to complete. I'm using the latest SeleniumBasic for VBA to extract data from a table using a ChromeDriver. (https://github.com/florentbr/SeleniumBasic) I'm retrieving WebElements and looping through them to get the text value. I'm assigning the text value to an array of type String. This operation takes quite a long time when I have a large array (1000's of WebElement objects). Question - What is the fastest way to get all the text values? Here

How to find element using type in Selenium and Python

青春壹個敷衍的年華 提交于 2020-05-13 05:27:21
问题 I have the below html code. <div align="center"> <input type="file" name="filePath"><br> <input type="Submit" value="Upload File"><br> </div> I am trying to find the two elements "file" and "submit" using Selenium with Python. Below is the code I have tried to use. from selenium import webdriver from selenium.webdriver.common.keys import Keys # create a new Firefox session driver = webdriver.Chrome() # Maximize the browser window driver.maximize_window() # Enter the url to load driver.get("<

PDFBox IOException: End of File, expected line

ぐ巨炮叔叔 提交于 2020-05-12 04:38:32
问题 I am currently trying to grab text from a PDF that is already uploaded and accessed through a link by using PDFBox and Selenium. I used this as a source: http://www.seleniumeasy.com/selenium-tutorials/how-to-extract-pdf-text-and-verify-using-selenium-webdriver-java public String function(String pdf_url) { PDFTextStripper pdfStripper = null; PDDocument pDoc; COSDocument cDoc; String parsedText = ""; try { URL url = new URL(pdf_url); BufferedInputStream file = new BufferedInputStream(url

AWS Lambda Node.js 10.x Runtime error with selenium-webdriver

一曲冷凌霜 提交于 2020-05-11 17:08:11
问题 A few days back we received a notification regarding 'Lambda operational notification' to update our Node.js 8.10 runtime to Node.js 10.x runtime. In response to this notification, we installed Node.js version v10.16.3 in our development system and tested our existing code. We found the code was running fine in our development system, but when we tested this same code in AWS Lambda with Node.js 10.x runtime we get this following error: 2019-10-28T12:03:31.771Z 8e2472b4-a838-4ede-bc70

AWS Lambda Node.js 10.x Runtime error with selenium-webdriver

。_饼干妹妹 提交于 2020-05-11 17:06:17
问题 A few days back we received a notification regarding 'Lambda operational notification' to update our Node.js 8.10 runtime to Node.js 10.x runtime. In response to this notification, we installed Node.js version v10.16.3 in our development system and tested our existing code. We found the code was running fine in our development system, but when we tested this same code in AWS Lambda with Node.js 10.x runtime we get this following error: 2019-10-28T12:03:31.771Z 8e2472b4-a838-4ede-bc70

AWS Lambda Node.js 10.x Runtime error with selenium-webdriver

柔情痞子 提交于 2020-05-11 17:04:47
问题 A few days back we received a notification regarding 'Lambda operational notification' to update our Node.js 8.10 runtime to Node.js 10.x runtime. In response to this notification, we installed Node.js version v10.16.3 in our development system and tested our existing code. We found the code was running fine in our development system, but when we tested this same code in AWS Lambda with Node.js 10.x runtime we get this following error: 2019-10-28T12:03:31.771Z 8e2472b4-a838-4ede-bc70

Downloading a PDF using Selenium, Chrome and Python

坚强是说给别人听的谎言 提交于 2020-05-09 21:43:52
问题 I tried following previous posts on this topic such as these (post 1, post 2), but I'm still stuck. My script has to log into a site using a set of credentials, then navigate through some drop down menus to select a report. Once the report is selected, a new window pops up where parameters must be adjusted to generate the report. Once the parameters are set, the same pop up window refreshes with the generated report in PDF format and is displayed using Chrome's built in PDF viewer. I was

selenium.common.exceptions.SessionNotCreatedException: Message: session not created from tab crashed using ChromeDriver Chrome Selenium Python

蓝咒 提交于 2020-05-09 07:03:36
问题 I am having this error apparently when trying to access a url that the script requests, does not have a specific. I don't understand exactly why this error, but I want to treat it so as not to abort the script when it occurs. This make duplicate, but not solution my problem: How to avoid the error: selenium.common.exceptions.SessionNotCreatedException: Message: session not created from tab crashed code: from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver

selenium.common.exceptions.SessionNotCreatedException: Message: session not created from tab crashed using ChromeDriver Chrome Selenium Python

柔情痞子 提交于 2020-05-09 07:03:35
问题 I am having this error apparently when trying to access a url that the script requests, does not have a specific. I don't understand exactly why this error, but I want to treat it so as not to abort the script when it occurs. This make duplicate, but not solution my problem: How to avoid the error: selenium.common.exceptions.SessionNotCreatedException: Message: session not created from tab crashed code: from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver

How To Scrap Values in Selenium Using Python?

好久不见. 提交于 2020-05-07 09:23:42
问题 I'm Trying To Scrap Values in option tag with css selector but i can't: I Want to scrap values attribute in option tag for example <option value='i want to scrap this'>text</option> Here is another Screenshot so you can understand better: in the option tag i want to scrap values not text You Can See Here is the option values screenshot: I Want also to scrap values here: Here is my code: cur = driver.find_elements_by_css_selector('#id_currency') country = driver.find_elements_by_css_selector(