checkElementUsing

public void checkElementUsing(By element, String message) throws IOException { try { assertTrue(isElementPresent(element)); System.out.println(message); } catch (AssertionError e) { message = message.contains(“is displayed”) ? message.replace(“is displayed”, “is not displayed”) : message.contains(“is disabled”) ? message.replace(“is disabled”, “is not disabled”) : message.contains(“is enabled”) ? message.replace(“is enabled”, “is not enabled”) : message.contains(“is not enabled”) ? message.replace(“is not enabled”, “is […]

checkElementUsingXPath

public void checkElementUsingXPath(String element, String message) throws IOException { try { assertTrue(isElementPresent(xpath(element))); System.out.println(message); } catch (AssertionError e) { message = message.contains(“is displayed”) ? message.replace(“is displayed”, “is not displayed”) : message.contains(“is disabled”) ? message.replace(“is disabled”, “is not disabled”) : message.contains(“is enabled”) ? message.replace(“is enabled”, “is not enabled”) : message.contains(“is not enabled”) ? message.replace(“is not enabled”, “is […]

Indian Cricket League

The Indian Cricket League (ICL), is a private cricket league that runs parallel to the Indian Premier League (IPL) managed by BCCI. The biggest tournaments with international players follow the Twenty20 format, while there is a domestic tournament following the 50-over method. Matches were initially held at Tau Devi Lal stadium in Panchkula, near Chandigarh, […]