INNER CODE UNIT · JavaScript

setProgressReporter

figranium/figranium · src/agent/figranite/index.js:39

const setProgressReporter = (reporter) => {
    progressReporter = reporter;
};

const reportProgress = (runId, payload) => {
    if (!runId || typeof progressReporter !== 'function') return;
    try {
        progressReporter(runId, payload);
    } catch {
        // ignore
    }
};

const TEST_INPUT_FIELDS = [
    'selector', 'value', 'key', 'conditionVar', 'conditionVarType', 'conditionOp',
    'conditionValue', 'typeMode', 'method', 'headers', 'body', 'timeout', 'captchaType',
    'cabinetId', 'markAsUploaded', 'clickType', 'targetSelector',
];

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…