selenium-chromedriver

Grant access to video and audio in Chrome 48 via Selenium Chromedriver automatically

本秂侑毒 提交于 2019-12-29 09:14:37
问题 I would like to automatically grant access to video and audio in Chrome via Chromedriver capabilities. Based on this (pretty old) answer I tried the following: DesiredCapabilities capabilities = DesiredCapabilities.chrome(); ChromeOptions options = new ChromeOptions(); Map<String, Object> prefs = new HashMap<>(); // with this chrome still asks for permission prefs.put("profile.managed_default_content_settings.media_stream", 1); prefs.put("profile.managed_default_content_settings.media_stream

SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 77 using Selenium ChromeDriver

偶尔善良 提交于 2019-12-29 08:14:10
问题 I am using ChromeDriver 77.0.3865.10 Google Chrome Version 76.0.3809.100 (Official Build) (64-bit) C:\WINDOWS\system32>java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode) Eclipse IDE for Java Developers Version: 2019-06 (4.12.0) Windows 10 I am tried reinstalling my windows to have a fresh OS, but it still didn't help the situation. Code trials: import org.openqa

The process started from chrome location C:\..\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed

▼魔方 西西 提交于 2019-12-28 19:40:33
问题 Chrome version: 68.0.3440.106 Chrome webdriver version: ChromeDriver 2.41.578737 Python Version : Python 3.5.2 I write this code in python: from selenium import webdriver from selenium.webdriver.common.keys import Keys o = webdriver.ChromeOptions() o.add_argument("disable-extensions"); o.add_argument("--start-maximized"); driver = webdriver.Chrome(executable_path=r"chromedriver.exe",options=o) driver.get("http://www.python.org") assert "Python" in driver.title elem = driver.find_element_by

WebDriverException: Message: 'Can not connect to the ChromeDriver'. Error in utils.is_connectable(self.port):

巧了我就是萌 提交于 2019-12-28 18:02:09
问题 I am trying to use the chromedriver 2.10 to run my tests on Chrome Browser Version 35.0.1916.114 On CentOS machine /home/varunm/EC_WTF_0.4.10/EC_WTF0.4.10_Project/wtframework/wtf/drivers/chromedriver Actually I fixed the path issue, because the error message was different if the issue was with path def start(self): """ Starts the ChromeDriver Service. :Exceptions: - WebDriverException : Raised either when it can't start the service or when it can't connect to the service """ env = self.env or

Remove an item from localStorage in a protractor test

醉酒当歌 提交于 2019-12-28 15:46:12
问题 I am trying to remove an entry in the localStorage from a protractor test describe('The feature', function() { beforeEach(function() { browser.executeScript('localStorage.removeItem("key");'); }); it('should do this', function() { }); }); but i get this error when the test is run in chrome UnknownError: <unknown>: Access to 'localStorage' is denied for this document. Storage is disabled inside 'data:' URLs. (Session info: chrome=32.0.1700.77) (Driver info: chromedriver=2.8.241036,platform=Mac

Cannot get automation extension from timeout: Timed out receiving message from renderer

淺唱寂寞╮ 提交于 2019-12-28 14:43:09
问题 Using Selenium Webdriver (C#) I'm getting the next error from time to time: System.InvalidOperationException : unknown error: cannot get automation extension from timeout: Timed out receiving message from renderer: -3.959 (Session info: chrome=37.0.2062.120) (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.2 x86_64) The way in which this mistake appears: OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) in c:\Projects\webdriver\dotnet\src

Running Selenium with Headless Chrome Webdriver

泄露秘密 提交于 2019-12-28 12:26:48
问题 So I'm trying some stuff out with selenium and I really want it to be quick. So my thought is that running it with headless chrome would make my script faster. First is that assumption correct, or does it not matter if i run my script with a headless driver? Anyways I still want to get it to work to run headless, but I somehow can't, I tried different things and most suggested that it would work as said here in the October update How to configure ChromeDriver to initiate Chrome browser in

ERROR:gpu_process_transport_factory.cc(1007)-Lost UI shared context : while initializing Chrome browser through ChromeDriver in Headless mode

你说的曾经没有我的故事 提交于 2019-12-28 04:20:12
问题 I am getting this error when I attempt to run code on 2 of 3 computers: [0502/155335.565:ERROR:gpu_process_transport_factory.cc(1007)] Lost UI shared context. Here is the code: from selenium import webdriver from selenium.webdriver.chrome.options import Options import os chrome_options = Options() chrome_options.add_argument("--headless") chrome_options.add_argument("--disable-gpu") chrome_options.add_argument("--window-size=1920x1080") chrome_driver = os.getcwd() + "\\chromedriver.exe" print

Python Selenium Chrome Webdriver

帅比萌擦擦* 提交于 2019-12-28 02:47:12
问题 I'm beginning the automate the boring stuff book and I'm trying to open a chrome web browser through python. I have already installed selenium and I have tried to run this file: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys browser = webdriver.Chrome() browser.get('https://automatetheboringstuff.com') But because of that I get this Error: Traceback (most recent call last): File "C:\Program Files (x86)\Python36-32\lib

Python Selenium Chrome Webdriver

丶灬走出姿态 提交于 2019-12-28 02:47:04
问题 I'm beginning the automate the boring stuff book and I'm trying to open a chrome web browser through python. I have already installed selenium and I have tried to run this file: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys browser = webdriver.Chrome() browser.get('https://automatetheboringstuff.com') But because of that I get this Error: Traceback (most recent call last): File "C:\Program Files (x86)\Python36-32\lib