Jump to content
Sign in to follow this  
tommytx

How to select a single <SPAN> without having to pull all spans.

Recommended Posts

tommytx

My dashboard has all the stuff grayed.. so I apologize for not encapsulating the code.. Does anyone know why this is shut down.. is it just for me.. Did I do a NO NO and cannot post code??

Here is the questions:

The loop below produces all the Spans just like clock works..

However I really only need the 4th Span... I have tried various things but none so far have worked... Can someone help me with this..I have a couple of things I have tried below.. and as you can see it is the html I need for the Span.. I have already worked with the TEXT in the one above which is fine..

<

Local $oSpans = _IETagNameGetCollection($oIE, 'SPAN')

For $oSpan In $oSpans

ConsoleWrite($oSpan.innerTEXT & @LF)

Next

This is the only thing I need......

Local $oSpan = _IETagNameGetCollection($oIE, 'SPAN')(4)

Local $oSpan = _IETagNameGetCollection($oIE, 'SPAN')[4]

ConsoleWrite($oSpan.innerHTML & @LF)

>

Share this post


Link to post
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
Sign in to follow this  

×