
org.phoenix.action.WebElementActionProxy 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.action;
import java.util.LinkedList;
import org.phoenix.aop.ActionInvocationHandler;
import org.phoenix.model.CaseLogBean;
import org.phoenix.model.UnitLogBean;
/**
* WebElementAction代理
* @author mengfeiyang
*
*/
public abstract class WebElementActionProxy {
private LinkedList unitLog = new LinkedList();
public ElementAction webProxy;
public LinkedList getUnitLog() {
return unitLog;
}
public void setUnitLog(LinkedList unitLog) {
this.unitLog = unitLog;
}
public abstract LinkedList run(CaseLogBean caseLogBean);
public void init(int caseId,CaseLogBean caseLogBean){
webProxy = (ElementAction)new ActionInvocationHandler(new WebElementAction(unitLog),unitLog,caseLogBean).getProxy();
webProxy.addLocatorAndDatas(caseId, caseLogBean);
webProxy.setWebProxy(webProxy);
}
public void init(String caseName,CaseLogBean caseLogBean){
webProxy = (ElementAction)new ActionInvocationHandler(new WebElementAction(unitLog),unitLog,caseLogBean).getProxy();
webProxy.addLocatorAndDatas(caseName, caseLogBean);
webProxy.setWebProxy(webProxy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy