1 编写目的
本文档用于记录测试过程,总结各轮次的测试情况,分析测试数据,归纳测试工作进行过程中暴露的问题与遗留的风险,给出相应的测试建议以供后续项目参考。
2 实验测试内容:
使用不同的方式完成超链接的定位,并添加常用api的使用,完成校园网的登录操作。
public class hgh {
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
System.setProperty("webdriver.gecko.driver", "d:/driver/geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.get("https://wlkc.jluzh.edu.cn/meol/index.do");
String title =driver.getTitle();
System.out.printf(title);
Thread.sleep(2);
String pageSource = driver.getPageSource();
System.out.println(pageSource);
Thread.sleep(2);