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

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

The newest version!
package com.codeborne.selenide.junit;

import org.junit.rules.ExternalResource;

import static com.codeborne.selenide.Selenide.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 - 2025 Weber Informatics LLC | Privacy Policy