1 2 3 4 5 6 7 8 9 10 11 12 13
'use strict'; const Page = require( 'wdio-mediawiki/Page' ); class NotificationsPage extends Page { get notificationHeading() { return $( '#firstHeading' ); } open() { super.openTitle( 'Special:Notifications', { uselang: 'en' } ); } } module.exports = new NotificationsPage();