← Back to team overview

sikuli-driver team mailing list archive

[Question #654029]: import xlrd method not copying numbers

 

New question #654029 on Sikuli:
https://answers.launchpad.net/sikuli/+question/654029

i used following code to fetch the value from excel,

import xlrd
import datetime
EXCELFILE = "D:\\Muthu\\Datamanipulation\\book1.xlsx"
book = xlrd.open_workbook(EXCELFILE)
sheet = book.sheet_by_index(0)
celltype = sheet.cell_type(40,33)
value = sheet.cell_value(40,33)
openApp("notepad")
wait(2)
paste(value)

in the row40,col33 if the value is string(ex:10REC22M) script copy the value and paste.
But in the row40,col33 if the value is number(ex: 100388) i got the error

[error] TypeError ( paste(): 1st arg can't be coerced to String )


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.