selenium-chromedriver

Not able to select a list item in an unordered list using selenium python

▼魔方 西西 提交于 2020-01-25 03:56:08
问题 I need to select a list item in an unordered list using selenium python. HTML: <div class="ms-drop bottom" style="display: block;"> <ul style="max-height: 400px;"> <li class="ms-select-all"> <label><input type="checkbox" data-name="selectAlls_osVer"> [Select all] </label> </li> <li class="" style="false"> <label class=""><input type="checkbox" data-name="selectItems_osVer" value="KK"> <span style=""> KK </span> </label> </li> <li class="" style="false"> <label class=""><input type="checkbox"

Select drop down option using Selenium. Headless chrome. Python

余生颓废 提交于 2020-01-24 16:39:39
问题 I am attempting to select an option from a drop down menu that expands the records on a page. It works fine when I am not running headless. When I run in headless I get a timeout exception error while the page waits to find the element. <select name="ctl00$ContentPlaceHolder1$uxTabContracts$uxTabPanelWaintingApproval$uxGridList$ctl05$uxUCGridViewPagingTemplate$uxDropDownListPageSize" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$uxTabContracts

This version of ChromeDriver has not been tested with Chrome version 79 error running protractorE2E tests with ChromeDriver Chrome Selenium

匆匆过客 提交于 2020-01-24 13:24:26
问题 Those are my settings: .gitlab-ci.yml image: node stages: - test tests: stage: test before_script: # Add Google Chrome to aptitude's (package manager) sources - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee -a /etc/apt/sources.list # Fetch Chrome's PGP keys for secure installation - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - # Update aptitude's package sources - apt-get -qq update -y # Install latest Chrome stable, Xvfb packages -

This version of ChromeDriver has not been tested with Chrome version 79 error running protractorE2E tests with ChromeDriver Chrome Selenium

别等时光非礼了梦想. 提交于 2020-01-24 13:24:26
问题 Those are my settings: .gitlab-ci.yml image: node stages: - test tests: stage: test before_script: # Add Google Chrome to aptitude's (package manager) sources - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee -a /etc/apt/sources.list # Fetch Chrome's PGP keys for secure installation - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - # Update aptitude's package sources - apt-get -qq update -y # Install latest Chrome stable, Xvfb packages -

What are 'service_args' for the selenium-python chrome webdriver?

ε祈祈猫儿з 提交于 2020-01-24 10:15:29
问题 I searched documentation for the argument service_args for the chrome webdriver, and I found the following pages: here and here, which unfortunately do not contain any useful content to answer my question. So where can I find proper documentation on the service_args argument? 回答1: The reason why this is not documented is unknown. But most likely this option can be used to pass arguments to the chromedriver . The list of options can be seen by running chromedriver --help For version 2.24 of

Python Selenium `move_by_offset` doesn't work

百般思念 提交于 2020-01-24 06:29:01
问题 Calling simple scrolling action with Python Selenium doesn't work : driver = webdriver.Chrome() driver.get('https://www.wikipedia.org/') time.sleep(2) actions = ActionChains(driver) actions.move_by_offset(500, 500).perform() For example function with moving to element, works Ok and Do scroll: driver = webdriver.Chrome() driver.get('https://www.wikipedia.org/') time.sleep(2) element = driver.find_element_by_css_selector(<Something>) actions = ActionChains(driver) actions.move_to_element

Python Selenium `move_by_offset` doesn't work

ε祈祈猫儿з 提交于 2020-01-24 06:28:51
问题 Calling simple scrolling action with Python Selenium doesn't work : driver = webdriver.Chrome() driver.get('https://www.wikipedia.org/') time.sleep(2) actions = ActionChains(driver) actions.move_by_offset(500, 500).perform() For example function with moving to element, works Ok and Do scroll: driver = webdriver.Chrome() driver.get('https://www.wikipedia.org/') time.sleep(2) element = driver.find_element_by_css_selector(<Something>) actions = ActionChains(driver) actions.move_to_element

selenium webdriver does not find the correct number of elements

落花浮王杯 提交于 2020-01-24 01:08:06
问题 Initially, I posted my question here: Extracting content from a dynamic web site using a Java Library Then, after reading and applying the info from the question below: Selenium Webdriver : not displaying the correct Li elements I installed a selenium chrome driver (Version ChromeDriver 74.0.3729.6), my chrome browser has version 74.0.3729.169. The selenium WebDriver java object is still unable to correctly find the number of elements on my web-page, altough I simulated a scroll-down and the

Website blocking Selenium : is there a way to bypass?

此生再无相见时 提交于 2020-01-22 03:50:06
问题 This webpage opens fine manually, but directly goes to a "maintenance" error message when using Selenium ! from selenium import webdriver driver = webdriver.Chrome(executable_path="chromedriver") driver.get("https://www.winamax.fr/paris-sportifs/") Is there a way to avoid this behaviour ? 回答1: A bit unclear why you felt website blocking Selenium . However I was able to access the website following the solution below: Code Block: from selenium import webdriver from selenium.webdriver.support

Automating gmail login [During oAuth] gets blocked with user verification

こ雲淡風輕ζ 提交于 2020-01-22 03:01:18
问题 This code works to login to gmail public void login(User user) { WebDriverWait wait = new WebDriverWait(driver, 60); WebElement emailTextBox = wait.until( ExpectedConditions.visibilityOfElementLocated(By.id("identifierId"))); emailTextBox.sendKeys(user.email); WebElement nextButton = wait.until( ExpectedConditions.visibilityOfElementLocated(By.xpath("//span[contains(text(), 'Next')]"))); nextButton.click(); WebElement passwordTextBox = wait.until( ExpectedConditions.visibilityOfElementLocated