In our WebDriver tests, we're able to locate ImgButton objects.
We want our tests to validate whether the buttons are enabled/disabled in the UI.
We initially thought we could use WebElement.isEnabled() from Selenium's API, but it seems to always return true for elements we locate using
Question #1)
Using WebDriver, what is the best practice to get the equivalent of Canvas.isEnabled() / Canvas.isDisabled() ?
Question #2)
Is Selenium's API WebElement.isDisplayed() reliable ?
Thank you !
We want our tests to validate whether the buttons are enabled/disabled in the UI.
We initially thought we could use WebElement.isEnabled() from Selenium's API, but it seems to always return true for elements we locate using
Code:
ByScLocator.scLocator("//ImgButton[ID='<whatever id we provide>'")
Using WebDriver, what is the best practice to get the equivalent of Canvas.isEnabled() / Canvas.isDisabled() ?
Question #2)
Is Selenium's API WebElement.isDisplayed() reliable ?
Thank you !
Comment