blob: 4c3077a2385a4d7fdf548bff5320a8947aaf49d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict';
const Page = require( 'wdio-mediawiki/Page' );
class ViewImportPage extends Page {
get importData() { return $( 'textarea[name="wpImportText"]' ); }
get submit() { return $( 'button[type="submit"]' ); }
importText( text ) {
this.open();
this.importData.setValue( text );
this.submit.click();
}
open() {
super.openTitle( 'Special:AbuseFilter/import' );
}
}
module.exports = new ViewImportPage();
|