Remove unused constants

This commit is contained in:
Thomas Walpole 2019-05-24 13:09:32 -07:00
parent 9e6f44b4be
commit c7c08707b3
3 changed files with 1 additions and 27 deletions

View File

@ -3,7 +3,7 @@ Release date: unreleased
### Added
* Chrome and Firefox via the selenium driver support dropping files/data on elements
* Element#drop - Chrome and Firefox, via the selenium driver, support dropping files/data on elements
* Documentation Updates and Fixes - Many thanks to Masafumi Koba! [Masafumi Koba]
* Default CSS used for `attach_file` `make_visible: true` now includes auto for
height and width to handle more ways of hiding the file input element

View File

@ -121,19 +121,6 @@ private
driver.browser.capabilities[:browser_version].to_f
end
DISABLED_BY_FIELDSET_XPATH = XPath.generate do |x|
x.parent(:fieldset)[
x.attr(:disabled)
] + x.ancestor[
~x.self(:legend) |
x.preceding_sibling(:legend)
][
x.parent(:fieldset)[
x.attr(:disabled)
]
]
end.to_s.freeze
class ModifierKeysStack
def initialize
@stack = []

View File

@ -91,19 +91,6 @@ private
driver.browser.send(:bridge)
end
DISABLED_BY_FIELDSET_XPATH = XPath.generate do |x|
x.parent(:fieldset)[
x.attr(:disabled)
] + x.ancestor[
~x.self(:legend) |
x.preceding_sibling(:legend)
][
x.parent(:fieldset)[
x.attr(:disabled)
]
]
end.to_s.freeze
def _send_keys(keys, actions = browser_action, down_keys = ModifierKeysStack.new)
case keys
when *MODIFIER_KEYS