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