public bool ElementVisible(string fieldname) { try { if (selenium.IsVisible(fieldname)) { return(true); } else { return(false); } } catch (Exception) { return(false); } }