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
1449b269
Commit
1449b269
authored
Apr 14, 2021
by
Shaphen Pangburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change application properties due to change in account info on client side
parent
9feaba17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
application.properties
src/main/resources/application.properties
+2
-2
TestConfirmAccountDetailsSingleClass.java
.../practice/tests/TestConfirmAccountDetailsSingleClass.java
+4
-4
No files found.
src/main/resources/application.properties
View file @
1449b269
firstname
=
Chef
firstname
=
Chef
lastname
=
Koo
lastname
=
Koo
email
=
zackroc
@gmail.com
email
=
lashonlife
@gmail.com
password
=
password123
password
=
password123
phone
=
510
30636
56
phone
=
510
92534
56
src/test/java/com/nisum/pompagefactory/practice/tests/TestConfirmAccountDetailsSingleClass.java
View file @
1449b269
...
@@ -10,13 +10,13 @@ public class TestConfirmAccountDetailsSingleClass {
...
@@ -10,13 +10,13 @@ public class TestConfirmAccountDetailsSingleClass {
@Test
@Test
public
void
testSafewayLogin
()
throws
InterruptedException
{
public
void
testSafewayLogin
()
throws
InterruptedException
{
//
s
etup
//
S
etup
System
.
setProperty
(
"webdriver.chrome.driver"
,
"/Users/spangburn/drivers/chromedriver"
);
System
.
setProperty
(
"webdriver.chrome.driver"
,
"/Users/spangburn/drivers/chromedriver"
);
WebDriver
driver
=
new
ChromeDriver
();
WebDriver
driver
=
new
ChromeDriver
();
driver
.
get
(
"https://www.safeway.com/"
);
driver
.
get
(
"https://www.safeway.com/"
);
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
);
//
n
avigate Sign In
//
N
avigate Sign In
WebElement
signInDropdown
=
driver
.
findElement
(
By
.
linkText
(
"Sign In / Up"
));
WebElement
signInDropdown
=
driver
.
findElement
(
By
.
linkText
(
"Sign In / Up"
));
signInDropdown
.
click
();
signInDropdown
.
click
();
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
);
...
@@ -24,12 +24,12 @@ public class TestConfirmAccountDetailsSingleClass {
...
@@ -24,12 +24,12 @@ public class TestConfirmAccountDetailsSingleClass {
signInButton
.
click
();
signInButton
.
click
();
Thread
.
sleep
(
2000
);
Thread
.
sleep
(
2000
);
//
l
ogin
//
L
ogin
WebElement
userEmail
=
driver
.
findElement
(
By
.
id
(
"label-email"
));
WebElement
userEmail
=
driver
.
findElement
(
By
.
id
(
"label-email"
));
WebElement
userPassword
=
driver
.
findElement
(
By
.
id
(
"label-password"
));
WebElement
userPassword
=
driver
.
findElement
(
By
.
id
(
"label-password"
));
WebElement
trySignIn
=
driver
.
findElement
(
By
.
id
(
"btnSignIn"
));
WebElement
trySignIn
=
driver
.
findElement
(
By
.
id
(
"btnSignIn"
));
userEmail
.
sendKeys
(
"
zackroc
@gmail.com"
);
userEmail
.
sendKeys
(
"
lashonlife
@gmail.com"
);
userPassword
.
sendKeys
(
"password123"
);
userPassword
.
sendKeys
(
"password123"
);
trySignIn
.
click
();
trySignIn
.
click
();
Thread
.
sleep
(
3000
);
Thread
.
sleep
(
3000
);
...
...
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