TypeError: argument of type 'int' is not iterable

TypeError: argument of type 'int' is not iterable



Traceback (most recent call last):
  File "C:/Users/lenovo/PycharmProjects/DoubleU/TestCase/test.py", line 131, in <module>
    Select(driver.find_elements_by_id('select_tag_id_0')[i]).select_by_value(m)
  File "D:\python2\lib\site-packages\selenium\webdriver\support\select.py", line 78, in select_by_value
    css = "option[value =%s]" % self._escapeString(value)
  File "D:\python2\lib\site-packages\selenium\webdriver\support\select.py", line 219, in _escapeString
    if '"' in value and "'" in value:

TypeError: argument of type 'int' is not iterable




我的处理方式。。:

for i in range(8,16):
    for j in range(467,475):
        Select(driver.find_elements_by_id('select_tag_id_0')[i]).select_by_value(j)


依然不行


猜你喜欢

转载自blog.csdn.net/qq_39208536/article/details/80886796
今日推荐