Skip to content

6. is_displayed, is_enabled and is_selected

NaveenS edited this page May 27, 2019 · 5 revisions
  • is_displayed()

Whether the element is visible to a user.

  • is_enabled()

Returns whether the element is enabled.

Refer transferfund_scenario.py file

  • is_selected()

Returns whether the element is selected.

Can be used to check if a checkbox or radio button is selected.

Thing to discuss on this session:

How to find whether an element is displayed on the web page?

WebDriver facilitates the user with the following methods to check the visibility of the web elements. These web elements can be buttons, drop boxes, checkboxes, radio buttons, labels etc.

  • is_displayed()

  • is_enabled()

  • is_selected()

Clone this wiki locally