Blame view

src/test/java/com/essa/pageObject/StorageManage/ReceiveTaskDealPage.java 1010 Bytes
c3910777   Administrator   by zengjin10-25
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
36
37
38
39
40
41
42
43
44
  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);

  		dynamicWait(By.xpath("//div[@style='display: none;' and @id='mask']"));

  		click(allReceive);

  		forceWait(500);

  		click(confirm);

  		forceWait(1000);

  		click(confirm);

  		return new GoodsReceiveTaskPage(driver);

  	}

  }