[opensuse] chrome options?
I am working on setting up a new API in python, and part of getting it set up is that I need to authenticate using chrome and selenium. Here is a section of the authentication program that I am running into a headache with: options = webdriver.ChromeOptions() options.binary_location = "/Applications/Chrome.app/Contents/MacOS/Google Chrome" chrome_driver_binary = "/usr/lib64/chromium/chromedriver" driver = webdriver.Chrome(chrome_driver_binary, chrome_options=options) This was originally written for a Mac OS, so I had to change the directory for the chromedriver binary to the correct location on my machine. However, I don't really know what to put for the equivalent of where to look for chrome options. Having never used selenium before or what it is really all about, I don't even really know what chrome options are, and I am hoping this is just a minor point to get past the authentication portion of the api. I don't plan on using selenium for any further development of the api, but it seems that I have to for this small portion of what I am working on. Anyone have an idea of what I need to do about setting the location for Chrome options here in openSUSE tumbleweed? -- George Box: 42.3 | Plasma 5 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: TW | Plasma 5 | AMD FX 7TH GEN | 64 | 32GB Laptop #2: TW | Plasma 5 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/31/2018 03:56 PM, George from the tribe wrote:
options = webdriver.ChromeOptions() options.binary_location = "/Applications/Chrome.app/Contents/MacOS/Google Chrome" chrome_driver_binary = "/usr/lib64/chromium/chromedriver" driver = webdriver.Chrome(chrome_driver_binary, chrome_options=options)
This was originally written for a Mac OS, so I had to change the directory for the chromedriver binary to the correct location on my machine.
"/Applications/Chrome.app/Contents/MacOS/Google Chrome" Looks quite suspicious. Surely that's not where it goes on Linux? I don't use Chrome, so you will have to check the current package to know where to look for chrome options, but I suspect for per-user options it would be ~/.config/chrome (or something similar). Globally, it really depends on where it gets put. Could be /usr/share or /usr/lib64. If it's a library, then the latter, if it just some text or config, the likely /usr/share. Sorry not more helpful. Do we have an rpm for that? I'd just rpm -qpl chrome...rpm > somefile and then browse somefile for where the parts are hidden. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
David C. Rankin
-
George from the tribe