Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static WebDriver webDriver;
- private static String baseUrl;
- @BeforeAll
- static void setUpBeforeClass() throws Exception {
- System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
- webDriver = new ChromeDriver();
- baseUrl = "https://your.url/";
- webDriver.manage().window().maximize();
- }
- @AfterAll
- static void tearDownAfterClass() throws Exception {
- webDriver.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement