Commit d15bbfd4a818d51dbd4285097d5eb8f34672d42d

Authored by Administrator
1 parent 9cf12e7e

1024byzengjin

.gitignore 0 → 100644
@@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
  1 +/Log/
  2 +/test-output/
src/test/java/com/essa/pageObject/HomePage.java
@@ -11,6 +11,7 @@ import com.essa.pageObject.GoodsManage.AuditOriginalGoodsPage; @@ -11,6 +11,7 @@ import com.essa.pageObject.GoodsManage.AuditOriginalGoodsPage;
11 import com.essa.pageObject.GoodsManage.GoodsBankPage; 11 import com.essa.pageObject.GoodsManage.GoodsBankPage;
12 import com.essa.pageObject.GoodsManage.GoodsRelesePage; 12 import com.essa.pageObject.GoodsManage.GoodsRelesePage;
13 import com.essa.pageObject.GoodsManage.MarketGoodsRelesePage; 13 import com.essa.pageObject.GoodsManage.MarketGoodsRelesePage;
  14 +import com.essa.pageObject.PODocumentary.PODocumentaryListPage;
14 import com.essa.pageObject.buyPlaneManage.SkuCategoryManagerCongfigPage; 15 import com.essa.pageObject.buyPlaneManage.SkuCategoryManagerCongfigPage;
15 import com.essa.pageObject.buyerManage.InvateCodePage; 16 import com.essa.pageObject.buyerManage.InvateCodePage;
16 import com.essa.pageObject.inquiryManage.ProductInquiryTaskPage; 17 import com.essa.pageObject.inquiryManage.ProductInquiryTaskPage;
@@ -143,6 +144,14 @@ public class HomePage extends BasePage{ @@ -143,6 +144,14 @@ public class HomePage extends BasePage{
143 @FindBy (xpath = "//*[@name='searchForm']/div/span/button") 144 @FindBy (xpath = "//*[@name='searchForm']/div/span/button")
144 WebElement search; 145 WebElement search;
145 146
  147 + //跟单管理
  148 + @FindBy (xpath = "//*[text()='跟单管理']")
  149 + WebElement DocumentaryManage;
  150 +
  151 + //PO跟单
  152 + @FindBy (xpath ="//*[text()='PO跟单']")
  153 + WebElement PODocumentary;
  154 +
146 /* 155 /*
147 * 方法 156 * 方法
148 */ 157 */
@@ -344,4 +353,14 @@ public class HomePage extends BasePage{ @@ -344,4 +353,14 @@ public class HomePage extends BasePage{
344 switchMoreWindow(); 353 switchMoreWindow();
345 return new NeedDealtApplyPage(driver); 354 return new NeedDealtApplyPage(driver);
346 } 355 }
  356 +
  357 + /**
  358 + * 进入PO跟单列表页
  359 + * @return PO跟单列表页
  360 + */
  361 + public PODocumentaryListPage toPoDocumentaryListPage() {
  362 + click(DocumentaryManage);
  363 + click(PODocumentary);
  364 + return new PODocumentaryListPage(driver);
  365 + }
347 } 366 }
348 \ No newline at end of file 367 \ No newline at end of file
src/test/java/com/essa/pageObject/PODocumentary/POBoardPage.java 0 → 100644
@@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
  1 +package com.essa.pageObject.PODocumentary;
  2 +
  3 +import org.openqa.selenium.WebDriver;
  4 +
  5 +import com.essa.framework.BasePage;
  6 +
  7 +public class POBoardPage extends BasePage {
  8 +
  9 + public POBoardPage(WebDriver driver) {
  10 + super(driver);
  11 + }
  12 +
  13 +}
src/test/java/com/essa/pageObject/PODocumentary/PODocumentaryListPage.java 0 → 100644
@@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
  1 +package com.essa.pageObject.PODocumentary;
  2 +
  3 +import org.openqa.selenium.WebDriver;
  4 +import org.openqa.selenium.WebElement;
  5 +import org.openqa.selenium.support.FindBy;
  6 +
  7 +import com.essa.framework.BasePage;
  8 +
  9 +/**
  10 + * @author Administrator
  11 + *PO跟单任务列表页面
  12 + */
  13 +public class PODocumentaryListPage extends BasePage {
  14 +
  15 + public PODocumentaryListPage(WebDriver driver) {
  16 + super(driver);
  17 + }
  18 +
  19 + /*
  20 + * 元素定位
  21 + */
  22 + @FindBy (xpath = "//*[contains(text(),'高级查询')]")
  23 + WebElement advancedQuery;//高级查询
  24 +
  25 + @FindBy (xpath = "//*[contains(@placeholder,'请输入PO单号')]")
  26 + WebElement OrderNo;
  27 +}