mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Don't roundtrip through Selenium twice to determine visibility
This commit is contained in:
parent
a2b1b3315e
commit
af9dd36704
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ class Capybara::Driver::Selenium < Capybara::Driver::Base
|
|||
end
|
||||
|
||||
def visible?
|
||||
native.displayed? and native.displayed? != "false"
|
||||
displayed = native.displayed?
|
||||
displayed and displayed != "false"
|
||||
end
|
||||
|
||||
def find(locator)
|
||||
|
|
Loading…
Add table
Reference in a new issue