lib/aranha/selenium/session.rb in aranha-selenium-0.10.1 vs lib/aranha/selenium/session.rb in aranha-selenium-0.11.0
- old
+ new
@@ -30,18 +30,12 @@
# @return [Aranha::Selenium::Session::Downloads]
def downloads
@downloads ||= ::Aranha::Selenium::Session::Downloads.new
end
- private
-
- def element_click(element)
- element.click
- element
- rescue ::Selenium::WebDriver::Error::ElementClickInterceptedError,
- ::Selenium::WebDriver::Error::ElementNotInteractableError,
- ::Selenium::WebDriver::Error::StaleElementReferenceError
- nil
+ # @return [Aranha::Selenium::Session::Element]
+ def element(*find_args)
+ ::Aranha::Selenium::Session::Element.new(self, find_args)
end
end
end
end