swd-recorder icon indicating copy to clipboard operation
swd-recorder copied to clipboard

Binary file path for any browser (or customized path)

Open MonoAutomation opened this issue 9 years ago • 3 comments

Hello,

It's just my thought and i have implemented same thing in the page recorder to locate customized path of the browser.

  1. i have added two controls (1.check box and edit filed) when user selects browser to start, if selects check box and entering the binary path then tool will tries to identifying the customized path other wise it will take default installation location.

  2. Added few line of code in webdriverUtils.cs under "StartEmbededWebDriver" method private static IWebDriver StartEmbededWebDriver(WebDriverOptions browserOptions) { switch (browserOptions.BrowserName) {

              case WebDriverOptions.browser_Firefox:
    

    if (browserOptions.BinaryURL != "" && browserOptions.IsBinary) {
    FirefoxBinary ffBinary = new FirefoxBinary(browserOptions.BinaryURL); FirefoxProfile firefoxProfile = new FirefoxProfile(); return new FirefoxDriver(ffBinary, firefoxProfile); }else { return new FirefoxDriver(); }

Note: i hope we can use same logic for other browsers as well.

  1. i have added the below 2 controls as,

customizedpath

if i am not correct ,please excuse me and tune for better solution.

MonoAutomation avatar Jan 07 '16 12:01 MonoAutomation

Hi Ravi,

Thank you for sharing your ideas. In the future release, there will be a way to specify the Firefox binary path using the configuration profiles. The users will be enabled to configure additional browser capabilities and create multiple profiles even for same browser type, but with different settings. The firefox binary path will be one among those settings. Unfortunately every "local" WebDriver's browser type uses its own way to configure the instance and I need to implement this for each browser (FF, Chrome, IE, PahntomJS, Edge) so I am not sure when the next release will happen.

I thank you for sharing your experience and ideas!

  • Dmytro

dzharii avatar Jan 08 '16 06:01 dzharii

Thank you , dzharii.

MonoAutomation avatar Jan 08 '16 11:01 MonoAutomation

Hello,

Any update on the progress for this?

Thanks

dwelsh1 avatar Jan 26 '17 15:01 dwelsh1