tommytx Posted May 8, 2013 Share Posted May 8, 2013 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) > Link to comment Share on other sites More sharing options...
Danp2 Posted May 8, 2013 Share Posted May 8, 2013 Read the help entry for IETagNameGetCollection. You should be able to pass a positive integer for the index value to indicate a specific element that you want to select, like this: Local $oSpan = _IETagNameGetCollection($oIE, 'SPAN', 3) Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now