WebDriverException: Message: unknown error: cannot find Chrome binary

296 views
Skip to first unread message

Ritz Kevin Ragel

unread,
Aug 15, 2020, 8:00:28 PM8/15/20
to robotframework-users
Hi robot-framework users,

Good day. I'd wish to ask for your assistance regarding this error.

I tried running my robot-framework scripts using Jenkins to a virtual machine then I stumbled upon this error upon opening my web browser.

WebDriverException: Message: unknown error: cannot find Chrome binary (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.14393 x86_64)  

It seems like Jenkins is running it in headless mode but my browser is not set in headless mode.

This is the python method for launching browser:
def mx_create_chrome_webdriver_and_enable_download_directory(self, browsername, download_dir, headless_mode='No')

When I'm running this script in my local, everything works fine. By the way, I'm using red.xml and Eclipse IDE.

Thank you in advance!

Regards,
Ritz Ragel


Tatu Aalto

unread,
Aug 16, 2020, 6:27:59 AM8/16/20
to ritz...@gmail.com, robotframework-users
Hi

It would seem that Selenium can find the Chrome installation from the Jenkins node. Selenium is picky about the browser and browser must be installed to the default location on your operating system.

-Tatu
Send from my mobile

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/9902c5cb-db25-4749-981f-dd1dc1656b49n%40googlegroups.com.

Ritz Kevin Ragel

unread,
Aug 18, 2020, 3:05:29 AM8/18/20
to robotframework-users
Hi Tatu,

Thanks for the response. I will check on that.


- Ritz

Reply all
Reply to author
Forward
0 new messages