我是sikuli的新手,我想运行 firefox 并使用 sikuli 在其上设置代理(通过 foxyproxy)。此代码打开 Firefox 并加载“ https://google.com ”。如何单击 Firefox 工具栏中的 foxyproxy 按钮并使用 sikuli 创建新代理?
import org.sikuli.script.*;
public class SikulixTest {
public static void main(String[] args) {
Screen s = new Screen();
App browser = App.open("Firefox");
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
browser.focus();
s.highlight(0);
s.type("https://google.com" + Key.ENTER);
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
browser.close();
}
}
谢谢,