One of my tests is to press on a link.
The problem is that the link is part of the sentence: “to login, press here” (the “here” is the link).
It won’t work if I’m trying to touch the sentence itself. -> touch(query(“* text:’ to login, press here’”))
Any idea how can I touch the link only?
Tried to use the x/y positions, but tested it on other Android devices and it won’t work correctly (resolution issue).
The query(“*”)
result:
`"id" => nil,
"enabled" => true,
"contentDescription" => nil,
"text" => to login, press here",
"visible" => true,
"tag" => nil,
"description" => "md5434416eb11d5314a89721b66815c1e97.RichText{52847bcc VFED..CL ......I. 0,805-1080,1014}",
"class" => "md5434416eb11d5314a89721b66815c1e97.RichText",
"rect" => {
"center_y" => 984,
"center_x" => 540,
"height" => 209,
"y" => 880,
"width" => 1080,
"x" => 0`
Your thoughts?