我使用testNG为页面对象模型运行selenium代码,每个测试只运行一次@BeforeTest,而每次测试都运行@BeforeMethod。那么,哪个注释更适合用于页面对象模型呢?username"), prop.getProperty("password")); active = new ActiveProjects();
@Tes
我有一个用java编写的selenium脚本,结构如下@before-----Some methods------
-----Some methods------ //Here i have to write the logic to run the above script其中我有一个main方法,我必须从这个java程序中