For循环的index想作为xpath里面的某个值的变量应该怎么设置呢?

提问 7 57
pluto
pluto LV3 4月7日 14:42 发表
<p><img src="http://talk-cdn.liumatest.cn/e4f3c285-7ff1-48b6-9b80-8bc78f4131be.png" style="max-width: 100%;"></p><p>比如我的xpath里有个只有最后一位是动态的,我在元素维护的时候这么维护没有作用</p><p><img src="http://talk-cdn.liumatest.cn/1b6abf94-11cd-4abd-8e22-bdc86dde5eeb.png" style="max-width:100%;"></p>
收藏(0)  分享
相关标签: 提问 讨论
注意:本文归作者所有,未经作者允许,不得转载
7个回复
  • pluto
    pluto LV3 (楼主)
    4月7日 16:25
    li:nth-child({{j}}+1) > span 支持不支持这种写法来动态操作元素
    0 4
  • pluto
    pluto LV3 (楼主)
    4月7日 22:28
    {{@arithmetic(expression)}} 必须用四则运算的函数包一下,已解决
    0 0