我正面临着将ecl命令作为过程输入进行传递的问题。
我有一个ecl命令:
get-editor [format "Configuration Editor - %s" $projNmae] | click我想把这个ecl命令作为过程中的参数输入。我所做的是:
proc "wait-until-element-is-loaded" [val editor] {
loop [val count 0] {
try {
$editor | click
} -catch {
if [eq $count 4] {
// 30 seconds
throw-error [concat "element can not be loaded within the wait time. " $editor]
}
wait 100
recur [$count | plus 1]
}
}
}然后像这样调用该过程:
wait-until-element-is-loaded | get-editor [format "Configuration Editor - %s" $projName]或
wait-until-element-is-loaded -editor get-editor [format "Configuration Editor - %s" $projName]但它不起作用。我想这样做是因为我想在执行时在不同的时间传递不同的参数。
谢谢
https://stackoverflow.com/questions/51271324
复制相似问题