All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.phoenix.test.PhoenixWebDriverTest Maven / Gradle / Ivy

Go to download

update:检查点bug修复,增加js执行的驱动,commandExecutor方法bug修复,驱动更新支持最新Firefox47/chrome51/IE10/IE11/IE Edge

There is a newer version: 1.5.0
Show newest version
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