FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ionic/core/scripts/e2e/utils.js at css-variable-docs-test · ModusCreateOrg/ionic · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ModusCreateOrg
/
ionic
Public
forked from
ionic-team/ionic-framework
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ionic
/
core
/
scripts
/
e2e
/
utils.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (23 loc) · 834 Bytes
Breadcrumbs
ionic
/
core
/
scripts
/
e2e
/
utils.js
Copy path
File metadata and controls
27 lines (23 loc) · 834 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const
{
By
,
until
}
=
require
(
'selenium-webdriver'
)
;
async
function
getElement
(
driver
,
selector
)
{
driver
.
wait
(
until
.
elementLocated
(
By
.
css
(
selector
)
)
)
;
const
element
=
driver
.
findElement
(
By
.
css
(
selector
)
)
;
await
driver
.
wait
(
until
.
elementIsVisible
(
driver
.
findElement
(
By
.
css
(
selector
)
)
)
)
;
return
element
;
}
async
function
waitAndGetElementById
(
driver
,
selector
)
{
driver
.
wait
(
until
.
elementLocated
(
By
.
id
(
selector
)
)
)
;
const
element
=
driver
.
findElement
(
By
.
id
(
selector
)
)
;
await
driver
.
wait
(
until
.
elementIsVisible
(
driver
.
findElement
(
By
.
id
(
selector
)
)
)
)
;
return
element
;
}
function
waitForTransition
(
duration
)
{
return
new
Promise
(
resolve
=>
{
setTimeout
(
resolve
,
duration
)
;
}
)
}
module
.
exports
=
{
getElement
:
getElement
,
waitForTransition
:
waitForTransition
,
waitAndGetElementById
:
waitAndGetElementById
}
Back
|
FazBrowse Home
|
New Git URL