如何解决设计器 3.0 版本中路径无法设置为变量的问题

最近使用 3.0 版本设计器, 在设置路径变量时, 发现路径只要写成变量就无法获取到, 那么如何解决这个问题呢?
举个例子, 在 ie 浏览器中, 获取路径
‘#Cominfo > TABLE:nth-of-type(1) > TBODY:nth-of-type(1) > TR:nth-of-type(1) > TD:nth-of-type(2)’
‘#Cominfo > TABLE:nth-of-type(1) > TBODY:nth-of-type(1) > TR:nth-of-type(2) > TD:nth-of-type(2)’

发现路径的变化时, 我们原本可以将路径写成
path=‘#Cominfo > TABLE:nth-of-type(1) > TBODY:nth-of-type(1) > TR:nth-of-type(%s) > TD:nth-of-type(2)’%i
将 path 传给获取文本组件, 但是在新版本中这个方法不可行

因此, 我们可以直接在获取文本组件的路径中拼接想要的路径形式,
‘#Cominfo > TABLE:nth-of-type(1) > TBODY:nth-of-type(1) > TR:nth-of-type(’+str(i)+’)> TD:nth-of-type(2)’如下:
这样就可以解决设计器获取不到文本的情况啦 ~