Hi people, I’m trying to figure out how to test a TV OS app. The app is based on both swift code and templates generated by javascript.
This is the code that generates the text on the view I’m trying to fetch:
\<text style="tv-text-style: none; color: rgb(0, 185, 242); font-size: 120px; font-weight: bold;"\>\<![CDATA[' + data.code + ']]\>\</text\>\n
Using Safari’s debug tool options and printing out:print (app.debugDescription), it gives me this;
" Other 0x7fb22ba4b360: traits: 8590000128, {{778.0, 372.0}, {363.0, 144.0}}, label: ‘gpupq’"
The “label: qpupq” is the text I’m trying to fetch, and the label will always be a 5 character string with no numbers, so it will be random.
Is there any way I can fetch that text using UI testing in XCode?
- Vegard