Commit 411e42e8 authored by Shaphen's avatar Shaphen

Remove unnecessary imports in files

parent 1449b269
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;
......
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
......
......@@ -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();
......
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