Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit d876f76

Browse files
committed
给元素实现顺序
1 parent b528366 commit d876f76

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

src/main/java/org/suren/autotest/web/framework/core/ui/AbstractElement.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public abstract class AbstractElement implements Element
4444
/** 用于保存元素对象相关的数据 */
4545
private Map<String, Object> data = new HashMap<String, Object>();
4646
private String paramPrefix;
47-
private long timeOut;
47+
private long timeOut;
48+
private int index;
4849

4950
@Override
5051
public String getId()
@@ -251,6 +252,7 @@ public void setParamPrefix(String paramPrefix)
251252
/**
252253
* @return the timeOut
253254
*/
255+
@Override
254256
public long getTimeOut()
255257
{
256258
return timeOut;
@@ -263,4 +265,15 @@ public void setTimeOut(long timeOut)
263265
{
264266
this.timeOut = timeOut;
265267
}
268+
269+
@Override
270+
public int getIndex()
271+
{
272+
return index;
273+
}
274+
275+
public void setIndex(int index)
276+
{
277+
this.index = index;
278+
}
266279
}

src/main/java/org/suren/autotest/web/framework/core/ui/Element.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,9 @@ public interface Element
7575
* @return 元素查找超时时间
7676
*/
7777
long getTimeOut();
78+
79+
/**
80+
* @return 顺序
81+
*/
82+
int getIndex();
7883
}

0 commit comments

Comments
 (0)