Advertisement
zhytnytskyi

BasicTest - hide baseUrl

Jul 22nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. package ua.net.azhytnytskyi.housework;
  2.  
  3. import com.codeborne.selenide.Configuration;
  4.  
  5. public class BasicTest {
  6.  
  7.     private final String BASE_URL = System.getProperty("selenide.baseUrl");
  8.     private final String DEFAULT_URL = "http://todomvc4tasj.herokuapp.com";
  9.  
  10.     {
  11.         Configuration.browser = "chrome";
  12.  
  13.         if (BASE_URL == null) Configuration.baseUrl = DEFAULT_URL;
  14.         else Configuration.baseUrl = BASE_URL;
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement