sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23546
[Question #242529]: text() is being temperamental
New question #242529 on Sikuli:
https://answers.launchpad.net/sikuli/+question/242529
Hey there (using Sikuli r930 and Windows Vista 32 bit.)
I'm trying to determine the number of rows withing a table in Microsoft Word 2000.
I was originally:
right click the table
click table properties
click rows
take the text() of the rows using the following code.
click("TablePgopert.png")
click("Column.png")
click("Row-1.png")
start = find("Rows1.png")
rows = start.right(12).text()
click("OK.png") or click("Cancel.png")
print rows
this was effective for some numbers, however for the numbers 13, 21 and 30; text() failed utterly.
even defining the region didn't work:
Region(x,y,w,h).text()
Is there any way to determine the total number of rows in this table?
Another method i experimented with was exists(image below end of table) and ending a loop but it would often fail.
Many thanks
Australia
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.