![](/img/trans.png)
[英]sikuli+selenium+java : need to understand how sikuli works
[英]Sikuli - Selenium -Java
背景:我在Windows機器上安裝了sikuli集成的selenium腳本,並且我的測試用例在Mac(iPad模擬器)上運行。 這台Mac也有一個運行在端口4723上的appium服務器。
我想使用sikuli單擊iPad Simulator上的按鈕。 但這是行不通的。
/* Is there a constructor that accepts an IP argument? Like
Screen s1 = new Screen("ip of mac"); ?*/
Screen s = new Screen();
s.find(System.getProperty("user.dir")+File.seprator+"playbutton.png");
s.click(System.getProperty("user.dir")+File.seprator+"playbutton.png");
我認為您需要在目標設備(即ipad)上使用.png文件。 在多個Windows pc上運行分布式測試時,我已經通過存儲文件並在“之前”步驟中具有將文件復制到本地設備的方法來做到這一點。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.