【发布时间】:2018-04-21 16:44:38
【问题描述】:
这是我的代码,我不断收到 TypeError: must be str, not tuple
variable = ["Variable1", "Variable2"]
def command(self, *arg):
numparm = len(arg)
for i in range (0,numparm):
self.driver.find_element_by_xpath(".//div[text()='"+ arg[i] +"']")
command(variable)
【问题讨论】:
标签: python python-2.7 python-3.x selenium selenium-webdriver