lib/uia/element.rb in uia-0.1.2 vs lib/uia/element.rb in uia-0.1.2.1
- old
+ new
@@ -36,11 +36,13 @@
top + start_y,
left + end_x,
top + end_y
]
- focus
+ until focused?
+ focus
+ end
Library.drag *coords
end
def send_keys(*keys)
Library.send_keys @element, Keys.encode(keys)
@@ -88,11 +90,9 @@
Library.click_center(@element)
true
end
def focus
- until focused?
- Library.focus(@element)
- end
+ Library.focus(@element)
end
end
end
\ No newline at end of file