11.7用户修改_模拟chrome浏览器测试用例
##一、项目搭建
###1.isupermap_test模块pom
xml
1.添加父模块
<parent>
<groupId>com.supermap.icloud</groupId>
<artifactId>isupermap-cas</artifactId>
<version>1.2.0-SNAPSHOT</version>
</parent>
2.依赖
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>compile</scope>
</dependency>2.父工程引入
<module>isupermap_test</module>##二、chrome的驱动和浏览器一致
###1.下载chromeDriver
https://www.jianshu.com/p/806767e90bea###2.修改BrowserDriver
options.setBinary("C:/Users/刘琛运/AppData/Local/Google/Chrome/Application/chrome.exe");
System.setProperty("webdriver.chrome.driver", "./src/main/resources/chromedriver74.exe");