Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4129247
viewlist.page.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
820 B
Referenced Files
None
Subscribers
None
viewlist.page.js
View Options
'use strict'
;
const
Page
=
require
(
'wdio-mediawiki/Page'
);
class
ViewListPage
extends
Page
{
get
title
()
{
return
$
(
'#firstHeading'
);
}
get
newFilterButton
()
{
return
$
(
'.oo-ui-buttonElement a'
);
}
get
filterSavedNotice
()
{
return
$
(
'.cdx-message--success'
);
}
async
savedFilterID
()
{
const
successElement
=
await
this
.
filterSavedNotice
;
const
succesMsg
=
await
successElement
.
getHTML
();
const
regexp
=
/\/history\/(\d+)\//
;
return
regexp
.
exec
(
succesMsg
)[
1
];
}
async
savedFilterHistoryID
()
{
const
successElement
=
await
this
.
filterSavedNotice
;
const
succesMsg
=
await
successElement
.
getHTML
();
const
regexp
=
/\/diff\/prev\/(\d+)/
;
return
regexp
.
exec
(
succesMsg
)[
1
];
}
open
()
{
super
.
openTitle
(
'Special:AbuseFilter'
);
}
}
module
.
exports
=
new
ViewListPage
();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 09:43 (2 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bb/6f/66f26a5ae6b2be757af9e29d9ed3
Default Alt Text
viewlist.page.js (820 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment