Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4094485
protect.page.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
629 B
Referenced Files
None
Subscribers
None
protect.page.js
View Options
'use strict'
;
const
Page
=
require
(
'wdio-mediawiki/Page'
);
class
ProtectPage
extends
Page
{
get
reason
()
{
return
$
(
'#mwProtect-reason input'
);
}
get
editProtectSelect
()
{
return
$
(
'#mwProtect-level-edit select'
);
}
get
submit
()
{
return
$
(
'#mw-Protect-submit'
);
}
async
open
(
title
)
{
return
super
.
openTitle
(
title
,
{
action
:
'protect'
}
);
}
async
protect
(
title
,
reason
,
editProtect
)
{
await
this
.
open
(
title
);
await
this
.
reason
.
setValue
(
reason
);
await
this
.
editProtectSelect
.
selectByVisibleText
(
editProtect
);
await
this
.
submit
.
click
();
}
}
module
.
exports
=
new
ProtectPage
();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 18 2026, 13:19 (4 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
08/4c/fb4ceb19c4bc6792f0def6d208b8
Default Alt Text
protect.page.js (629 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment