}
HeadlessApi.MonitoringOnOptions options = HeadlessApi.MonitoringOnOptions.createObject().cast();
options.clearData();
log("starting monitoring...");
HeadlessApi.startMonitoring(options, new MonitoringCallback() {
public void callback() {
try {
log("monitoring is on. running test...");
runTest();
} catch (JavaScriptException e) {