Java Code Examples for com.codeborne.selenide.Configuration#browser()

The following examples show how to use com.codeborne.selenide.Configuration#browser() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LambdaBaseTest.java    From lambda-selenium with MIT License 5 votes vote down vote up
@BeforeClass
public static void baseTestBeforeClass() {
    Configuration.browser = "chrome";
    Configuration.reopenBrowserOnFail = false;

    if (EnvironmentDetector.inLambda()) {
        WebDriverRunner.webdriverContainer = new LambdaWebDriverThreadLocalContainer();
    }
}
 
Example 2
Source File: SelenideMultiTest.java    From healenium-web with Apache License 2.0 4 votes vote down vote up
@BeforeAll
public static void setUp() {
    Configuration.browser = MyGridProvider.class.getName();
}
 
Example 3
Source File: SelenideTest.java    From healenium-web with Apache License 2.0 4 votes vote down vote up
@BeforeEach
public void setUp() {
    Configuration.browser = MyGridProvider.class.getName();
}
 
Example 4
Source File: BaseTest.java    From selenide-appium with MIT License 4 votes vote down vote up
@Before
public void setUp() {
  Configuration.startMaximized = false;
  Configuration.browserSize = null;
  Configuration.browser = AndroidDriverProvider.class.getName();
  open();
}
 
Example 5
Source File: Selenide.java    From apicurio-studio with Apache License 2.0 4 votes vote down vote up
public static void init() {
    Configuration.reportsFolder = properties.get("selenide.reports.dir");
    Configuration.browser = "firefox";
    Configuration.headless = true;
}