* valid-jsdoc replaced with jsdoc plugin * New /selenium config Change-Id: I471eebac0312cb25c539c3f6a3ecfc7cfd4ed8d6
15 lines
318 B
JavaScript
15 lines
318 B
JavaScript
'use strict';
|
|
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
class WatchablePage extends Page {
|
|
|
|
get confirmWatch() { return $( '#mw-content-text button[type="submit"]' ); }
|
|
|
|
watch( title ) {
|
|
super.openTitle( title, { action: 'watch' } );
|
|
this.confirmWatch.click();
|
|
}
|
|
}
|
|
|
|
module.exports = new WatchablePage();
|