Browse Source

Third Commit

master
unknown 3 years ago
parent
commit
45c7c0ceda
  1. 23
      src/test/java/userLogin/Buttons.java
  2. 2
      target/classes/META-INF/maven/petreg.org/PetRegistrations/pom.properties
  3. BIN
      target/test-classes/userLogin/Buttons.class

23
src/test/java/userLogin/Buttons.java

@ -44,9 +44,28 @@ 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");
}

2
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

BIN
target/test-classes/userLogin/Buttons.class

Loading…
Cancel
Save