Selenium IDE:嵌套变量

Selenium IDE: Nested variables

是否可以在 Selenium 中评估带有嵌套变量的表达式 IDE? 示例:

store | 2 | scenario
store |  | data${scenario}Cost

所以data2Cost =

store | ${data{$scenario}Cost} | ${scenario}Result
echo  | ${scenario}Result |

returns 2Result = ${data2Cost} 反对 2Result =

您可以使用 storeEval 将求值表达式存储到变量中 这 tutorial 帮助我实现了

|store | 2 | scenario | 
|store |  | data${scenario}Cost | 
|storeEval | storedVars['data${scenario}Cost'] | ${scenario}Result | 
|storeEval | storedVars['${scenario}Result'] | MainResult | 
|echo | ${MainResult} |