Don't roundtrip through Selenium twice to determine visibility
This commit is contained in:
parent
a2b1b3315e
commit
af9dd36704
|
@ -59,7 +59,8 @@ class Capybara::Driver::Selenium < Capybara::Driver::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def visible?
|
def visible?
|
||||||
native.displayed? and native.displayed? != "false"
|
displayed = native.displayed?
|
||||||
|
displayed and displayed != "false"
|
||||||
end
|
end
|
||||||
|
|
||||||
def find(locator)
|
def find(locator)
|
||||||
|
|
Loading…
Reference in New Issue