Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/tests/selenium/wdio-mediawiki/CreateAccountPage.js
Ðазад
'use strict'; const Page = require( './Page' ); const Util = require( 'wdio-mediawiki/Util' ); class CreateAccountPage extends Page { get username() { return $( '#wpName2' ); } get password() { return $( '#wpPassword2' ); } get confirmPassword() { return $( '#wpRetype' ); } get create() { return $( '#wpCreateaccount' ); } get heading() { return $( '#firstHeading' ); } get tempPasswordInput() { return $( '#wpCreateaccountMail' ); } get reasonInput() { return $( '#wpReason' ); } open() { super.openTitle( 'Special:CreateAccount' ); } /** * Navigate to Special:CreateAccount, then fill out and submit the account creation form. * * @param {string} username * @param {string} password * @return {Promise<void>} */ async createAccount( username, password ) { await this.open(); await this.submitForm( username, password ); } /** * Fill out and submit the account creation form on Special:CreateAccount. * The browser is assumed to have already navigated to this page. * * @param {string} username * @param {string} password * @return {Promise<void>} */ async submitForm( username, password ) { await Util.waitForModuleState( 'mediawiki.special.createaccount', 'ready', 10000 ); await this.username.setValue( username ); await this.password.setValue( password ); await this.confirmPassword.setValue( password ); await this.create.click(); } } module.exports = new CreateAccountPage();
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка