question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding a new FireFox browser cosntructor

See original GitHub issue

Please add a new FireFox constructor with option and timespan as:

| FirefoxWithProfileAndTimeSpan of Firefox.FirefoxProfile * TimeSpan

This will allow customizing startup option; such as disabling cache, etc.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
galatrashcommented, Dec 3, 2016

The file type.fs contains these:

//browser
type BrowserStartMode =
    | Firefox
    | FirefoxWithProfile of Firefox.FirefoxProfile
    | FirefoxWithPath of string
    | FirefoxWithUserAgent of string
    | FirefoxWithPathAndTimeSpan of string * TimeSpan
    | IE
    | IEWithOptions of IE.InternetExplorerOptions
    | IEWithOptionsAndTimeSpan of IE.InternetExplorerOptions * TimeSpan
    | EdgeBETA
...

and canopy.fs contains

    browser <-
        match b with
        | IE -> new IE.InternetExplorerDriver(ieDir) :> IWebDriver
        | IEWithOptions options -> new IE.InternetExplorerDriver(ieDir, options) :> IWebDriver
        | IEWithOptionsAndTimeSpan(options, timeSpan) -> new IE.InternetExplorerDriver(ieDir, options, timeSpan) :> IWebDriver
...
        | Firefox -> new FirefoxDriver() :> IWebDriver
        | FirefoxWithProfile profile -> new FirefoxDriver(profile) :> IWebDriver
        | FirefoxWithPath path -> new FirefoxDriver(new Firefox.FirefoxBinary(path), Firefox.FirefoxProfile()) :> IWebDriver
        | FirefoxWithUserAgent userAgent -> firefoxWithUserAgent userAgent
        | FirefoxWithPathAndTimeSpan(path, timespan) -> new FirefoxDriver(new Firefox.FirefoxBinary(path), Firefox.FirefoxProfile(), timespan) :> IWebDriver
        | Safari ->new Safari.SafariDriver() :> IWebDriver
...

What I’m asking is another option for starting firefox while specifying some options and timeout. The options will allow me to control the FireFox driver (e.g., disable caching).

0reactions
galatrashcommented, Dec 5, 2016

That’s great. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Worker: Worker() constructor - Web APIs - MDN Web Docs
The Worker() constructor creates a Worker object that executes the script at the specified URL. This script must obey the same-origin ...
Read more >
constructor - JavaScript - MDN Web Docs - Mozilla
The constructor method is a special method of a class for creating and initializing an object instance of that class.
Read more >
Set() constructor - JavaScript - MDN Web Docs - Mozilla
The Set() constructor creates Set objects. ... If an iterable object is passed, all of its elements will be added to the new...
Read more >
XMLHttpRequest() constructor - Web APIs - MDN Web Docs
The XMLHttpRequest() constructor creates a new XMLHttpRequest. ... Firefox 16 added a non-standard parameter to the constructor that can ...
Read more >
CSSMathSum() constructor - Web APIs - MDN Web Docs
The CSSMathSum() constructor creates a new CSSMathSum object which creates a new CSSKeywordValue object which represents the result obtained ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found