selenium
WebDriver定位元素是通过findElement()和findElements()方法。findElement()方法返回一个基于指定查询条件的WebElement对象或是抛出一个没有找到符合条件元素的异常。findElements()方法会返回匹配指定查询条件的webEle...
分类:
其他好文 时间:
2014-05-17 13:01:19
阅读次数:
239
Function waitFn = new Function() {@Overridepublic
Boolean apply(WebDriver driver) { Point newPos =
page.getWDGAttrDetail().getLocation(); return newPo...
分类:
其他好文 时间:
2014-05-16 07:42:46
阅读次数:
259
一个显示Grid的VBScript对象
是根据MS提供的代码修改而成,目前还不支持编辑,可以排序、查询、分页显示
Class classDataGrid
Private m_strSQL
Private m_strConn
Private m_strRowColor1
Private m_strRowColor2
Private m_strMode
Private m_...
分类:
其他好文 时间:
2014-05-13 08:13:15
阅读次数:
230
实现如何在浏览器中新开一个tab,并输入url.
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.Keys;
WebElement elem...
分类:
其他好文 时间:
2014-05-13 07:50:42
阅读次数:
216
.x-column-header{//更改grid表头样式 color:blue;
font-size:12px;}
分类:
Web程序 时间:
2014-05-12 02:36:10
阅读次数:
760
题目描述There is a grid size of 1*N. The spanning tree
of the grid connects all the vertices of the grid only with the edges of the
grid, and every vertex...
分类:
其他好文 时间:
2014-05-10 19:00:03
阅读次数:
337
首先需将要更改的datawindow关闭,然后选中该datawindow,右键——》edit
source,可以看到 processing=value如果value为 0, 则为freeForm格式,如果为1,则为grid
格式。如果是要新建一个一模一样的,可以【菜单】-【另存为】
1、整行数据更新//获取grid表格var table0 =
$(updateTableID).data("kendoGrid");//删除第一条var lastTableData =
table0.dataSource.at(0);table0.dataSource.remove(lastTabl...
分类:
其他好文 时间:
2014-05-10 02:49:35
阅读次数:
1090
1.通过浏览器的句柄来操纵窗口,得到句柄的方法 public String
getWindowHandle(){ String currentWindow = driver.getWindowHandle(); return
currentWindow; } 2.切换到最新的窗口 pub...
分类:
Web程序 时间:
2014-05-09 23:27:19
阅读次数:
406