Sha256: aad53d014606adbdd6a2254c5168e78f3b0461b0634ed68ebcd897baceb373d5
Contents?: true
Size: 476 Bytes
Versions: 1
Compression:
Stored size: 476 Bytes
Contents
# frozen_string_literal: true require 'selenium/webdriver/element/extend_click_again/version' module Selenium module WebDriver # monkey patch class Element # @override def click bridge.click_element @id rescue Selenium::WebDriver::Error::WebDriverError bridge.execute_script("arguments[0].scrollIntoView({behavior: 'auto', block: 'center', inline: 'nearest'});", self) bridge.click_element @id end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
selenium-webdriver-element-extend_click_again-0.1.0 | lib/selenium/webdriver/element/extend_click_again.rb |