14 lines
317 B
JavaScript
14 lines
317 B
JavaScript
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
||
|
|
|
||
|
|
class WatchablePage extends Page {
|
||
|
|
|
||
|
|
get confirmWatch() { return browser.element( '#mw-content-text button[type="submit"]' ); }
|
||
|
|
|
||
|
|
watch( title ) {
|
||
|
|
super.openTitle( title, { action: 'watch' } );
|
||
|
|
this.confirmWatch.click();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = new WatchablePage();
|