Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ValidateThatButtonIsHidden(string button)
- {
- IWebElement theButton = null;
- if (button.ToLower().Trim() == "submit an order")
- { theButton = FindElement(By.Id(_elementBtnId1)); }
- else if (button.ToLower().Trim() == "validate order")
- { theButton = FindElement(By.Id(_elementBtnId2)); }
- //Verifying that an element is not visible
- Assert.False(IsELementVisible(theButton));
- }
Add Comment
Please, Sign In to add comment