wiki.techinc.nl/tests/selenium/pageobjects/delete.page.js
Timo Tijhof 776321bf1a selenium: Remove deprecated legacy methods
These are from 2018, prior to introducing wdio-mediawiki in
commit 16a4d9da7b. Some extensions referenced these pageobjects
files through escalating "../../" references.

None of these are seen in Codesearch anymore, as well as no
references to these deprecated methods by other means.

Change-Id: Idbc373f13f9767cecd6404922b5c9773d796dda5
2019-09-29 02:31:51 +00:00

20 lines
488 B
JavaScript

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();