
org.phoenix.test.PhoenixWebDriverTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phoenix_webdriver Show documentation
Show all versions of phoenix_webdriver Show documentation
update:检查点bug修复,增加js执行的驱动,commandExecutor方法bug修复,驱动更新支持最新Firefox47/chrome51/IE10/IE11/IE Edge
package org.phoenix.test;
import java.util.LinkedList;
import org.phoenix.action.WebElementActionProxy;
import org.phoenix.model.CaseLogBean;
import org.phoenix.model.UnitLogBean;
import com.codeborne.selenide.ElementsCollection;
import com.codeborne.selenide.SelenideElement;
public class PhoenixWebDriverTest extends WebElementActionProxy {
public static int caseName=1;
public PhoenixWebDriverTest() {
}
@Override
public LinkedList run(CaseLogBean caseLogBean){
init(caseName,caseLogBean);
webProxy.openNewWindowByIE("http://www.baidu.com");
webProxy.webElement("set").setText("123");
String s = webProxy.webElement("click").getAttrValue("value");
System.out.println(s);
ElementsCollection el = webProxy.webElement("").getElements();
for(SelenideElement se : el){
se.val();
}
webProxy.webElement("click").click();
webProxy.checkPoint().checkIsEqual("百度一下", s);
webProxy.sleep(1000);
webProxy.closeWindow();
return getUnitLog();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy