AddProjectPage.java
1.83 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package com.essa.pageObject.productDev;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import com.essa.framework.BasePage;
/**
* @author Administrator
*新增项目立项书
*/
public class AddProjectPage extends BasePage {
public AddProjectPage(WebDriver driver) {
super(driver);
}
/*
* 元素定位
*/
//改版类型
@FindBy (xpath ="//*[@dic-list='改版类型']")
WebElement revisonType;
//项目名称
@FindBy (xpath ="//*[@ng-model='model.name']")
WebElement projectName;
//项目负责人
@FindBy (xpath ="//*[@ng-model='model.leaderId']/input")
WebElement projectLeader;
//项目负责人-林荣
@FindBy (xpath ="//*[@id='role-user-select-box']/ul/li[3]/span")
WebElement linrong;
//开发程度
@FindBy (xpath ="//*[@dic-list='开发程度']")
WebElement devLevel;
//开发系列
@FindBy (xpath ="//*[@ng-model='model.serialId']")
WebElement devSerial;
//团队成员-新增
@FindBy (xpath ="//button[text()='新增']")
WebElement addMember;
//任务处理人 -第一个
@FindBy (xpath ="//*[@class='col-md-14']/table/tbody/tr[1]/td[2]/div/input")
WebElement Transactor1;
//处理人-linrong
@FindBy (xpath ="//*[@id='role-user-select-box']/ul/li[3]/span")
WebElement linrong1;
//任务处理人 -第二个
@FindBy (xpath ="//*[@class='col-md-14']/table/tbody/tr[2]/td[2]/div/input")
WebElement Transactor2;
//成员角色 -第一个
@FindBy (xpath ="//*[@class='col-md-14']/table/tbody/tr[1]/td[3]/select")
WebElement role1;
//成员角色 -第二个
@FindBy (xpath ="//*[@class='col-md-14']/table/tbody/tr[2]/td[3]/select")
WebElement role2;
//选择改版商品信息
@FindBy (xpath ="//*[text()='选择']")
WebElement selectGoods;
//保存
@FindBy (xpath ="//*[contains(text(),'保存')]")
WebElement save;
}