2016-04-26 37 views
1

我是Appium Mobile Automation工具的新手。我在線學習了幾個教程,並且能夠使用Mac機器上的Appium的「記錄」功能記錄測試。但是,我的要求是在Windows機器上生成測試用例。我正在尋找在Appium和偶然發現了這個 link如何在Windows上運行Appium Inspector?

我想我的本地Windows機器上運行,這一點,但有下列錯誤

Uncaught ReferenceError: require is not defined 
file:///C:/browser/icons/style.css Failed to load resource: net::ERR_FILE_NOT_FOUND 
file:///C:/browser/styles/style.css Failed to load resource: net::ERR_FILE_NOT_FOUND 
file:///C:/node_modules/angular-ui-layout/src/ui-layout.css Failed to load resource: net::ERR_FILE_NOT_FOUND 
file:///C:/node_modules/angular-material/angular-material.min.css Failed to load resource: net::ERR_FILE_NOT_FOUND 
http://localhost:35729/livereload.js Failed to load resource: net::ERR_CONNECTION_REFUSED 

任何人都可以指導我如何能得到這個運行我Windows機器?

回答

1

您必須使用uiautomator查看器來查找識別元素的路徑,因爲Windows中的記錄器不起作用。

+0

檢查員是否與錄像機不同? –

+1

檢查員是搜索圖標,當你點擊它時,打開的窗口提供記錄選項,如果你點擊記錄你的腳本將被生成 – Emna

+1

好吧,但是我在這裏關於這個https://github.com/ appium中的appium/appium-inspector庫 –