Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6161767
Page.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
701 B
Referenced Files
None
Subscribers
None
Page.js
View Options
'use strict'
;
const
querystring
=
require
(
'querystring'
);
/**
* Based on https://webdriver.io/docs/pageobjects
*/
class
Page
{
/**
* Navigate the browser to a given page.
*
* @since 1.0.0
* @see <https://webdriver.io/docs/api/browser/url>
* @param {string} title Page title
* @param {Object} [query] Query parameter
* @param {string} [fragment] Fragment parameter
* @return {void} This method runs a browser command.
*/
async
openTitle
(
title
,
query
=
{},
fragment
=
''
)
{
query
.
title
=
title
;
await
browser
.
url
(
browser
.
config
.
baseUrl
+
'/index.php?'
+
querystring
.
stringify
(
query
)
+
(
fragment
?
(
'#'
+
fragment
)
:
''
)
);
}
}
module
.
exports
=
Page
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 8 2026, 10:55 (7 w, 19 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3b/00/191fb8fb2d840f306e7261e754b3
Default Alt Text
Page.js (701 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment