%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/tests/selenium/pageobjects/
Upload File :
Create Path :
Current File : /www/varak.net/wiki.varak.net/tests/selenium/pageobjects/restore.page.js

const Page = require( 'wdio-mediawiki/Page' );

class RestorePage extends Page {
	get reason() { return browser.element( '#wpComment' ); }
	get submit() { return browser.element( '#mw-undelete-submit' ); }
	get displayedContent() { return browser.element( '#mw-content-text' ); }

	open( subject ) {
		super.openTitle( 'Special:Undelete/' + subject );
	}

	restore( subject, reason ) {
		this.open( subject );
		this.reason.setValue( reason );
		this.submit.click();
	}
}

module.exports = new RestorePage();

Zerion Mini Shell 1.0