There is no "get" action to get value of control

Asked by Hong Anh

I got an issue while automating test case with Sikuli.
I have a table, and it contains a lot of columns and rows. So how to get value from a row of table or a column of table?

Can you help me for this case?

Thanks,
Anh Nguyen

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

what kind of table?

- some kind of html defined table on a web page?

- or data, that you want to use in your script (e.g. excel-sheet, csv-data, ...)

Revision history for this message
Hong Anh (pinkanh20) said :
#2

Table on application, my client wrote application by Eclipse.

Revision history for this message
Hong Anh (pinkanh20) said :
#3

I used region(image).text but it only works with cell is character. It can't get value of cell when cell contains numberics
Do you have any suggestion for this case? Please help me

Thanks

Revision history for this message
Best RaiMan (raimund-hocke) said :
#4

ok, these are known problems with the Region.text() feature: bug 710586

the only other available solution is to use copy&paste and then Env.getClipboard() to get the text into the script.

the concrete solution depends on wether and how the wanted table fields are accessible for selection with mouse and/or keyboard.

Revision history for this message
Hong Anh (pinkanh20) said :
#5

Thanks RaiMan, that solved my question.