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
c5924ded
Commit
c5924ded
authored
5 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
no-jira: changes to LTI selenium test
parent
9711077a
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/course/LTIPage.java
+12
-3
12 additions, 3 deletions
src/test/java/org/olat/selenium/page/course/LTIPage.java
with
12 additions
and
3 deletions
src/test/java/org/olat/selenium/page/course/LTIPage.java
+
12
−
3
View file @
c5924ded
...
@@ -44,6 +44,12 @@ public class LTIPage {
...
@@ -44,6 +44,12 @@ public class LTIPage {
this
.
browser
=
browser
;
this
.
browser
=
browser
;
}
}
/**
* A successful start will switch the browser to the iframe. If you need
* to go back to the LMS, you need to switch back to the default content.
*
* @return Itself
*/
public
LTIPage
start
()
{
public
LTIPage
start
()
{
try
{
try
{
By
startBy
=
By
.
xpath
(
"//div[contains(@class,'o_button_group')]/a[contains(@onclick,'start')]"
);
By
startBy
=
By
.
xpath
(
"//div[contains(@class,'o_button_group')]/a[contains(@onclick,'start')]"
);
...
@@ -55,12 +61,10 @@ public class LTIPage {
...
@@ -55,12 +61,10 @@ public class LTIPage {
OOGraphene
.
waitingALittleLonger
();
OOGraphene
.
waitingALittleLonger
();
WebElement
iframe
=
browser
.
findElement
(
iframeBy
);
WebElement
iframe
=
browser
.
findElement
(
iframeBy
);
WebDriver
iframeB
rowser
=
browser
.
switchTo
().
frame
(
iframe
);
b
rowser
=
browser
.
switchTo
().
frame
(
iframe
);
By
launchedBy
=
By
.
xpath
(
"//p[contains(text(),'Launch Validated.')]"
);
By
launchedBy
=
By
.
xpath
(
"//p[contains(text(),'Launch Validated.')]"
);
OOGraphene
.
waitElement
(
launchedBy
,
browser
);
OOGraphene
.
waitElement
(
launchedBy
,
browser
);
iframeBrowser
.
switchTo
().
defaultContent
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
OOGraphene
.
takeScreenshot
(
"LTIPage_start"
,
browser
);
OOGraphene
.
takeScreenshot
(
"LTIPage_start"
,
browser
);
throw
e
;
throw
e
;
...
@@ -96,5 +100,10 @@ public class LTIPage {
...
@@ -96,5 +100,10 @@ public class LTIPage {
Assert
.
assertTrue
(
success
);
Assert
.
assertTrue
(
success
);
return
this
;
return
this
;
}
}
public
LTIPage
backToOpenOLAT
()
{
browser
=
browser
.
switchTo
().
defaultContent
();
return
this
;
}
}
}
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