/**
* 进入frame(不在同一frame就无法查找元素),自带默认超时时间
* @param locator
* (1/2)
*/
public void enterFrame(By locator) {
enterFrame(locator, timeout);
}
/**
* 进入frame(不在同一frame就无法查找元素),可以指定默认超时时间
* @param locator
* @param timeout2
* (2/2)
*/
private void enterFrame(By locator, float timeout) {
// TODO Auto-generated method stub
if (isElementPresent(locator)) {
driver.switchTo().frame(getElement(locator, timeout));
}
}
selenium切换frame
猜你喜欢
转载自blog.csdn.net/weixin_40049311/article/details/80183279
今日推荐
周排行