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

In This Topic
    HttpWatchCRXFile Property (Edge)
    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 Edge Extension (CRX) file (e.g. C:\Program Files (x86)\HttpWatch\HttpWatchForEdge.crx)

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

    Example
    HttpWatchCRXFile  property
    Copy Code
    using Microsoft.Edge.SeleniumTools;
    using HttpWatch;
    ...
    // Make sure the HttpWatch extension is enabled in the Selenium Edge session by referencing the CRX file
    // e.g. C:\Program Files (x86)\HttpWatch\HttpWatchForEdge.crx
    // The HttpWatchCRXFile property returns the installed location of the CRX file
    var options = new EdgeOptions();
    options.AddExtension(control.Edge.HttpWatchCRXFile);
    // Start the Edge browser session and supply the name of the directory in which you installed
    // msedgedriver.exe from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
    var driver = new EdgeDriver(@"C:\edgedriver_win64", options);
    
    Requirements
     
    See Also