selenium-chromedriver

Python selenium impossible to select drop-down [duplicate]

社会主义新天地 提交于 2019-12-20 04:50:44
问题 This question already has answers here : Compound class names not permitted error Webdriver (6 answers) Invalid selector: Compound class names not permitted using find_element_by_class_name with Webdriver and Python (2 answers) Closed last year . I'm trying to select an option from a drop down menu and than to click "Search" but I can't get "select" tag. The HTML I'm scraping is the following: <select class="form-control ng-pristine ng-untouched ng-valid ng-scope ng- empty" ng-class="{

Alert doesn't close using Selenium WebDriver with Google Chrome.

 ̄綄美尐妖づ 提交于 2019-12-20 04:40:35
问题 I have the following Selenium script for opening alert on rediff.com: public class TestC { public static void main(String[] args) throws InterruptedException, Exception { System.setProperty("webdriver.chrome.driver", "driver/chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("http://www.rediff.com/"); driver.findElement(By.xpath("//*[@id='signin_info']/a[1]")).click(); driver.findElement(By.id("btn_login")).click(); Thread.sleep(5000); Alert alert=driver.switchTo().alert();

Unable to launch Chrome browser through Selenium in Jenkins on Linux platform

泪湿孤枕 提交于 2019-12-20 04:37:35
问题 Jenkins is showing message starting the chromedriver but the chromedriver is not triggered and testcase fails.i dont know why it is happening Note: the xml created for this code runs successfully on terminal.i think issue is with chromedriver SELENIUM CODE: public class cmddd { @Test public void f() throws InterruptedException { System.setProperty("webdriver.chrome.driver", "/home/dev2/Downloads/newchromedriver/chromedriver"); WebDriver m = new ChromeDriver(); m.get("https://www.google.com/")

Getting the “InvocationTargetException” exception on the line driver=new ChromeDriver();

穿精又带淫゛_ 提交于 2019-12-20 04:26:20
问题 I am opening the Chromebrowser, and getting the exeption "InvocationTargetException" . The code was running properly few days ago. Here is my code System.setProperty("webdriver.chrome.driver","D:\\Automation\\chromedriver_win32\\chromedriver.exe"); driver=new ChromeDriver(); At the line "driver=new ChromeDriver();" I am getting the "InvocationTargetException" Exception 回答1: InvocationTargetException InvocationTargetException is a checked exception that wraps an exception thrown by an invoked

Timeout exception while waiting for webpage with element in headless chrome

血红的双手。 提交于 2019-12-20 04:13:29
问题 Following code uses non-headless chrome and it works: import os from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait chrome_options = Options() chrome_options.add_argument("--headless") chrome_options.add

Disabling PDF Viewer plugin in chromedriver

不羁的心 提交于 2019-12-20 04:13:29
问题 I'm trying to batch-download a lot of files within the BlackBoard environment (used a lot on universities/schools around the world). I am able to retrieve the links where the files are but one mayor issue: When the file is a .pdf-file, it is shown in a new browser-tab in stead of being downloaded. For e.g. .xlsx-files downloading with a click() works just fine.. Can I change the driversettings to change this behaviour? And how? Edit I updated the question in reaction to Ari's answer. It's now

Could not load file or assembly 'WebDriver, Version=2.35.0.0 …'

江枫思渺然 提交于 2019-12-20 04:07:21
问题 I followed steps of "Selenium components for Coded UI Cross Browser Testing". But I had download the lastest version of: WebDriver.ChromeDriver.win32 2.4.0 http://www.nuget.org/packages/WebDriver.ChromeDriver.win32/ selenium-dotnet-strongnamed-2.37.0 https://code.google.com/p/selenium/downloads/list then I installed those in my machine of 64bits but the Visual Studio 2013 present the next problem when I try to run automated test: System.IO.FileNotFoundException: Could not load file or

Unable to create new Chrome remote session

只愿长相守 提交于 2019-12-20 03:46:12
问题 I'm trying to launch a new Chrome browser using Selenium Grid but ending up with the below error Unable to create new remote session. desired capabilities = Capabilities [{browserName=chrome, version=55.0.2, platform=WINDOWS}], required capabilities = Capabilities [{}] Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700' System info: host: 'PL9710388', ip: '10.61.249.5', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_111' Driver

chromedriver session not created from tab crashed after update chrome 70

随声附和 提交于 2019-12-20 03:24:23
问题 I update chrome to version 70 and I had an error with my selenium test. So I update my chromedriver to 2.43 (http://chromedriver.chromium.org/downloads) but I still have this error: org.openqa.selenium.SessionNotCreatedException: session not created from tab crashed (Session info: chrome=70.0.3538.102) (Driver info: chromedriver=2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)

Pyinstaller generated app does not link to the specified binary (chromedriver)

时光毁灭记忆、已成空白 提交于 2019-12-20 02:27:39
问题 After updating the Pyinstaller spec file as suggested in the answer here (How to include chromedriver with pyinstaller?), chromedriver is still not being accessed from the generated app file. Could the issue be with .\\selenium\\webdriver ? That was copied from the answer and I'm not sure it's specific to a Windows OS. Running the UNIX executable in terminal works, accessing chromedriver. The full spec file is: # -*- mode: python -*- block_cipher = None a = Analysis([‘scriptname.py'], pathex=