diff --git a/src/test/java/userLogin/Buttons.java b/src/test/java/userLogin/Buttons.java index 7e69ec0..153617b 100644 --- a/src/test/java/userLogin/Buttons.java +++ b/src/test/java/userLogin/Buttons.java @@ -44,11 +44,30 @@ public class Buttons {public static void main(String[] args) throws InterruptedE Thread.sleep(3000); pagenation.click(); Thread.sleep(3000); - WebElement txtbox= driver.findElement(By.xpath("(//input[@class='form-control'])[1]")); + WebElement txtbox= driver.findElement(By.xpath("//*[@id=\"DataTables_Table_0_filter\"]/label/input")); txtbox.click(); - driver.findElements(By.id("(//input[@class='form-control'])[1]")); - - + Thread.sleep(3000); + txtbox.sendKeys("david"); + Thread.sleep(3000); + WebElement petlicenselist= driver.findElement(By.xpath("(//span[@class='nav-main-link-name'])[4]")); + petlicenselist.click(); + WebElement paypending= driver.findElement(By.xpath("(//span[@class='nav-main-link-name'])[6]")); + paypending.click(); + Thread.sleep(3000); + WebElement photoview= driver.findElement(By.xpath("//*[@id=\"DataTables_Table_0\"]/tbody/tr/td[6]/button")); + photoview.click(); + Thread.sleep(3000); + WebElement photoclose= driver.findElement(By.xpath("(//button[@class='btn btn-secondary'])[1]")); + photoclose.click(); + Thread.sleep(3000); + WebElement payment= driver.findElement(By.xpath("//span[@class='badge bg-info']")); + payment.click(); + Thread.sleep(3000); + WebElement paynumber= driver.findElement(By.id("(//input[@class='input main svelte-1lowomx'])[2]")); + paynumber.sendKeys("6380911830"); + + + } } diff --git a/target/classes/META-INF/maven/petreg.org/PetRegistrations/pom.properties b/target/classes/META-INF/maven/petreg.org/PetRegistrations/pom.properties index d70043e..f985a50 100644 --- a/target/classes/META-INF/maven/petreg.org/PetRegistrations/pom.properties +++ b/target/classes/META-INF/maven/petreg.org/PetRegistrations/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Wed Dec 13 13:12:24 IST 2023 +#Fri Dec 15 17:44:04 IST 2023 m2e.projectLocation=C\:\\Users\\Testing\\eclipse-workspace\\PetRegistrations m2e.projectName=PetRegistrations groupId=petreg.org diff --git a/target/test-classes/userLogin/Buttons.class b/target/test-classes/userLogin/Buttons.class index 29e5dd4..363cdff 100644 Binary files a/target/test-classes/userLogin/Buttons.class and b/target/test-classes/userLogin/Buttons.class differ