Commit 1449b269 authored by Shaphen Pangburn's avatar Shaphen Pangburn

Change application properties due to change in account info on client side

parent 9feaba17
firstname=Chef firstname=Chef
lastname=Koo lastname=Koo
email=zackroc@gmail.com email=lashonlife@gmail.com
password=password123 password=password123
phone=5103063656 phone=5109253456
...@@ -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 {
// setup // Setup
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);
// navigate Sign In // Navigate 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);
// login // Login
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment