Skip to content

Commit

Permalink
[py] use the isDisplayed atom for all w3c compliant drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Sep 19, 2018
1 parent 6110f18 commit 253fc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def send_keys(self, *value):
def is_displayed(self):
"""Whether the element is visible to a user."""
# Only go into this conditional for browsers that don't use the atom themselves
if self._w3c and self.parent.capabilities['browserName'] == 'safari':
if self._w3c:
return self.parent.execute_script(
"return (%s).apply(null, arguments);" % isDisplayed_js,
self)
Expand Down

0 comments on commit 253fc6b

Please sign in to comment.