Jump to content

How to get an index of a web page links


avidovi
 Share

Recommended Posts

I need to press a specific link in a web page which have a lot of information.

i just cannot pinpoint the correct index number.

is there any tool to see the index numbers? i have tried the "Inspect element" in Chrome, it does not mention something about Index.

 

I really appreciate your help. (!)

AD

 

Link to comment
Share on other sites

Hi avidovi

also, you can help yourself by adapting to your purpose a little script like this :)

#include <IE.au3>
#include <array.au3>

Local $oIE = _IECreate("http://www.autoitscript.com") ; <-- put here your link

Local $oLinks = _IELinkGetCollection($oIE)
Global $Links[@extended][3]

$Index = 0
For $oLink In $oLinks
    $Links[$Index][0] = $Index
    $Links[$Index][1] = $oLink.id
    $Links[$Index][2] = _IEPropertyGet($oLink, "innerhtml")
    $Index += 1
Next
_ArrayDisplay($Links)

P.S. (off topic further info)
in Firefox browser, if you Rightclick on an element of the page and select "analyze element" you get a lot of info,
also, when the page of the developer tools is displayed with the element info, if you click on a little icon with a cube located on the upper right side of the tools area, you will see an amazing  :o  view of the page web in 3D (can also be rotated) with all the elements layered

Edited by PincoPanco

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...