Duplicate Lead
~30 mins
Duplicate Lead
package testcase;
import java.time.Duration;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
import io.github.bonigarcia.wdm.WebDriverManager;
public class DuplicateLead extends BaseClass {
@Test
public void runDuplictateLead() throws InterruptedException {
driver.findElement(By.linkText("Find Leads")).click();
driver.findElement(By.xpath("//span[text()='Phone']")).click();
driver.findElement(By.xpath("//input[@name='phoneNumber']")).sendKeys("99");
driver.findElement(By.xpath("//button[text()='Find Leads']")).click();
Thread.sleep(2000);
driver.findElement(By.xpath("//div[@class='x-grid3-cell-inner x-grid3-col-partyId']/a")).click();
driver.findElement(By.linkText("Duplicate Lead")).click();
driver.findElement(By.name("submitButton")).click();
driver.close();
}
}