51Testing软件测试论坛

标题: python参数化xpath [打印本页]

作者: yingjie700    时间: 2019-1-11 09:20
标题: python参数化xpath
求各位大佬看下我这个代码已经转str了,为什么还说我类型必须是str  ,path=//*[@id="memberTable"]/div/div

    l = path+'/a['+n+']'
TypeError: must be str, not int







欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2