Skip to content

Commit

Permalink
[#478] FIX: link condition element_is_selected to selenium is_selected()
Browse files Browse the repository at this point in the history
adjusting the `element_is_selected` condition so that it calls the
Selenium element's `is_selected()` method. instead of looking for
the attribute `elementIsSelected`.

Closes #478
  • Loading branch information
dskard committed Jul 23, 2023
1 parent 04d5fc5 commit dd1913b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selene/core/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ def values_containing(
)


element_is_selected: Condition[Element] = element_has_attribute('elementIsSelected')
element_is_selected: Condition[Element] = ElementCondition.raise_if_not(
'is selected', lambda element: element().is_selected()
)


def element_has_value(expected: str) -> Condition[Element]:
Expand Down

0 comments on commit dd1913b

Please sign in to comment.