selenium-chromedriver

ERROR:ssl_client_socket_openssl.cc(1158)] handshake failed with ChromeDriver Chrome browser and Selenium

被刻印的时光 ゝ 提交于 2019-12-22 03:22:53
问题 When running my python selenium script in Chrome driver I get about three of the below error messages every time a page loads even though everything works fine. Is there a way to suppress these messages? [24412:18772:0617/090708:ERROR:ssl_client_socket_openssl.cc(1158)] handshake failed; returned -1, SSL error code 1, net_error -100 回答1: You get this error when the browser asks you to accept the certificate from the website. You can set to ignore these errors by default in order avoid these

action.sendKeys(body, Keys.CONTROL + “j”) dosen't open the download page

五迷三道 提交于 2019-12-22 01:03:48
问题 I am using Java and Selenium to write tests for Chrome. I need to open the download page at one point so I used: action.sendKeys(Keys.CONTROL + "j").build().perform(); but it does NOT open the page. then I added this line before it as I though it might work but it didn't: WebElement body = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//body[@id='body']"))); action.sendKeys(body, Keys.CONTROL + "j").build().perform(); The weird point is that action.sendKeys(Keys.CONTROL + "a")

Unable to load default profile in Chrome with Selenium WebDriver

别等时光非礼了梦想. 提交于 2019-12-21 17:54:04
问题 I am using Selenium WebDriver to do something on a page that requires http authentication. I am already login in my default profile. But the selenium chromedriver will automatically use a new profile for each use therefore I can't get past the authentication stage. Therefore, I was thinking of using my default profile (With account login inside) on Selenium WebDriver for Chrome. The default profile don't seem to be loaded into Chrome even when I use the code as below ChromeOptions options =

Elixir Hound wait for page to load

我们两清 提交于 2019-12-21 17:52:26
问题 I'm submitting a login form and trying to capture the HTML afterwards using elixir / hound. After submitting I run page_source and get nothing. If I wait for a second (for the page to finish loading) then I get back the html. Is there a way to make hound wait till the page is finished loading? I'm currently doing: :timer.sleep(2000) as a work around, hoping for a better way :/ 回答1: This is what I do: Create a function that repeatedly checks for a test condition every 100ms, in this case I'm

WebDriver: How to specify preferred languages for Chrome

谁说胖子不能爱 提交于 2019-12-21 12:08:20
问题 I'm trying to get my remote chrome driver to request pages in German instead of English. Following the chromedriver documentation and list of chrome preferences, I tried to set it like this: capabilities.setCapability(ChromeOptions.CAPABILITY, getChromeOptions()); Map<String, String> chromePrefs = new HashMap<String,String>(); chromePrefs.put("settings.language.preferred_languages", "de-DE,de"); capabilities.setCapability("chrome.prefs", chromePrefs); And I can see it reaches chromedriver

How to change web browser from Firefox to Chrome/Opera/IE/Safari in selenium webdriver?

帅比萌擦擦* 提交于 2019-12-21 11:55:34
问题 How to change browser from firefox to Chrome/Opera/IE working in selenium webdriver? Please guide in steps and also with the code snippet. Please reply if you have answer for any of the browsers mentioned above. I read out a lot on this but could not link it properly. 回答1: First of all you need to import the proper drivers into the project/class. like import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.ie

How to change web browser from Firefox to Chrome/Opera/IE/Safari in selenium webdriver?

ε祈祈猫儿з 提交于 2019-12-21 11:55:10
问题 How to change browser from firefox to Chrome/Opera/IE working in selenium webdriver? Please guide in steps and also with the code snippet. Please reply if you have answer for any of the browsers mentioned above. I read out a lot on this but could not link it properly. 回答1: First of all you need to import the proper drivers into the project/class. like import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.ie

Facebook\WebDriver Curl error thrown for http POST to /session with params: {“desiredCapabilities”} error

纵饮孤独 提交于 2019-12-21 06:29:33
问题 I try using Selenium and Chromewebdriver with PHP Facebooks Webdriver on a Debian Jessie. I dont know but the Session will not start. I Installed Java SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode) and Selenium version: '3.9.1', revision: '63f7b50' and ChromeDriver (v2.9.248304). I i start Selenium with the call java -Dwebdriver.chrome.driver/srv/www/XXXX/build/chromedriver -jar selenium-server-standalone-3.9.1.jar the result

Transparent screenshot with headless ChromeDriver via Selenium

心已入冬 提交于 2019-12-21 05:15:12
问题 To my understanding the ChromeDriver itself doesn't set the background, the CSS does. Therefore if the background is transparent, why am I not getting transparent screenshots? This is the screenshot of the supposedly transparent website: Same screenshot but with a red div in the background to show where the transparency should lie: Here is my code: from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions

How to set path chrome driver in robot framework?

不想你离开。 提交于 2019-12-21 04:59:25
问题 Now, I set path variable path : D:..;C:\Program Files\Google\Chrome\Application Chrome : C:\Program Files\Google\Chrome\Application\chromedriver.exe I can call open Chrome in command line. But error when run in RIDE FAIL : WebDriverException: Message: unknown error: Chrome failed to start: crashed (Driver info: chromedriver=2.13.307647 (5a7d0541ebc58e69994a6fb2ed930f45261f3c29),platform=Windows NT 6.1 SP1 x86) 回答1: You need chromeDriver not Chrome. Start by downloading the chrome driver.