Python - TypeError:类型'Cell'的对象没有len()(Python - TypeError: object of type 'Cell' has no len())
我正在用Python处理Selenium。
我正在编写一个代码,它将从Excel文件中获取数据并在WebPortal上打出相同的数据。 但是我收到错误:
TypeError: object of type 'Cell' has no len()
以下是代码:
for X in range(1,rowCount):
for Y in range(0,colCount):
cellData = worksheet.cell(X,Y)
driver.find_element_by_id("XYZ").send_keys(cellData)
I am working on Selenium with Python.
I am writing a code which will fetch the data from an excel file and punch the same data on the WebPortal. But I am getting the error:
TypeError: object of type 'Cell' has no len()
Below is the code:
for X in range(1,rowCount):
for Y in range(0,colCount):
cellData = worksheet.cell(X,Y)
driver.find_element_by_id("XYZ").send_keys(cellD