How to start Chromedriver in verbose mode on Eclipse

0 votes
I just recently installed OS X 10.9 on my mac and ever since then Chromedriver is not working when I try to run tests.

The error says "Chrome was killed".

Most of them mentioned that it works fine when you set the Chromedriver to --verbose mode but I have no idea how to do that.

Any ideas on how this can be done?
Mar 20 in Selenium by Surya
• 990 points
58 views

1 answer to this question.

+1 vote

Hi friend, here is a script that helps in creating the executable you'll need. So, change the directory (cd) to the directory where the chromedriver is present and then paste this to your console:

cat <<EOF>chromedriververbose
echo "running chromedriver --verbose \$*"
\$(dirname \$0)/chromedriver --verbose \$*
EOF

chmod +x chromedriververbose

That'll create an executable script called chromedriververbose where you can point your tests rather than just chromedriver.

Alternatively, you can rename chromedriver to chromedriversilent and then call the above script chromedriver and point it to chromedriversilent for drop-in replacement.

Hope this helps :)

answered Mar 20 by Vaishnavi
• 1,120 points

Related Questions In Selenium

0 votes
1 answer

How to start headless chrome in incognito mode?

You are missing a single -... "--incognito" READ MORE

answered Aug 13, 2018 in Selenium by Samarpit
• 5,130 points
392 views
0 votes
0 answers
0 votes
1 answer

How should I configure the chromedriver.exe in eclipse

Use the page factory pattern, working example: public ...READ MORE

answered Mar 27, 2018 in Selenium by Atul
• 5,530 points
3,606 views
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,070 points
443 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
791 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
433 views
0 votes
1 answer

How to auto-refresh the ChromeDriver using Selenium Webdriver?

You can use this command. Also, refresh ...READ MORE

answered May 10 in Selenium by Vaishnavi
• 1,120 points

edited May 10 by Omkar 391 views
0 votes
1 answer