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

In This Topic
    HttpWatchCRXFile Property
    In This Topic
    Syntax
    'Declaration
     
    Public ReadOnly Property HttpWatchCRXFile As String
    public string HttpWatchCRXFile {get;}
    Remarks

    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.

    Example
    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();
    options.AddExtension(control.Chrome.HttpWatchCRXFile);
    // Start the Chrome browser session
    var driver = new ChromeDriver(options);
    
    Requirements
     
    See Also