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

Commit af17e9d

Browse files
committed
增加通用的text
1 parent 30cc6c9 commit af17e9d

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

  • src/main/java/org/suren/autotest/web/framework/page

src/main/java/org/suren/autotest/web/framework/page/Page.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.suren.autotest.web.framework.core.Keyboard;
2828
import org.suren.autotest.web.framework.core.Mouse;
2929
import org.suren.autotest.web.framework.core.ui.Button;
30+
import org.suren.autotest.web.framework.core.ui.Text;
3031
import org.suren.autotest.web.framework.data.DynamicData;
3132
import org.suren.autotest.web.framework.selenium.SeleniumEngine;
3233
import org.suren.autotest.web.framework.util.StringUtils;
@@ -58,6 +59,9 @@ public class Page
5859
/** 通用的按钮 */
5960
@Autowired
6061
private Button commonBut;
62+
/** 通用的文本框 */
63+
@Autowired
64+
private Text commonText;
6165

6266
@Autowired
6367
private List<DynamicData> dynamicDataList;
@@ -250,16 +254,26 @@ public Keyboard getKeyboard()
250254
return keyboard;
251255
}
252256

253-
public Button getCommonBut()
257+
public final Button getCommonBut()
254258
{
255259
return commonBut;
256260
}
257261

258-
public void setCommonBut(Button commonBut)
262+
public final void setCommonBut(Button commonBut)
259263
{
260264
this.commonBut = commonBut;
261265
}
262266

267+
public final Text getCommonText()
268+
{
269+
return commonText;
270+
}
271+
272+
public final void setCommonText(Text commonText)
273+
{
274+
this.commonText = commonText;
275+
}
276+
263277
public String getParamPrefix()
264278
{
265279
return paramPrefix;

0 commit comments

Comments
 (0)