Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5982277
edit.page.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
edit.page.js
View Options
import
Page
from
'wdio-mediawiki/Page.js'
;
class
EditPage
extends
Page
{
async
openTemplateInsertionDialog
()
{
await
super
.
openTitle
(
'TemplateData-favoriting-templates'
,
{
veaction
:
'edit'
,
hidewelcomedialog
:
1
,
vehidebetadialog
:
1
,
cxhidebetapopup
:
1
}
);
try
{
await
this
.
insertMenu
.
waitForDisplayed
();
}
catch
(
e
)
{
return
false
;
}
await
this
.
insertMenu
.
click
();
await
this
.
insertTemplate
.
click
();
return
true
;
}
get
insertMenu
()
{
return
$
(
'.ve-ui-toolbar-group-insert'
);
}
get
insertTemplate
()
{
return
$
(
'.oo-ui-tool-name-transclusion'
);
}
get
dialogHeader
()
{
return
$
(
'.oo-ui-window-head .oo-ui-processDialog-location'
);
}
get
templateSearchFieldInput
()
{
return
$
(
'.ext-templatedata-search-field .oo-ui-inputWidget-input'
);
}
get
emptyListLabel
()
{
return
$
(
'.ext-templatedata-TemplateList-empty .oo-ui-labelElement-label'
);
}
get
searchResultsMenu
()
{
return
$
(
'.ext-templatedata-search-field .oo-ui-lookupElement-menu'
);
}
getSearchResultFavoriteButton
(
num
)
{
return
$
(
'.ext-templatedata-search-field .oo-ui-lookupElement-menu > :nth-child( '
+
num
+
' ) .oo-ui-buttonElement-button'
);
}
get
templateListMenuItems
()
{
return
$$
(
'.ext-templatedata-TemplateList .ext-templatedata-TemplateMenuItem'
);
}
}
export
default
new
EditPage
();
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sat, Oct 3, 22:17 (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c0/5d/54ff96a1affb28d3039cba2eef86
Default Alt Text
edit.page.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment