MAINPAGE_REQUESTS_MAX_RUNS = 10; // (arbitrary) safe-guard against endless execution
function getJobCount() {
- let bot = new MWBot( {
- apiUrl: `${browser.options.baseUrl}/api.php`
+ const bot = new MWBot( {
+ apiUrl: `${browser.config.baseUrl}/api.php`
} );
return bot.request( {
action: 'query',
}
function runThroughMainPageRequests( runCount = 1 ) {
- let page = new Page();
+ const page = new Page();
log( `through requests to the main page (run ${runCount}).` );
page.openTitle( '' );