%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/preferences.page.js

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

class PreferencesPage extends Page {
	get realName() { return browser.element( '#mw-input-wprealname' ); }
	get save() { return browser.element( '#prefcontrol' ); }

	open() {
		super.openTitle( 'Special:Preferences' );
	}

	changeRealName( realName ) {
		this.open();
		this.realName.setValue( realName );
		this.save.click();
	}
}

module.exports = new PreferencesPage();

Zerion Mini Shell 1.0