新建page包
1、封装by方法类
public class ByMethod {
/**
* 封装by方法
* @param key
* @return
* @throws IOException
*/
public static By byStr(String key) throws IOException {
ReadProperties pro = new ReadProperties("src/element.properties");
String value = pro.getPro(key);
String valueType = value.split(">")[0];
String valueEle = value.split(