public static void selectFilterAction(String dropDownSelection, String selectionValue) { // TODO Auto-generated method stub // Go to drop down Select filterAxnDropDown = new Select(Driver.Instance.findElement(By.cssSelector(dropDownSelection))); filterAxnDropDown.selectByVisibleText(selectionValue); // select the value as given }
public static boolean IsAt() { // TODO Auto-generated method stub Log.info("Verifying Dashboard Title"); int dash = Driver.Instance.findElements(By.tagName("h1")).size(); if (dash > 0) { Log.info("Dashboard Title found"); return true; } else { Log.info("Dashboard Title NOT found"); return false; } }
private static void filter() { // TODO Auto-generated method stub Driver.Instance.findElement(By.cssSelector("input#post-query-submit")).click(); }