lib/sikulinewrc/remote_screen.rb in sikulinewrc-0.0.6 vs lib/sikulinewrc/remote_screen.rb in sikulinewrc-0.0.7
- old
+ new
@@ -26,10 +26,14 @@
def click(psc, timeout = 30)
execute_command(@serv, "click", :psc => psc, :timeout => timeout) { |xml_dump| process_result(xml_dump, psc) }
end
+ def double_click(psc, timeout = 30)
+ execute_command(@serv, "double_click", :psc => psc, :timeout => timeout) { |xml_dump| process_result(xml_dump, psc) }
+ end
+
def right_click(psc, timeout = 30)
execute_command(@serv, "right_click", :psc => psc, :timeout => timeout) { |xml_dump| process_result(xml_dump, psc) }
end
def find(psc)
@@ -46,15 +50,23 @@
def drag_drop(psc, xoffset, yoffset)
execute_command(@serv, "drag_drop", :psc => psc, :xoffset => xoffset, :yoffset => yoffset)
end
+ def click_location(xoffset, yoffset)
+ execute_command(@serv, "click_location", :xoffset => xoffset, :yoffset => yoffset)
+ end
+
def send_alt_combkey(prskey)
execute_command(@serv, "send_alt_combkey", :prskey => prskey)
end
def send_ctrl_combkey(prskey)
execute_command(@serv, "send_ctrl_combkey", :prskey => prskey)
+ end
+
+ def exists(psc, timeout = 30)
+ execute_command(@serv, "exists", :psc => psc, :timeout => timeout)
end
private
def raise_exception(exception_message, psc)