stevepryde/thirtyfour

Can I specify the chrome path?

MaoQiankun97 opened this issue · 2 comments

Can I specify the chrome path? like selenium of python version:

options = Options()
options.binary_location = "/path/to/chrome"

Yes, you should be able to do this:

let mut caps = DesiredCapabilities::chrome();
caps.set_binary("/path/to/chrome");

This is just a helper for:

self.add_chrome_option("binary", "/path/to/chrome");

Which is roughly equivalent to the python code here:
https://github.com/SeleniumHQ/selenium/blob/trunk/py/selenium/webdriver/chromium/options.py#L170

Let me know if this doesn't work.

It works! Thank you!