-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
- Running Selenium server locally on port 4444
- Running Browsermob on port 8080 (default)
- Using
selenium-webdrivernpm package to run my selenium tests for the Firefox browser - Calling the
cbHARby settingcaptureContent,captureHeadersandcaptureBinaryContenttotrue. - Running a local express server and pointing the proxy and selenium to that server: 127.0.0.1:9191 (I even tried a regular domain like yahoo.com)
No matter what I try, the entries are always empty.
Here's a code snippet:
proxy.cbHAR({
name: "http://" + LOCAL_SERVER_URL,
captureContent: true,
captureHeaders: true,
captureBinaryContent: true
},
runSeleniumScripts,
function (error, data) {
console.log("DATA:", data);
// NOTE: data.entries is always an empty array!!
});
function runSeleniumScripts(proxy, callback) {
var driver =
new selenium.Builder()
.usingServer('http://localhost:4444/wd/hub')
.forBrowser('firefox')
.setProxy(proxy)
.build();
driver.get("http://" + LOCAL_SERVER_URL).then(callback).then(done);
}Everettss
Metadata
Metadata
Assignees
Labels
No labels