https://mkyong.com/java/how-to-install-java-on-mac-osx/
https://linuxtut.com/en/56cc4ac83ef9d686fab2/
https://github.com/ohmyzsh/ohmyzsh
https://github.com/romkatv/powerlevel10k
| package com.citi.cpb.sit.assertions; | |
| import io.restassured.response.Response; | |
| import static org.assertj.core.api.Assertions.assertThat; | |
| public class ResponseAssertion { | |
| private static final int maxChars = 2000; |
| public class DriverUtils { | |
| private static final String CHROME = "chrome"; | |
| private static final String INTERNET_EXPLORER = "internetexplorer"; | |
| public static String browserName = System.getenv("browser_name") == null ? "internetexplorer" : System.getenv("browser_name"); | |
| private static DriverUtils instance = new DriverUtils(); | |
| public static ThreadLocal<WebDriver> CURRENT_DRIVER = ThreadLocal.withInitial(() -> // thread local CURRENT_DRIVER object for webdriver | |
| { | |
| if (browserName.equalsIgnoreCase(CHROME)) { |
| public boolean isElementDisplayed(WebElement element) { | |
| try { | |
| return element.isDisplayed(); | |
| } catch (NoSuchElementException | TimeoutException | StaleElementReferenceException ex) { | |
| return false; | |
| } | |
| } | |
| public boolean areElementsDisplayed(List<WebElement> elements) { |