Skip to content

Commit

Permalink
Использование загрузки проперти от Акиты для установки headless режима (
Browse files Browse the repository at this point in the history
  • Loading branch information
azdrachak authored and GannaChernyshova committed Aug 29, 2018
1 parent 6b53e77 commit 83aa1ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import java.util.Map;

import static com.codeborne.selenide.WebDriverRunner.*;
import static ru.alfabank.tests.core.helpers.PropertyLoader.loadProperty;
import static ru.alfabank.tests.core.helpers.PropertyLoader.loadSystemPropertyOrDefault;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ public static Integer loadSystemPropertyOrDefault(String propertyName, Integer d
* @return Integer значение свойства по названию или значение по умолчанию
*/
public static Boolean loadSystemPropertyOrDefault(String propertyName, Boolean defaultValue) {
return Boolean.parseBoolean(System.getProperty(propertyName, defaultValue.toString()).trim());
String def = defaultValue.toString();
String property = loadProperty(propertyName, def);
return Boolean.parseBoolean(property.trim());
}

/**
Expand Down

0 comments on commit 83aa1ce

Please sign in to comment.