PulsarRPA icon indicating copy to clipboard operation
PulsarRPA copied to clipboard

User specified chrome path

Open galaxyeye opened this issue 2 years ago • 3 comments

Pulsar have to know the chrome home to play with it, a user specified path is required.

By default, pulsar searches the following paths for google chrome:

val CHROME_BINARY_SEARCH_PATHS = arrayOf( "/usr/bin/google-chrome-stable", "/usr/bin/google-chrome", "/opt/google/chrome/chrome", "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe", "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary", "/Applications/Chromium.app/Contents/MacOS/Chromium", "/usr/bin/chromium", "/usr/bin/chromium-browser" )

galaxyeye avatar Apr 28 '22 01:04 galaxyeye

There is already a system property "browser.chrome.path" to specify the chrome path:

val path = System.getProperty(CapabilityTypes.BROWSER_CHROME_PATH);

platonai avatar Apr 28 '22 11:04 platonai

On Windows 7:

C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe

galaxyeye avatar May 10 '22 10:05 galaxyeye

Pulsar-1.10.x supports external config file where the chrome path can be put in.

platonai avatar May 17 '22 12:05 platonai