selenium-chromedriver

Python Selenium ChromeDriver Not Reachable

China☆狼群 提交于 2019-12-10 17:49:21
问题 So I'm unable to figure out why I am getting this exception. When I run the chromedriver alone I get: Starting ChromeDriver 2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3) on port 9515 When I try to run it from a file I get: WebDriverException: Message: chrome not reachable (Driver info: chromedriver=2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3),platform=Linux 3.13.0-52-generic x86_64) The code: if self.proxy: chrome_options = Options() chrome_options.add_argument("--proxy

launch tests in Chrome with Nightwatchjs on Mac OS: “Connection refused! Is selenium server started?”

安稳与你 提交于 2019-12-10 17:36:50
问题 I am able to run my tests with Firefox using the following command: nightwatch -t tests/test4.js My nightwatchjs.json config file: { "src_folders" : ["tests"], "output_folder" : "reports", "custom_commands_path" : "", "custom_assertions_path" : "", "globals_path" : "", "selenium" : { "start_process" : true, "server_path" : "selenium-server-standalone-2.44.0.jar", "log_path" : "", "host" : "127.0.0.1", "port" : 4444, "cli_args" : { "webdriver.chrome.driver" : "drivers/chromedriver" } }, "test

java - Selenium WebDriver failed to create chrome process

守給你的承諾、 提交于 2019-12-10 17:26:51
问题 So I have been trying to make a program that can interact with a webpage to input data. I ideally wanted to use Chrome so I tried to set up Selenium WebDriver and ChromeDriver. import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; public class Chrome { public static void main(String[] args) { //Set chromedriver path System.setProperty("webdriver.chrome.driver","C:/Users/Username/Desktop/Comp Sci work/chromedriver

Selenium Chrome Driver Limitations Web Scraping at Scale

谁说胖子不能爱 提交于 2019-12-10 16:16:15
问题 I'm planning to use Selenium Chrome Driver for my project which will be used to do web scraping to multiple public websites (something like kayak or skyscanner). So there will be a REST GET endpoint where my backend would launch headless Chrome to scrape multiple websites, and eventually return a manipulated JSON. I want to know how scalable is Chrome Driver as it sounds like a headless Chrome instance needs to be launched whenever a request comes in. Updated: Question using Google Chrome

Selenium WebDriver, Chrome. I am getting errors NOT IMPLEMENTED during (in the beginning and ending) running Python tests

血红的双手。 提交于 2019-12-10 16:06:42
问题 Errors: [6944:3028:0128/220426:ERROR:chrome_views_delegate.cc(176)] NOT IMPLEMENTED [6944:3028:0128/220426:ERROR:desktop_root_window_host_win.cc(746)] NOT IMPLEMENT ED [6944:3028:0128/220430:ERROR:desktop_root_window_host_win.cc(746)] NOT IMPLEMENT Read that the problem is in versions of Google Chrome and chromedriver.exe but I have the last version of Google Chrome - 32.0.1700.102 m and chromedriver.exe - 2.8. Test runs fine. 回答1: That's just the console output from ChromeDriver, which does

Is it possible to use Selenium WebDriver for automating desktop applications?

天涯浪子 提交于 2019-12-10 15:53:53
问题 I'm preparing to write automated tests for Web/Desktop application that is currently in the initial stage of development. The technologies that will be used are Laravel, VueJS and most important Electron Framework. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. So I'm curious about if is it possible to use Selenium WebDriver for automating desktop applications, which are created with web technologies (e.g. Electron)? I have

How to get a C# azure service that uses ChromeDriver to work in an Azure Cloud Service

淺唱寂寞╮ 提交于 2019-12-10 15:28:17
问题 I've written a C# Azure cloud service that uses Selenium.WebDriver.ChromeDriver but it doesn't work when I deploy it to Azure (Locally it runs fine - probably because I have Chrome installed). I deploy chromedriver.exe with my service but it fails because chrome.exe isn't found. I've tried deploying a copy of chrome.exe but that didn't work. I also tried adding the GoogleChrome nuget package but this also didn't work. Anyone know a way to get a C# azure service that uses Selenium/Chromedriver

nothing happens after .url() calling

跟風遠走 提交于 2019-12-10 15:19:23
问题 I have the following nightwatch test: module.exports = { 'Set Initial Dataset' : function (browser) { browser .url('http://localhost/nightwatch/load-initial-dataset') .end() } } When I execute it the browser is opened and the url is loaded, but when the loading is ended it doesn't close the browser to begin the next test. The test worked 1 month ago... I updated nightwatch to the nigthwatch latest version (v0.9.8), downloaded selenium-server-standalone-3.0.1.jar , chromedriver 2.25 and Chrome

How to add a proxy with auth to ChromeDriver on Watir

偶尔善良 提交于 2019-12-10 15:18:38
问题 I'm using Watir on Ruby which uses Selenium as its underlying framework. I'm using ChromeDriver, and to set up a proxy I sually did this: b = Watir::Browser.new :chrome, :switches => ["--proxy-server=11.1.1.11:3011"] Sometimes, the proxy comes with user,password authentication like this: 11.1.1.11:3011:3011:user:pass but when I try to put that string into --proxy-server I get an error. How can I configure ChromeDriver to use the authentication? I've tried the format often suggested in other

Try to make the mouse cursor visible in a selenium test case

我们两清 提交于 2019-12-10 15:01:20
问题 I work with Selenium Webdriver in Java on the chromedriver and I try to display the cursor permanently while a test case is performed. I have tried the robot and the action class but without any succes. for Example i tried this: Actions builder = new Actions(driver); Action action = builder.moveToElement(logo).click().build(); action.perform(); In this case i can see the cursor but its not moving. Any help would be very appriciated. 回答1: I've found a workaround for my problem. I use the