Commit 411e42e8 authored by Shaphen's avatar Shaphen

Remove unnecessary imports in files

parent 1449b269
package com.nisum.pompagefactory.practice.pages; package com.nisum.pompagefactory.practice.pages;
import com.nisum.pompagefactory.practice.pages.HomePage;
import org.openqa.selenium.By; import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement; import org.openqa.selenium.WebElement;
......
package com.nisum.pompagefactory.practice.pages; package com.nisum.pompagefactory.practice.pages;
import com.nisum.pompagefactory.practice.pages.HomePage;
import org.openqa.selenium.By; import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement; import org.openqa.selenium.WebElement;
...@@ -23,7 +22,7 @@ public class LoginPage { ...@@ -23,7 +22,7 @@ public class LoginPage {
public WebElement getUserPassword() { return driver.findElement(By.id("label-password")); } public WebElement getUserPassword() { return driver.findElement(By.id("label-password")); }
public WebElement getSubmitButton() { return driver.findElement(By.id("btnSignIn")); } 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); WebDriverWait wait = new WebDriverWait(driver, 5);
// enter credentials // enter credentials
......
...@@ -8,18 +8,16 @@ import com.nisum.pompagefactory.practice.PropertyValues; ...@@ -8,18 +8,16 @@ import com.nisum.pompagefactory.practice.PropertyValues;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.support.ui.WebDriverWait;
import java.io.IOException; import java.io.IOException;
import java.util.List;
import java.util.Map; import java.util.Map;
public class TestConfirmAccountDetails { public class TestConfirmAccountDetails {
@Test @Test
public void testAccountSettingsInformation() throws InterruptedException, IOException { public void testAccountSettingsInformation()throws IOException {
// get application.properties values and set WebDriver properties // get application.properties values and set WebDriver properties
PropertyValues properties = new PropertyValues(); PropertyValues properties = new PropertyValues();
Map<String, String> props = properties.getPropValues(); Map<String, String> props = properties.getPropValues();
......
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