ruby - Calabash-android: Trying to 'touch' a link that part of a sentence -


one of tests press on link.

the problem link part of sentence: “to login, press here” (the “here” link).

it won’t work if i’m trying touch sentence itself. -> touch(query(“* text:’ login, press here’”))

any idea how can touch link only?

tried use x/y positions, tested on other android devices , won’t work correctly (resolution issue).

the query(“*”) result:

`"id" => nil,            "enabled" => true, "contentdescription" => nil,               "text" => 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?

have tried ? :

then /^i touch "([^\"]*)" text$/ |text|       tap_when_element_exists("* {text contains[c] '#{text}'}")     end 

can provide me more info in container see above , under this. thank ;)


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -