Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML element by index
#2
Class Htm supports it, but it can be used only with Internet Explorer. Maybe better use Acc?

Example: in Chrome, in a QM forum thread page, find all text objects containing text "Member", navigate to the above link object, print its name.

Macro Macro3055
Code:
Copy      Help
int w=win("- Google Chrome" "Chrome_WidgetWin_1")
Acc a.Find(w "DOCUMENT" "" "" 0x3000)
ARRAY(Acc) b; int i
a.GetChildObjects(b -1 "STATICTEXT" "*Member" "" 0x1) ;;from: Acc a.Find(w "STATICTEXT" "*Member" "" 0x3001)
for i 0 b.len
,b[i].Navigate("previous3" a)
,out a.Name


Messages In This Thread
HTML element by index - by robj - 04-24-2018, 05:03 PM
RE: HTML element by index - by Gintaras - 04-25-2018, 09:22 AM
RE: HTML element by index - by robj - 04-27-2018, 08:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)