Guest User

Untitled

a guest
Jul 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public void ValidateThatButtonIsHidden(string button)
  2. {
  3. IWebElement theButton = null;
  4.  
  5. if (button.ToLower().Trim() == "submit an order")
  6. { theButton = FindElement(By.Id(_elementBtnId1)); }
  7.  
  8. else if (button.ToLower().Trim() == "validate order")
  9. { theButton = FindElement(By.Id(_elementBtnId2)); }
  10.  
  11.  
  12. //Verifying that an element is not visible
  13. Assert.False(IsELementVisible(theButton));
  14.  
  15. }
Add Comment
Please, Sign In to add comment