Pages - Menu

2019年8月15日 星期四

[Katalon Recorder]命令教學筆記 PartII

1.取得csv裡面的資料
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.紀錄該規則下,有多少筆符合的規則

commandTargetValue
storeXpathCountxpath=//div[contains(@class,'x-grid3-cell-inner x-grid3-col-number')]/a[contains(@class,'linkfont')] xyz

將規則 //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

沒有留言:

張貼留言