selenium: Upgrade from webdriver v4 to v5
[lhc/web/wiklou.git] / tests / selenium / wdio-mediawiki / RunJobs.js
index 070ad56..f6a1542 100644 (file)
@@ -3,8 +3,8 @@ const MWBot = require( 'mwbot' ),
        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',
@@ -20,7 +20,7 @@ function log( message ) {
 }
 
 function runThroughMainPageRequests( runCount = 1 ) {
-       let page = new Page();
+       const page = new Page();
        log( `through requests to the main page (run ${runCount}).` );
 
        page.openTitle( '' );