Posts: 66
Threads: 19
Joined: May 2015
I am not experienced with finding accessible objects and would like to know how I can find out for each accessible object found in a web page what the possible actions are and what they do?
All I know is
a.DoDefaultAction
How do I find a list for each object please?
Thank you in advance
Posts: 229
Threads: 22
Joined: Sep 2007
type a. then a list will come up.
Posts: 12,092
Threads: 142
Joined: Dec 2002
Max 1 action is accessible, and it is called "default". To see what it does, click the Properties button in dialog "Find accessible object". To see actions of all objects, run this macro.
Macro
Macro7
out
int w=win("Accessible Objects - List of possible actions? - Google Chrome" "Chrome_WidgetWin_1")
Acc a.Find(w "DOCUMENT" "Accessible Objects - List of possible actions?" "" 0x3001)
ARRAY(Acc) b
a.GetChildObjects(b -1)
int i
for i 0 b.len
,str da=b[i].a.DefaultAction(b[i].elem); err continue
,if(da.len=0) continue
,str role name
,b[i].Role(role)
,name=b[i].Name
,out F"{role%%-10s} name={name%%-20s} action={da}"
Posts: 66
Threads: 19
Joined: May 2015