selenium-chromedriver

Problem with Chromedriver in Headless mode

邮差的信 提交于 2019-12-13 00:39:10
问题 I would like to know if anyone there has ever had a problem using the chromedriver in "headless" mode. In my case, when running selenium tests in this mode, the execution of the same is stopped indefinitely, not completing the test and starts execution of the next test case nor does it give the relevant exception. I would like to know if anyone can have any idea of what may be occurring. I am guessing this issue is due to static initialization of the webdriver public static WebDriver

Create Dockerfile that includes Firefox and Chrome drivers for Selenium

让人想犯罪 __ 提交于 2019-12-13 00:34:56
问题 I have the following Dockerfile which will build a Selenium server FROM selenium/standalone-firefox:3.4.0-chromium FROM selenium/standalone-chrome USER root ENV NODE_ENV test RUN mkdir -p /usr/local/cdt-tests/csv-data COPY ./csv-data /usr/local/cdt-tests/csv-data USER seluser obviously the two FROM statements is incorrect => How can I create a Selenium server container that has both a Chrome driver and Firefox driver for Selenium. As far as I can tell, the selenium/standalone-firefox:3.4.0

How to handle multiple windows in Python selenium with Firefox driver

怎甘沉沦 提交于 2019-12-13 00:24:03
问题 I want to learn WINDOW handling in Python Selenium. My Task is: First open 'Google.com'. Second open 'Yahoo.com' in New Window . Third switch back to First Window and click on Gmail Link. Fourth switch to Second Window and click on Finance Link. Following Code works for me: browser.get("http://www.google.co.in") browser.execute_script("window.open('https://www.yahoo.com')") browser.switch_to_window(browser.window_handles[0]) print(browser.title) gmail=browser.find_element_by_class_name("gb_P"

Could not find default Chrome binary

走远了吗. 提交于 2019-12-12 18:08:57
问题 I am using the chrome webdriver for a project which works well when I run it on my local pc, however when I uploaded the project to my remote server for it to run live, the chromedriver could not load: this is how I am calling my chromedriver: IWebDriver driver = new ChromeDriver(@"C:\Users\User\Downloads\chromedriver_win_26.0.1383.0"); this is the error I get: Could not find default Chrome binary I have made sure that: the chromedriver.exe actually is in the specified location on the server

Unable to run the selenium script while connected to the LAN

做~自己de王妃 提交于 2019-12-12 17:36:04
问题 Unable to run the selenium script while connected to the LAN, however it works fine when connected to the WIFI. I have kept all the proxy settings same. Below is the code: String exePath = "/usr/local/bin/chromedriver"; System.setProperty("webdriver.chrome.driver", exePath); WebDriver driver = new ChromeDriver(); driver.get("https://www.google.com"); OS: Mac 10.11.6 Selenium: 2.53 Also tried with 3.8.1 ChromeDriver: 2.33.2 Chrome: V60. Eclipse Oxygen. Getting Below mentioned error message:

Selenium ChromeDriver (C#) Crashes Only in Visual Studio Debug Mode

半城伤御伤魂 提交于 2019-12-12 17:04:47
问题 I am facing an issue running my Selenium tests written in C# in Visual Studio. The issue I have is when I run the tests on ChromeDriver from the studio in debug mode, the chrome window always crashes with a frowny face. The chromedriver command window shows the following error in a loop (~20 times). Starting ChromeDriver 2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf) on port 52376 Only local connections are allowed. [28356:19528:0922/134628:ERROR:child_process_launcher.cc(528)] Failed

selenium driver, option inside optgroup fails to execute

北战南征 提交于 2019-12-12 15:24:56
问题 I am using the PHP webdriver bindings here: http://code.google.com/p/php-webdriver-bindings/ I can select standard option elements in a <select> no problem, but when they are a child of an <optgroup> the click() method doesn't change the selected item. The element is found (i can var_dump the details of the element). The code I am using is: $xpath = "//select[@name='{$element}']/optgroup[@label='{$optgrp}']/option[@value='{$value}']"; $element = $this->_webdriver->findElementBy

How to Fix this C# issue No test matches the given testcase filter `FullyQualifiedName =

社会主义新天地 提交于 2019-12-12 14:15:13
问题 I am new to C# and Selenium and I have pretty much made a number of scripts but there comes a problem when I make more than 1 method or more than 1 class single method and single class always runs good. I have tried every possible solution on the internet and my self tried solution in which I made a new project and copied the main code other than class name, method name and namespace and pasted it onto new project it worked fine this is the same issue but I want to know what the problem

Selenium Grid: set chrome *binary* path

被刻印的时光 ゝ 提交于 2019-12-12 12:44:46
问题 Note: I am not asking about setting the path of the chrome driver . I want to run a Selenium node with a specific version of Chromium as opposed to the default Chrome installed on the system. The webdriver doc says I would need to pass a ChromeOptions object, but this is obviosuly impossible to do on the command line. I've tried manually adding a JSON that represents ChromeOptions to the command line (like below), but it does not have any effect. java.exe -jar selenium-server-standalone-2.47

How to open pdf in chromedriver 2.15 without downloading it

二次信任 提交于 2019-12-12 11:50:23
问题 I recently upgraded to Chromedriver 2.15 Now, when I click a link to a pdf file it is auto-downloading instead of displaying in a new tab as before. <a id="my_pdf_file" format="pdf" target="_blank" href="/my_pdf_file.pdf">My PDF File</a> Is there a way to resume the old behavior of displaying the pdf in a new tab? 回答1: This is currently an open issue with Chrome, not Chromedriver: Unable to open a PDF file in chrome since upgrading to v 42.0.2311.90 At some point between M41 and M42, the