I am using Geb to run a Grails function test. I want to use the Chrome driver, I follow these instructions:
https://code.google.com/p/selenium/wiki/ChromeDriver
I install the google chrome driver at:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
on my mac.
I run the test with the switch
-Dwebdriver.chrome.driver="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
from eclipse.
When I run the test I get:
Caused by: java.lang.IllegalStateException: The driver executable does not exist: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
If I leave out the switch I get:
The path to the driver executable must be set by the webdriver.chrome.driver system property;
If I leave out the quotes I get:
java.lang.IllegalStateException: The driver executable does not exist: /Applications/Google\
If I keep the quote and leave out some of the slashes
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
I get:
org.openqa.selenium.WebDriverException: chrome not reachable
(Driver info: chromedriver=2.3,platform=Mac OS X 10.8.3 x86_64) (WARNING: The server did not provide any stacktrace information)
any ideas?
First you need to install both the driver and the browser. Then webdriver.chrome.driver system property has to point at the driver and not the browser.
Related
I'm attempting to file a bug for web bluetooth. I attempted to enable the Chrome Debug Logs on Mac, but the instructions on the following site may be out of date.
https://www.chromium.org/developers/how-tos/file-web-bluetooth-bugs/
I tried to follow these instructions.
Chrome logs
Quit any running instance of Chrome.
Launch /Applications/Utilities/Terminal.app
At the command prompt enter: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-logging=stderr --vmodule=bluetooth=2
I expected to see the command complete successfully and begin viewing logs on
chrome://bluetooth-internals/#debug
When I run the command in Terminal, I receive the following response.
zsh: no matches found: --vmodule=bluetooth=2
MacOS Monterey Version 12.6.3
Chrome Version 109.0.5414.119 (Official Build)(x86_64)
I am very new to mac and I'm trying to start first selenium script on safari. For all I know, browser extension is not supported anymore and safaridriver should be defaultly installed by apple, also for MacOS Sierra. According to Apple documentation I should find it in /usr/bin/safaridriver, but on my mac it looks like there's no usr, bin diretories. Also I can't find safaridriver. Is it possible that I don't have those directories at all and webdriver file? I already installed python3, selenium and enabled remote automation in safari browser. But the problem with webdriver remains...
try this:
On Mac desktop:
click: 'Go'
Click: 'Go to folder'
Input: '/usr/bin'
Click: 'Go'
You bin folder should open, the safari driver is located there
I'm getting the following error while trying to run tests using capybara, selenium and chromedriver-helper. The tests run fine locally on a mac using the same version of chromedriver. I've tried setting the remote debugging port explicitly in my spec_helper, but apparently this is ignored as chromedriver uses a random remote debugging port.
Selenium::WebDriver::Error::UnknownError:
unknown error: Devtools port number file contents <37329> were in an unexpected format
(Driver info: chromedriver=2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7),platform=Linux 4.4.0-127-generic x86_64)
Had the same problem, I had to upgrade Chrome to the latest release and it fixed it.
I'm trying to execute a ruby script on my Windows 10.
Setup Details:
Browser :- latest version of Firefox, <br>
ruby -v 2.2.6<br>
gem -v 2.4.5.2 <br>
selenium webdriver -v 3.3.0
Now i got an error that it cant find geckodriver. I also downloaded geckodriver and added it to the Path.
This is the error message that I get:
Selenium::WebDriver::Error::WebDriverError: Unable to find Mozilla
geckodriver. Please download the server from
https://github.com/mozilla/geckodriver/releases and place it somewhere
on your PATH. More info at
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver.
How can i solve this problem?
It is clear from the error message which is Unable to find Mozilla geckodriver and place it somewhere on your PATH
Here is what you need to do:
Download the latest stable gecko driver & place it in a folder in "C:\abc".
Rename the gecko driver to geckodriver.exe
Download and install the latest released Mozila Firefox.
Ensure you are using either 32 bit or 64 bit for both.
Keep your code like:
System.setProperty("webdriver.gecko.driver", "C:\\abc\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.get("http://gmail.com");
Let me know if it works for you.
I'm trying to install Chrome extension through command-line to the Google Chrome on Mac OS X:
open /Applications/Google\ Chrome.app --args --install-from-webstore=extension_id
Google Chrome causes a crash
This operations was successfully on Windows:
chrome.exe --install-from-webstore=extension_id