Method: Uia::Element#drag
- Defined in:
- lib/uia/element.rb
#drag(info) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/uia/element.rb', line 29 def drag(info) start_x, start_y = info[:start] end_x, end_y = info[:end] left, top = bounding_rectangle coords = [ left + start_x, top + start_y, left + end_x, top + end_y ] until focused? focus end Library.drag *coords end |