* valid-jsdoc replaced with jsdoc plugin * New /selenium config Change-Id: I471eebac0312cb25c539c3f6a3ecfc7cfd4ed8d6
22 lines
503 B
JavaScript
22 lines
503 B
JavaScript
'use strict';
|
|
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
class DeletePage extends Page {
|
|
get reason() { return $( '#wpReason' ); }
|
|
get watch() { return $( '#wpWatch' ); }
|
|
get submit() { return $( '#wpConfirmB' ); }
|
|
get displayedContent() { return $( '#mw-content-text' ); }
|
|
|
|
open( title ) {
|
|
super.openTitle( title, { action: 'delete' } );
|
|
}
|
|
|
|
delete( title, reason ) {
|
|
this.open( title );
|
|
this.reason.setValue( reason );
|
|
this.submit.click();
|
|
}
|
|
}
|
|
|
|
module.exports = new DeletePage();
|