Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
auto scroll each <H2> item => firefox
#1
In this page: http://freephotoshop.org/page/188/

I want to scroll to each <h2> item.
First scroll to "Free Photoshop patterns-5" ...[wait 1 sec]... then scroll to: "Free Photoshop patterns-4" ...[wait 1 sec]... then etc...

I had it working in internet explorer 8 and 9 with full download actions.
The problem is that internet explorer 8 and 9 don't act well with the site (often blank pages, freezing, etc...).
Firefox handles the site much much better.

I am now trying to make it for firefox, but is it possible?
Quick Macros has "HTML element actions" which works for IE8 and IE9 but not firefox (or I have overseen somthing?).
The "Accessible object actions" >> "Scroll web page" option also doesn't seem to work with firefox.

Mind you, I do not want to target the value/content within the <h2> tags, I want to target the <h2> itself.
So I can do all to other pages. (all other pages have exact the same <h2> headers which are all links).
Every page has 5 <h2> items.
#2
Macro Macro1796
Code:
Copy      Help
int w=wait(2 WV win("Firefox" "Mozilla*WindowClass" "" 0x804))
Acc ac.FindFF(w "DIV" "" "id=content" 0x1004 2) ;;find common parent of h2 objects
ARRAY(Acc) a; int i
ac.GetChildObjects(a 1 "h2") ;;get all descendant objects at level 1 where role is h2
for i 0 a.len
,a[i].WebScrollTo
,a[i].Navigate("first") ;;h2 -> LINK
,out a[i].Name
,1
#3
Thank you!!!!


Forum Jump:


Users browsing this thread: 1 Guest(s)