Blame view

src/main/java/com/essa/pageObject/GoodsManage/EditSpuPage.java 934 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
36
37
38
39
40
41
42
43
44
45
  package com.essa.pageObject.GoodsManage;
  
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.support.FindBy;
  
  import com.essa.framework.BasePage;
  
  /**
   * @author Administrator
   *编辑spu
   */
  public class EditSpuPage extends BasePage {
  	 public EditSpuPage(WebDriver driver) {  
  	        super(driver);  
  	    } 
  	 /*
  	  * 页面元素定位
  	  */
  	 
  	 //上传图片
  	 @FindBy(xpath="//*[@class='webuploader-element-invisible']/../label")
  	 WebElement upDatePic;
  	 
  	 //保存
  	 @FindBy(xpath="//*[text()='保存']")
  	 WebElement save;
  	 
  	 /*
  	  * 页面方法
  	  */
  	 
  	 /**
  	  * 编辑spu图片
  	 * @return GoodsRelesePage
  	 * @throws InterruptedException 
  	 */
  	public GoodsRelesePage editSpuPic() throws InterruptedException {
  		 moveHeightScroll("30");
  		 jsExecutorClick(upDatePic);
  		 moveHeightScroll("0");
  		 click(save);
  		 return new GoodsRelesePage(driver);
  	 }
  }