Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'watir'
- @browser = Watir::IE.new
- @browser.goto 'samplesite.com'
- @browser.rautomation.mouse.move({:x=>210,:y=240})
- @browser.rautomation.mouse.click
- @browser.rautomation.adapter
- mouse = @browser.rautomation.mouse
- puts mouse.position.inspect
- mouse.move :x => 100, :y => 100
- puts mouse.position.inspect
- mouse = RAutomation::Window.new(:adapter => :autoit, :hwnd => @browser.hwnd)
- mouse.move :x => 100, :y => 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement