Commit 5d044c02f23a1e7874cb62b2386486d82fcff4d2

Authored by huangyuanbo914@163.com
1 parent a3ecf544

增加发单中心的列表动态等待

src/main/java/com/essa/pageObject/DocumentaryManage/ReceiptCorePage.java
@@ -14,6 +14,10 @@ public class ReceiptCorePage extends BasePage { @@ -14,6 +14,10 @@ public class ReceiptCorePage extends BasePage {
14 * 页面元素定位 14 * 页面元素定位
15 * */ 15 * */
16 16
  17 + @FindBy (xpath = "//*[contains(text(),'对不起!没有查询到相关数据')]")
  18 +
  19 + WebElement Wait ;//等待
  20 +
17 @FindBy(xpath = "//i[@class='iconfont icon-double-arrow-right']") 21 @FindBy(xpath = "//i[@class='iconfont icon-double-arrow-right']")
18 // @FindBy (xpath = "//*[contains(text(),'高级查询')]") 22 // @FindBy (xpath = "//*[contains(text(),'高级查询')]")
19 WebElement advancedQuery; //高级查询 23 WebElement advancedQuery; //高级查询
@@ -88,11 +92,15 @@ public class ReceiptCorePage extends BasePage { @@ -88,11 +92,15 @@ public class ReceiptCorePage extends BasePage {
88 92
89 93
90 94
91 - /*  
92 - * 页面方法  
93 - * */ 95 + /**
  96 + *页面方法
  97 + * 前台发单中心页面
  98 + */
94 99
95 public void BillOrder(String PO_Code) { 100 public void BillOrder(String PO_Code) {
  101 +
  102 + dynamicWait(By.xpath("//tbody//tr[1]"));
  103 +
96 click(advancedQuery); 104 click(advancedQuery);
97 forceWait(1000); 105 forceWait(1000);
98 106