本文解答了关于《往来款项的清查》相关内容,同时关于1、往来款项的清查一般采用什么方法,2、往来款项的清查方法是,3、往来款项的清查一般采用,4、往来款项的清查,5、往来款项的清查,一般采用查询核对法,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
往来款项的清查
@projectDescription 逾期款项管理
@module 进出账查询(新)
@funcDesc 逾期往来款项(新): 导出
@author heminx
@createDate 2020-06-25
@updateDate 2020-06-25
一账通版本 v1.0
*/
public static WebResponse overdueExchangeForExport(WebDriver driver, String type, String jsonPath) throws Exception{
//查询栏片段
String InquiryData = ReadJson.getJsonData(jsonPath,"overdueExchangeForExport", "InquireData");
String CheckData = ReadJson.getJsonData(jsonPath,"overdueExchangeForExport", "CheckData");
Hooks.stepRecordHooks(driver, InquiryData,"查询栏片段");
MyResponse OEResponse = Common.getWebElement(driver, xmlMap.get(type + "_GetOverduList"));
//导出按钮的文本内容
MyResponse exportBtnResponse = Common.getWebElement(driver, xmlMap.get(type + "_Export"));
//取出文本内容
String exportBtnText = exportBtnResponse.getMyResponseContext().getText();
//取出复选框元素
String checkboxXpath = xmlMap.get(type + "_SelectAllCheckBox").get("LOC").toString();
WebElement checkbox = driver.findElement(By.xpath(checkboxXpath));
//首先取消 全选框 选中状态
if(checkbox.isSelected()){
//如果全选框已经被选中,则取消
MyResponse selectALLResponse = Common.getWebElement(driver, xmlMap.get(type + "_SelectAllCheckBox"));
Common.click(selectALLResponse);
}
//正在加载(关键点1)
MyResponse ImportUrgeListResponse = Common.getWebElement(driver, xmlMap.get(type + "_ShowLoading"));
//等待 正在加载 (关键点1)消失
Common.waitForElementNotExist(driver, ImportUrgeListResponse, Common.IMPLICIT_WAIT_SHORT);
//点击导出按钮
MyResponse exportBtn = Common.getWebElement(driver, xmlMap.get(type + "_Export"));
Common.click(exportBtn);
//检查是否会弹框
MyResponse alertResponse = Common.getAlert(driver);
if(alertResponse.ismyResponseTrue()){
//如果定位到弹框,获取是否下载,然后点击确定
alertResponse = Common.getAlert(driver);
Common.clickYesOrNo(driver, false, alertResponse);
}
//等待 导出按钮 变活跃
Common.waitForElementEnabled(driver, exportBtn, Common.IMPLICIT_WAIT_SHORT);
MyResponse OverdueAssertionResponse = Common.getWebElement(driver, xmlMap.get(type + "_ExportAssertion").get("LOC"));
MyResponse verifyElementIsEnabledResponse = Common.verifyElementIsEnabled(driver,OverdueAssertionResponse);
if(verifyElementIsEnabledResponse.ismyResponseTrue()){
MyResponse publishResponse = Common.getWebElement(driver, xmlMap.get(type + "_Export"));
Common.click(publishResponse);
return Common.getAlert(driver);
}else{
return verifyElementIsEnabledResponse;
}
}
}
总结:以上是编辑:【项之境】整理及AI智能原创关于《往来款项的清查
》优质内容解答希望能帮助到您。