调整页面类所在包位置
This commit is contained in:
parent
c492bfc622
commit
10f742c5a4
|
@ -15,6 +15,8 @@ import org.openqa.selenium.remote.RemoteWebDriver;
|
|||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import pres.auxiliary.work.selenium.page.Page;
|
||||
|
||||
/**
|
||||
* <p><b>文件名:</b>AbstractBrower.java</p>
|
||||
* <p><b>用途:</b>该类定义启动浏览器时必要的方法,开启浏览器的方法由子类继承编写</p>
|
||||
|
|
|
@ -9,6 +9,8 @@ import org.openqa.selenium.chrome.ChromeOptions;
|
|||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
|
||||
import pres.auxiliary.work.selenium.page.Page;
|
||||
|
||||
/**
|
||||
* <p><b>文件名:</b>ChromeBrower.java</p>
|
||||
* <p><b>用途:</b>用于启动谷歌浏览器,并加载相应的待测页面,支持对浏览器进行部分个性化的配置,
|
||||
|
|
|
@ -6,6 +6,8 @@ import org.openqa.selenium.WebDriver;
|
|||
import org.openqa.selenium.firefox.FirefoxDriver;
|
||||
import org.openqa.selenium.firefox.FirefoxOptions;
|
||||
|
||||
import pres.auxiliary.work.selenium.page.Page;
|
||||
|
||||
public class FirefoxBrower extends AbstractBrower {
|
||||
/**
|
||||
* 用于存储与火狐浏览器相关的配置
|
||||
|
|
|
@ -5,6 +5,8 @@ import java.io.File;
|
|||
import org.openqa.selenium.ie.InternetExplorerDriver;
|
||||
import org.openqa.selenium.ie.InternetExplorerOptions;
|
||||
|
||||
import pres.auxiliary.work.selenium.page.Page;
|
||||
|
||||
/**
|
||||
* <p><b>文件名:</b>IeBrower.java</p>
|
||||
* <p><b>用途:</b>用于启动IE浏览器,并加载相应的待测页面。</p>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package pres.auxiliary.work.selenium.brower;
|
||||
package pres.auxiliary.work.selenium.page;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
|
@ -6,6 +6,8 @@ import org.openqa.selenium.WebDriver;
|
|||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import pres.auxiliary.work.selenium.brower.AbstractBrower;
|
||||
|
||||
/**
|
||||
* <p><b>文件名:</b>Page.java</p>
|
||||
* <p><b>用途:</b>用于存储对浏览器加载的页面信息以及页面操作</p>
|
||||
|
@ -13,7 +15,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||
* <p><b>修改时间:</b>2020年10月12日下午8:02:45</p>
|
||||
* @author 彭宇琦
|
||||
* @version Ver1.0
|
||||
* @since JDK 8
|
||||
* @since JDK .8
|
||||
*
|
||||
*/
|
||||
public class Page {
|
|
@ -11,6 +11,7 @@ import org.testng.annotations.AfterClass;
|
|||
import org.testng.annotations.Test;
|
||||
|
||||
import pres.auxiliary.work.selenium.brower.ChromeBrower.ChromeOptionType;
|
||||
import pres.auxiliary.work.selenium.page.Page;
|
||||
|
||||
/**
|
||||
* <p><b>文件名:</b>TestChromeBrower.java</p>
|
||||
|
|
|
@ -6,6 +6,8 @@ import java.util.Scanner;
|
|||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import pres.auxiliary.work.selenium.page.Page;
|
||||
|
||||
public class FirefoxBrowerTest {
|
||||
/**
|
||||
* 指向driver文件
|
||||
|
|
|
@ -6,6 +6,8 @@ import java.util.Scanner;
|
|||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import pres.auxiliary.work.selenium.page.Page;
|
||||
|
||||
/**
|
||||
* <p><b>文件名:</b>IeBrowerTest.java</p>
|
||||
* <p><b>用途:</b>用于对{@link IeBrower}类进行测试</p>
|
||||
|
|
Loading…
Reference in New Issue