当前位置:网站首页>[selenium automation] common notes
[selenium automation] common notes
2022-07-05 00:14:00 【linrui7】
Commonly used annotations
@Test
@BeforeMethod test Before method execution
@AfterMethod test After method execution
@BeforeClass After class initialization
@AfterClass Before class destruction
static WebDriver webDriver;
@Test
public void test1() {
System.out.println("Test");
}
@BeforeMethod
public void test2() {
webDriver = new ChromeDriver();
System.out.println("BeforeMethod");
}
@AfterMethod
public void test3() {
webDriver.quit();
System.out.println("AfterMethod");
}
@BeforeClass
public void test4() {
System.out.println("BeforeClass");
}
@AfterClass
public void test5() {
System.out.println("AfterClass");
}
Execution results :
边栏推荐
- "Xiaodeng" domain password policy enhancer in operation and maintenance
- [paper reading] cavemix: a simple data augmentation method for brain vision segmentation
- Parsing of XML
- 初识ROS
- 如何在外地外网电脑远程公司项目?
- abc 258 G - Triangle(bitset)
- Chinese verification of JS regular expressions (turn)
- 如何有效对直流列头柜进行监测
- 如何用快解析自制IoT云平台
- 微服务(Microservice)那点事儿
猜你喜欢
【雅思阅读】王希伟阅读P4(matching1)
Acrel-EMS综合能效平台在校园建设的意义
How many triangles are there in the golden K-line diagram?
2022.07.03(LC_6108_解密消息)
[kotlin] the third day
Fast parsing intranet penetration helps enterprises quickly achieve collaborative office
Microservice
Pytoch --- use pytoch to realize linknet for semantic segmentation
华为200万年薪聘请数据治理专家!背后的千亿市场值得关注
Summer challenge brings you to play harmoniyos multi terminal piano performance
随机推荐
uniapp上传头像
Hash table, hash function, bloom filter, consistency hash
AcWing164. 可达性统计(拓扑排序+bitset)
Some basic functions of enterprise projects are developed, and important things are saved to online first a
(script) one click deployment of any version of redis - the way to build a dream
A new method for analyzing the trend chart of London Silver
Nine Qi single chip microcomputer ny8b062d single key control four LED States
Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
机器人强化学习——Learning Synergies between Pushing and Grasping with Self-supervised DRL (2018)
【监控】zabbix
Hong Kong Jewelry tycoon, 2.2 billion "bargain hunting" Giordano
Design of emergency lighting evacuation indication system for urban rail transit station
基于三维gis平台的消防系统运用
快解析内网穿透帮助企业快速实现协同办公
[IELTS reading] Wang Xiwei reading P3 (heading)
Pytoch --- use pytoch to realize linknet for semantic segmentation
Fast parsing intranet penetration helps enterprises quickly achieve collaborative office
[monitoring] ZABBIX
22-07-02周总结
[kotlin] the third day