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

com.vaadin.testbench.annotations.BrowserConfiguration Maven / Gradle / Ivy

/**
 * Copyright (C) 2000-2022 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */
package com.vaadin.testbench.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Collection;

import org.openqa.selenium.remote.DesiredCapabilities;

/**
 * 

* Methods annotated with BrowserConfiguration in test classes will be used to * configure the browsers that are to be used for test cases in that class. Each * test case is run on each of the browsers returned by the method. *

* *

* Methods annotated with BrowserConfiguration annotation should return a * {@link Collection}<{@link DesiredCapabilities}> *

* *

* Example: *

* *
 * @BrowserConfiguration
 * public List<DesiredCapabilities> firefoxAndChromeConfiguration() {
 *     List<DesiredCapabilities> list = new ArrayList<DesiredCapabilities>();
 *     list.add(Browser.FIREFOX.getDesiredCapabilities());
 *     list.add(Browser.CHROME.getDesiredCapabilities());
 *     return list;
 * }
 * 
*/ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface BrowserConfiguration { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy