TypeError: argument of type ‘int‘ is not iterable「建议收藏」

2022-11-16 10:21:57 浏览数 (1)

解决办法:类型的问题。把int 转成str就可以了

————————————————————————————————————

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:python2libsite-packagesseleniumwebdriversupportselect.py”, line 78, in select_by_value css = “option[value =%s]” % self._escapeString(value) File “D:python2libsite-packagesseleniumwebdriversupportselect.py”, line 219, in _escapeString if ‘”‘ in value and “‘” in value:

TypeError: argument of type ‘int’ is not iterable

后来解决了,类型的问题。把int 转成str就可以了

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/223404.html原文链接:https://javaforall.cn

0 人点赞