HttpWatch Automation Reference - Version 15.x
HttpWatch Namespace / Chrome Class / HttpWatchCRXFile Property

In This Topic
    HttpWatchCRXFile Property (Chrome)
    In This Topic
    Public ReadOnly Property HttpWatchCRXFile As String
    public string HttpWatchCRXFile {get;}

    This property contains the full file name of the location of the HttpWatch Chrome Extension (CRX) file (e.g. C:\Program Files (x86)\HttpWatch\HttpWatchForChrome.crx)

    The CRX file location is required when automating Chrome with Selenium to ensure that the HttpWatch extension is loaded.

    HttpWatchCRXFile  property
    Copy Code
    using OpenQA.Selenium.Chrome;
    using HttpWatch;
    // Make sure the HttpWatch extension is enabled in the Selenium Chrome session by referencing the CRX file
    // e.g. C:\Program Files (x86)\HttpWatch\HttpWatchForChrome.crx
    // The HttpWatchCRXFile property returns the installed location of the CRX file
    var options = new ChromeOptions();
    // Start the Chrome browser session
    var driver = new ChromeDriver(options);
    See Also