Commit 188603d6 authored by 马博's avatar 马博

update

parent 020b3eeb
......@@ -456,6 +456,14 @@ public class DuibaBaseUi extends DuibaBase{
}
}
/**
* 输入,通过xpath
* @param xpath
* @param text
* @param index 元素的下标
* @throws Exception
*/
public final void inputByXpath(String xpath,String text,int index) throws Exception{
int i=5;
......@@ -480,10 +488,17 @@ public class DuibaBaseUi extends DuibaBase{
}
/**
* 滑动窗口到顶部
*/
public void scrollToTop(){
((JavascriptExecutor) driver).executeScript("window.scrollTo(document.body.scrollHeight,0)");
}
/**
* 滑动窗口到底部
*/
public void scrollToDown(){
((JavascriptExecutor) driver).executeScript("window.scrollTo(0,document.body.scrollHeight)");
......
......@@ -85,3 +85,10 @@ ui.names=mabo
ui.group=自动化
ui.resultUrl=http://101.68.72.146:18080/job/duiba_ui/HTML_20Report/suite1_test1_results.html
ui.job=duiba_ui
uiCms.project=界面自动化核心业务
uiCms.names=mabo
uiCms.group=自动化
uiCms.resultUrl=http://10.254.187.25/job/duiba_ui/HTML_20Report/suite1_test1_results.html
uiCms.job=duiba_cms_ui
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment