Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4135643
main.page.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
674 B
Referenced Files
None
Subscribers
None
main.page.js
View Options
// Example code for Selenium/Explanation/Stack
// https://www.mediawiki.org/wiki/Selenium/Explanation/Stack
'use strict'
;
const
Page
=
require
(
'./page'
);
// baseUrl is required for our continuous integration.
// If you don't have MW_SERVER and MW_SCRIPT_PATH environment variables set
// you can probably hardcode it to something like this:
// const baseUrl = 'http://localhost:8080/wiki/';
const
baseUrl
=
`
${
process
.
env
.
MW_SERVER
}${
process
.
env
.
MW_SCRIPT_PATH
}
/index.php?title=`
;
class
MainPage
extends
Page
{
get
login
()
{
return
$
(
'li#pt-login-2 a'
);
}
async
open
()
{
await
super
.
open
(
`
${
baseUrl
}
Main_Page`
);
}
}
module
.
exports
=
new
MainPage
();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 13:18 (3 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
09/34/84843d2bb08d12e9ce9adcdd2391
Default Alt Text
main.page.js (674 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment