SHARE
TWEET
Validate Element Display function
a guest
Jun 28th, 2018
30
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- public static bool IsElementDisplayed(IWebElement element)
- {
- bool ele = false;
- try
- {
- ele = element.Displayed;
- if (ele == true) { return true; }
- else { return false; }
- }
- catch (NoSuchElementException e)
- {
- Console.WriteLine(e.Message);
- return false;
- // throw new Exception(string.Format("Element Not Displayed or Enabled Exception"));
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
