Jump to content

get text in the middle of a label in html page from for attribute


Recommended Posts

Link to comment
Share on other sites

4 hours ago, Pkillerjd said:

I usually get the collection and than with an if statement i filter the $oLink by it's value using $oLink.value now i would need something like $oLink.for

I already told you...

16 hours ago, Nine said:

.innerText will give you 1926...if this is waht you are looking for

instead of .value

Link to comment
Share on other sites

@Danp2 Why you let me resolve it ?  @FrancescoDiMuro Why do like what danp2 has said ?  And at @Pkillerjd seems you don't want to invest in searching :

Local $colLabels = _IETagNameGetCollection ($oIE,"label")
  For $oLabel in $colLabels
    MsgBox ($MB_SYSTEMMODAL,"",$oLabel.getAttribute("for") & "/" & $oLabel.innerText)
  Next

:ILA3:

Link to comment
Share on other sites

6 hours ago, Nine said:

FrancescoDiMuro Why do like what danp2 has said ?

Because it's what the OP was trying to do, but you were keep suggesting him to use the property .value, which you didn't use in your last post, so, @Danp2 were right :)

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

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...