public void fIPONotifReprots() throws Exception { PageFactory.initElements(Browser.eDriver, this); SeleniumUtils.selectOption(dateValue, "Last Year"); SeleniumUtils.selectOption(pocurrencyCode, "USD"); SeleniumUtils.click(run); Synchronizer.explicitWait(10); /* * Runtime.getRuntime().exec( "C:/jar/autoTest.exe"); */ Synchronizer.explicitWait(5); PDFManager pdfManager = new PDFManager(); pdfManager.setFilePath(); Synchronizer.explicitWait(8); logger.info(pdfManager.ToText()); Synchronizer.explicitWait(5); String username = UserN.UserNameChecks(); System.out.println(username); SeleniumUtils.deleteFile("C:/Users/" + username + "/Downloads", "PDF"); }
public void fIAddBPAuto() { PageFactory.initElements(Browser.eDriver, this); int addcount = addLinks.size(); logger.info(addcount); WebElement lastElement = Iterables.getLast(addLinks); String sssaaaa = lastElement.getText(); logger.info(sssaaaa); SeleniumUtils.click(lastElement); SeleniumUtils.selectOption(settlmentBankAccountId, "rohficom103_bank"); SeleniumUtils.selectOption(clearingBankAccountId, "rohficom103_bank"); Synchronizer.explicitWait(3); boolean radio1 = autoAcceptOffRadio.isSelected(); logger.info(radio1); if (radio1 == false) { logger.info("Auto Accept radion button by defalut not selected - valadiation passed"); } Synchronizer.explicitWait(3); SeleniumUtils.click(saveBtn); Synchronizer.explicitWait(2); SeleniumUtils.click(submitBtn); }