2016-11-11 63 views

回答

0

在Sikuli没有办法做到这一点。我可以推荐你使用Selenium。这是Web测试的最佳框架。

0

我会这样做的击键。选择全部,使用剪贴板复制粘贴。

click("url.png") # select the url location; may be a bit iffy/browser dependent 
type("a", KEY_CTRL) # select all 
type("c", KEY_CTRL) # copy to clipboard 
click("target.png") # go to your target 
type("v", KEY_CTRL) # and paste 

参考:
http://doc.sikuli.org/keys.html

+0

选择地址栏通常也可以使用Ctrl + L键来完成,见http://www.computerhope.com/tips /tip18.htm – Bookeater

0

简单的解决方案

click(your link);sleep(2) # or wait for loading to finish via an exists() 
type("l",Key.CTRL) # hotkey for address bar selection on FF and GC 
type("c",Key.CTRL) #copies