【发布时间】:2016-08-15 23:28:10
【问题描述】:
我正在尝试创建动态字典变量。假设我有&{Day_Dropdown_Value},它的变量为UK=li:nth-of-type(5) 和AU=div:nth-of-type(7)。我可以通过国家参数使用这个字典变量,比如&{Day_Dropdown_Value}[${COUNTRY}]。但实际上我想让字典的变量像UK=li:nth-of-type(${value}) 一样动态。这种情况有解决办法吗?
【问题讨论】:
标签: selenium dictionary robotframework