How do i define a method for this ?

22 views
Skip to first unread message

seun are

unread,
Jul 30, 2015, 6:48:07 AM7/30/15
to calabash-android
Hi Guys i am automating a CrossWalk web app on android and i have this to be defined as a method that can be recalled to reuse for different texts assigned:

txt_from_screen= query("XWalkView css:'h2' {textContent CONTAINS 'Showing results for \"#{text}\"'}")

if (txt_from_screen==false)
fail("text not shown txt_from_screen:#{txt_from_screen}")
end


Please kindly help with this if anyone can.

i am looking to:
 def must_see_text
XXXXX
end.

Thanks

 

tobias....@xamarin.com

unread,
Jul 30, 2015, 10:06:51 AM7/30/15
to calabash-android, lumm...@gmail.com, lumm...@gmail.com
You are already posted a topic for this. Please do not post multiple topics about the same subject.

seun are

unread,
Jul 30, 2015, 11:55:57 AM7/30/15
to calabash-android, tobias....@xamarin.com
I think this is a different question but if you insist i will just ignore it.
Thanks
Reply all
Reply to author
Forward
0 new messages