lib/rutl/page.rb in rutl-0.5.0 vs lib/rutl/page.rb in rutl-0.6.0
- old
+ new
@@ -82,11 +82,11 @@
# Hard to make shorter.
# rubocop:disable Metrics/MethodLength
def method_missing(element, *args, &_block)
name, selectors, rest = args
context = RUTL::Element::ElementContext.new(destinations: rest,
- interface: @interface,
- selectors: selectors)
+ interface: @interface,
+ selectors: selectors)
case element
when /button/, /checkbox/, /element/, /link/
add_method(name: name, context: context, klass: element)
when /text/
add_method(name: name, context: context, klass: element)