selenium-chromedriver

chrome-driver 83 compatibility with Ubuntu

拟墨画扇 提交于 2020-06-17 04:44:19
问题 I'm running Ubuntu 18.04.1 LTS and used stable versions of Google Chrome v81 and compatible chrome-driver v81 for a long time successfully. After reinstalling google-chrome-stable up to 83.0.4103.61 and updating chrome-driver up to 83.0.4103.39 . According to the official page they are fully compatible. But after these updates I'm getting error unable to connect to renderer . My capabilities remains the same: capabilities: { browserName: 'chrome', chromeOptions: { args: [ '--headless', '-

WebDriverException: Message: Service /usr/bin/google-chrome unexpectedly exited. Status code was: -11 with ChromeDriver Chrome through Selenium Python

心不动则不痛 提交于 2020-06-17 01:59:47
问题 I am trying to run webdriver in a Python script, and when the script tries to run google chrome it exits with status code 11. Here is the python script: #!/usr/bin/python3 import time from selenium import webdriver driver = webdriver.Chrome('/usr/bin/google-chrome') # Optional argument, if not specified will search path. driver.get('http://www.google.com/'); time.sleep(5) # Let the user actually see something! search_box = driver.find_element_by_name('q') search_box.send_keys('ChromeDriver')

WebDriverException: Message: Service /usr/bin/google-chrome unexpectedly exited. Status code was: -11 with ChromeDriver Chrome through Selenium Python

时间秒杀一切 提交于 2020-06-17 01:59:10
问题 I am trying to run webdriver in a Python script, and when the script tries to run google chrome it exits with status code 11. Here is the python script: #!/usr/bin/python3 import time from selenium import webdriver driver = webdriver.Chrome('/usr/bin/google-chrome') # Optional argument, if not specified will search path. driver.get('http://www.google.com/'); time.sleep(5) # Let the user actually see something! search_box = driver.find_element_by_name('q') search_box.send_keys('ChromeDriver')

Chromedriver: How to translate a page using selenium?

不想你离开。 提交于 2020-06-16 07:52:48
问题 I need to translate a page from Japanese to English, using selenium in chrome browser. I tried different ways one of sample code snippet is as following import java.util.concurrent.TimeUnit; import org.junit.Test; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; public class Main { private WebDriver driver=null; WebDriverLoad a; @Test public void

Python3, can't set socks proxy with chromedriver (socks.py type integer error)

萝らか妹 提交于 2020-06-16 04:30:48
问题 I'm trying to use a socks5 proxy via localhost with chromedriver and python3.5. However, I get the following error: loading Traceback (most recent call last): File "test.py", line 16, in <module> browser = webdriver.Chrome(chrome_options=options) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__ self.service.start() File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 97, in start if self.is

C# equivalent to Java Robot class

只谈情不闲聊 提交于 2020-06-15 04:18:51
问题 What is the C# equivalent to Java Robot class for mouse pointer movements? As Actions class cannot be used directly for keyboard and mouse. I need to move my mouse pointer visually in selenium n c#. For example, if I want to access my mail from Rediffmail website, the mouse pointer should move to the address bar then to username and password textbox and log-in button. Mouse pointer should move along with the actions being performed in my tests. 回答1: As you are looking out for C# modules

C# equivalent to Java Robot class

倖福魔咒の 提交于 2020-06-15 04:18:32
问题 What is the C# equivalent to Java Robot class for mouse pointer movements? As Actions class cannot be used directly for keyboard and mouse. I need to move my mouse pointer visually in selenium n c#. For example, if I want to access my mail from Rediffmail website, the mouse pointer should move to the address bar then to username and password textbox and log-in button. Mouse pointer should move along with the actions being performed in my tests. 回答1: As you are looking out for C# modules

Default location of ChromeDriver binary and Chrome binary on windows 7

怎甘沉沦 提交于 2020-06-13 05:34:27
问题 What is the default location of ChromeDriver binary and Chrome binary on windows 7 for triggering appium using java-client.jar? if i am using RemoteWebDriver and tries to initiate chrome browser, from where does the selenium initiates the chromedriver? the code: DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("userName", ReadProperties.Properties("MobileUsername")); capabilities.setCapability("password", ReadProperties.Properties("MobilePassword"));

Can I use Selenium (webdriver) for Chrome without using chromedriver.exe?

扶醉桌前 提交于 2020-06-12 05:05:26
问题 I've been trying to study Selenium in ways we can incorporate it in our testing. I've read and watched some tutorial and it basically needs to use chromedriver.exe set as webdriver.chrome.driver property. However, our company policies restrict us from using/executing exe files. As a result, when I try my code for Selenium chrome, I get an error that the exe trying to execute is unauthorize. So my question is that, is there any way I can use Selenium for chrome without having to use

chromedriver window.navigator.webdriver flag is true with chrome v80+

佐手、 提交于 2020-06-09 05:24:42
问题 I am using selenium chromeDriver for automated testing. But I cannot "hide" the window.navigator.webdriver property. When I open chrome(v64-80.0.3987.100) through the driver, it always returns true when viewed in the console. Here is my code: System.setProperty("webdriver.firefox.marionette", "false"); System.setProperty("webdriver.chrome.driver", webDriverPath); ChromeOptions options = new ChromeOptions(); options.addArguments("--no-sandbox"); options.addArguments("--disable-extensions");