Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
POM_page_factory_exercise
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shaphen Pangburn
POM_page_factory_exercise
Commits
411e42e8
Commit
411e42e8
authored
Apr 14, 2021
by
Shaphen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary imports in files
parent
1449b269
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
AccountSettingsPage.java
...um/pompagefactory/practice/pages/AccountSettingsPage.java
+0
-1
LoginPage.java
...va/com/nisum/pompagefactory/practice/pages/LoginPage.java
+1
-2
TestConfirmAccountDetails.java
...pagefactory/practice/tests/TestConfirmAccountDetails.java
+1
-3
No files found.
src/main/java/com/nisum/pompagefactory/practice/pages/AccountSettingsPage.java
View file @
411e42e8
package
com
.
nisum
.
pompagefactory
.
practice
.
pages
;
import
com.nisum.pompagefactory.practice.pages.HomePage
;
import
org.openqa.selenium.By
;
import
org.openqa.selenium.WebDriver
;
import
org.openqa.selenium.WebElement
;
...
...
src/main/java/com/nisum/pompagefactory/practice/pages/LoginPage.java
View file @
411e42e8
package
com
.
nisum
.
pompagefactory
.
practice
.
pages
;
import
com.nisum.pompagefactory.practice.pages.HomePage
;
import
org.openqa.selenium.By
;
import
org.openqa.selenium.WebDriver
;
import
org.openqa.selenium.WebElement
;
...
...
@@ -23,7 +22,7 @@ public class LoginPage {
public
WebElement
getUserPassword
()
{
return
driver
.
findElement
(
By
.
id
(
"label-password"
));
}
public
WebElement
getSubmitButton
()
{
return
driver
.
findElement
(
By
.
id
(
"btnSignIn"
));
}
public
void
loginUser
(
String
username
,
String
password
)
throws
InterruptedException
{
public
void
loginUser
(
String
username
,
String
password
)
{
WebDriverWait
wait
=
new
WebDriverWait
(
driver
,
5
);
// enter credentials
...
...
src/test/java/com/nisum/pompagefactory/practice/tests/TestConfirmAccountDetails.java
View file @
411e42e8
...
...
@@ -8,18 +8,16 @@ import com.nisum.pompagefactory.practice.PropertyValues;
import
org.junit.jupiter.api.Assertions
;
import
org.junit.jupiter.api.Test
;
import
org.openqa.selenium.WebDriver
;
import
org.openqa.selenium.chrome.ChromeDriver
;
import
org.openqa.selenium.support.ui.ExpectedConditions
;
import
org.openqa.selenium.support.ui.WebDriverWait
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.Map
;
public
class
TestConfirmAccountDetails
{
@Test
public
void
testAccountSettingsInformation
()
throws
InterruptedException
,
IOException
{
public
void
testAccountSettingsInformation
()
throws
IOException
{
// get application.properties values and set WebDriver properties
PropertyValues
properties
=
new
PropertyValues
();
Map
<
String
,
String
>
props
=
properties
.
getPropValues
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment