Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
9ffe6c38
Commit
9ffe6c38
authored
4 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
no-jira: fix patched selenium tests
parent
0d4161dd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/org/olat/selenium/page/graphene/OOGraphene.java
+28
-1
28 additions, 1 deletion
...test/java/org/olat/selenium/page/graphene/OOGraphene.java
with
28 additions
and
1 deletion
src/test/java/org/olat/selenium/page/graphene/OOGraphene.java
+
28
−
1
View file @
9ffe6c38
...
...
@@ -303,6 +303,12 @@ public class OOGraphene {
OOGraphene
.
waitingALittleLonger
();
}
/**
* The method waits for the element specified by the by selector.
*
* @param by The selector
* @param browser The browser
*/
public
static
void
moveTo
(
By
by
,
WebDriver
browser
)
{
waitElement
(
by
,
browser
);
WebElement
el
=
browser
.
findElement
(
by
);
...
...
@@ -322,9 +328,20 @@ public class OOGraphene {
scrollTo
(
By
.
id
(
"o_top"
),
browser
);
}
/**
* The method doesn't wait for the element.
*
* @param by The selector
* @param browser The browser
*/
public
static
void
moveTop
(
WebDriver
browser
)
{
By
topBy
=
By
.
id
(
"o_top"
);
moveTo
(
topBy
,
browser
);
scrollTo
(
topBy
,
browser
);
WebElement
el
=
browser
.
findElement
(
topBy
);
new
Actions
(
browser
)
.
moveToElement
(
el
)
.
pause
(
moveToPause
)
.
perform
();
}
public
static
final
void
waitTinymce
(
WebDriver
browser
)
{
...
...
@@ -578,6 +595,11 @@ public class OOGraphene {
waitBusy
(
browser
);
}
/**
* Useful method to close error messages.
*
* @param browser The browser
*/
public
static
final
void
closeErrorBox
(
WebDriver
browser
)
{
By
errorBoxBy
=
By
.
cssSelector
(
".modal-body.alert.alert-danger"
);
waitElement
(
errorBoxBy
,
browser
);
...
...
@@ -587,6 +609,11 @@ public class OOGraphene {
waitModalDialogDisappears
(
browser
);
}
/**
* Useful method to close warning messages.
*
* @param browser The browser
*/
public
static
final
void
closeWarningBox
(
WebDriver
browser
)
{
By
errorBoxBy
=
By
.
cssSelector
(
".modal-body.alert.alert-warning"
);
waitElement
(
errorBoxBy
,
browser
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment