EAP get all text from window

Post your questions and help other users.

Moderator: Martin

Post Reply
dragon
Posts: 29
Joined: 10 Sep 2015 08:13

EAP get all text from window

Post by dragon » 27 Jun 2016 14:54

App task started- com.android.chrome
Script- text = getTextInActiveWindow()
Notification on screen- {text}

My notification shows me the the http address of the website in chrome.
I notice that the getTextInActiveWindow() works amazing for other apps, but how about chrome? I'm thinking that I'm supposed to use a different action aren't I?
How do get automagic to query all text on a webpage? Currently I use Autoinput UI Query, and it puts all text queried on a webpage into %aitext
I'm trying to get rid of autoinput, any help would be much appreciated! thanks

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: EAP get all text from window

Post by Martin » 28 Jun 2016 18:20

Hi,

Chrome an other browsers usually provide the visible text as the content description. You can try to use function getContentDescription() to see if this works.

Regards,
Martin

dragon
Posts: 29
Joined: 10 Sep 2015 08:13

Re: EAP get all text from window

Post by dragon » 29 Jun 2016 04:38

Thank you.

Post Reply