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
49f5c892
Commit
49f5c892
authored
11 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-531: fix functional login method for selenium
parent
9bbde2cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/org/olat/util/FunctionalUtil.java
+3
-7
3 additions, 7 deletions
src/test/java/org/olat/util/FunctionalUtil.java
with
3 additions
and
7 deletions
src/test/java/org/olat/util/FunctionalUtil.java
+
3
−
7
View file @
49f5c892
...
...
@@ -307,11 +307,8 @@ public class FunctionalUtil {
*/
public
void
loadPage
(
Selenium
browser
,
String
page
){
/* create url */
StringBuffer
urlBuffer
=
new
StringBuffer
();
urlBuffer
.
append
(
deploymentUrl
)
.
append
(
'/'
)
.
append
(
page
);
StringBuilder
urlBuffer
=
new
StringBuilder
();
urlBuffer
.
append
(
deploymentUrl
).
append
(
'/'
).
append
(
page
);
String
url
=
urlBuffer
.
toString
();
...
...
@@ -879,12 +876,11 @@ public class FunctionalUtil {
*/
public
boolean
login
(
Selenium
browser
,
String
username
,
String
password
,
boolean
closeDialogs
){
loadPage
(
browser
,
getLoginPage
());
waitForPageToLoadElement
(
browser
,
"xpath=//button[@id='o_fiooolat_login_button']"
);
/* fill in login form */
browser
.
type
(
"id=o_fiooolat_login_name"
,
username
);
browser
.
type
(
"id=o_fiooolat_login_pass"
,
password
);
waitForPageToLoadElement
(
browser
,
"xpath=//button[@id='o_fiooolat_login_button']"
);
browser
.
click
(
"xpath=//button[@id='o_fiooolat_login_button']"
);
waitForPageToLoad
(
browser
,
DEFAULT_WAIT_LIMIT
);
...
...
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