0
我想重構我的測試從Python 2.7到Python 3.5。在這一刻,我已經有了elementium lib的問題。這個lib有什麼問題?Python3和elementium
return SeElements(
self.browser, context=self, fn=lambda context: [context.items[i]], config=self.config)
錯誤:
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/elementium/drivers/se.py", line 96, in <lambda>
self.browser, context=self, fn=lambda context: [context.items[i]],
TypeError: list indices must be integers or slices, not str
96行:https://github.com/actmd/elementium/blob/master/elementium/drivers/se.py – Macio