All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codeborne.selenide.junit.BrowserStrategy Maven / Gradle / Ivy

There is a newer version: 7.5.1
Show newest version
package com.codeborne.selenide.junit;

import org.junit.rules.ExternalResource;

import static com.codeborne.selenide.WebDriverRunner.closeWebDriver;

/**
 * Usage:
 * 
  {@literal @}Rule
 * public BrowserStrategy perTest = new BrowserStrategy();
* or *
  {@literal @}ClassRule
 * public static BrowserStrategy perClass = new BrowserStrategy();
*/ public class BrowserStrategy extends ExternalResource { public BrowserStrategy() { } @Override protected void after() { closeWebDriver(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy