You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep encountering this triggerExport is not defined error when i'm trying to execute my automation using selenium in getting the HAR files. Does anyone here have worked with HAR + Selenium using Firefox 61?
Here's my setup
Selenium 2.53.0
Geckodriver v1.19.1
Firefox 61.0b13
Here's my file.py
def create_har_file(self, log_path=getcwd()):
script = '''
function createHAR() {
var options = {
token: "careengine",
fileName: "CE_HAR %Y, %H:%M:%S" // Name of the file
};
HAR.triggerExport(options).then(result => {
// The local file is available now, result.data is null since options.getData wasn't set.
});
};
// If HAR isn't yet defined, wait for the `har-api-ready` event.
// Otherwise trigger the export right away.
if (typeof HAR === 'undefined') {
addEventListener('har-api-ready', triggerExport, false);
} else {
createHAR();
};
The text was updated successfully, but these errors were encountered:
I keep encountering this triggerExport is not defined error when i'm trying to execute my automation using selenium in getting the HAR files. Does anyone here have worked with HAR + Selenium using Firefox 61?
Here's my setup
Selenium 2.53.0
Geckodriver v1.19.1
Firefox 61.0b13
Here's my file.py
def create_har_file(self, log_path=getcwd()):
script = '''
function createHAR() {
var options = {
token: "careengine",
fileName: "CE_HAR %Y, %H:%M:%S" // Name of the file
};
The text was updated successfully, but these errors were encountered: