What is the format for readText multiline?
I am trying to read text from a floating window with readText. Because the window is mobile I input coordinates based on a static image in the window and use variables to contain the values.
I tried using the example in the refererence manual but I know it cannot be correct because the ('s and )'s do not match.
I am using readText((xval1, yval1, xval2, yval2), multiline: true)) and also readText((xval1, yval1), multiline: true)) neither works
I tried using the example in the refererence manual but I know it cannot be correct because the ('s and )'s do not match.
I am using readText((xval1, yval1, xval2, yval2), multiline: true)) and also readText((xval1, yval1), multiline: true)) neither works
Comments
I used readText with multiline and depending on which parameter I use I get different results. I have turned Contrast, Trim on, separately and together
When Trim is on V become U
When Contrast is on S becomes 5
and sometimes some underscores "_" are converted to "^"
Als the return is just one line with \t and \n separators for tabs and newlines. How do I parse the information out into chunks I can work with?
For this, you can use the "replace" command, documented here: http://docs.testplant.com/?q=content/working-text
So, say your variable Foo contains "ItemA\tItemB\tItemC\nIdemD\nIdemE"... ...and you want to parse it out into a list. You can use code like this: Hope that helps!
I think with the "replace" and "split" commands I can work around the "table" recognition problem.