data.csv的格式為
item,
447-709-03,
將data.csv匯入至KR
結尾用endLoadVars包起來,取值的方式為${csv的欄位名稱},
command | Target | Value |
loadVars | data.csv | |
echo | ${item} | |
endLoadVars |
command | Target | Value |
type | id=gloabalSearchField | ${item} |
2.選擇新開啟的視窗
command | Target | Value |
selectWindow | title=編輯零件 |
3.紀錄該規則下,有多少筆符合的規則
command | Target | Value |
storeXpathCount | xpath=//div[contains(@class,'x-grid3-cell-inner x-grid3-col-number')]/a[contains(@class,'linkfont')] | xyz |
ref.
selectWindow - how does this command work?
Selenese (Selenium IDE) Commands Reference
0 意見:
張貼留言