Not sure if it'll work similarly for Firefox, but I for Chromedriver I put
it inside my project and did this:
System.setProperty('webdriver.chrome.driver',
'src/test/resources/chromedriver')
driver = { new ChromeDriver() }
On Monday, October 28, 2019 at 2:20:48 PM UTC-5, GebUser wrote:
>
> hi,
>
> how do you set Portable Firefox as default browser for your Geb tests? I
> tried the following in GebConfig.groovy and it still picked up the default
> firefox binary location "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
>
> .
>
>
> firefox {
>
> FirefoxProfile profile = new FirefoxProfile();
>
>
> FirefoxOptions options = new FirefoxOptions();
> options.setCapability("javascriptEnabled", true);
> options.setCapability("acceptInsecureCerts", true);
> driver = {
> def tmpDriver = new FirefoxDriver(new
> GeckoDriverService.Builder().usingFirefoxBinary(new FirefoxBinary(new
> File("C:\\Users\\rnatesan\\Downloads\\FirefoxPortable" +
> "\\FirefoxPortable.exe"))).build(), options)
> tmpDriver.manage().window().maximize()
> return tmpDriver }
>
>
>
>
>
>
> Thanks,
>
> Ramesh
>
>
--
You received this message because you are subscribed to the Google Groups "Geb
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/c00257fd-0bc7-4e12-b92e-47fd637fe086%40googlegroups.com.