Blame view

src/main/java/com/essa/pageObject/StorageManage/ReceiveTaskDealPage.java 951 Bytes
27d9a429   suweicheng   开发梳理;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  package com.essa.pageObject.StorageManage;
  
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.support.FindBy;
  
  import com.essa.framework.BasePage;
  
  /**
   * PO收货任务处理页面
   * @author Administrator
   *
   */
  public class ReceiveTaskDealPage extends BasePage {
  
  	public ReceiveTaskDealPage(WebDriver driver) {
  		super(driver);
  	}
  
  	@FindBy (xpath = "//*[text()='全部完成收货']")
  	WebElement allReceive;//全部收货完成
  	
  	@FindBy (xpath = "//*[text()='确定']")
  	WebElement confirm;//确定
  	
  	/*
  	 * 页面方法
  	 */
  	/**
  	 * 全部收货完成
  	 * @return 收货任务管理页
  	 */
  	public GoodsReceiveTaskPage allReceive() {
  		forceWait(1000);
d7f15c1c   zengjin   提交并且覆盖之前的
36
37
  		dynamicLoad();
  		moveHeightScroll("0");
27d9a429   suweicheng   开发梳理;
38
39
40
41
42
  		click(allReceive);
  		forceWait(500);
  		click(confirm);
  		forceWait(1000);
  		click(confirm);
d7f15c1c   zengjin   提交并且覆盖之前的
43
  		dynamicLoad();
27d9a429   suweicheng   开发梳理;
44
45
46
  		return new GoodsReceiveTaskPage(driver);
  	}
  }