Jump to content

How do you get the next "cell"


Valnurat
 Share

Recommended Posts

I'm trying to get some info from dell.com page. I use a servicetag to find the computer. From the computerinfo I would like to get the "Shipping Date", but the date is on the next "cell".

I have done this and I don't know if this is correct aproach, but I do get some info out.

I just don't know how to "jump" to the next cell.

 

#include <IE.au3>
#include <MsgBoxConstants.au3>

Local $oIE = _IECreate("http://www.dell.com/support/home/dk/da/dkbsdt1/product-support/servicetag/gnn5f12/configuration")
Local $oTds = _IETagNameGetCollection($oIE, "td")
Local $sTxt = ""
For $oTd In $oTds
    $sTxt &= $oTd.innertext & @CRLF
Next
MsgBox($MB_SYSTEMMODAL, "Form Input Type", "         Types :" & @CRLF & $sTxt)

_IEQuit($oIE)

I have seen something like this in VBscript

Cell.NextSibling.NextSibling.innertext

Is there someone who could help me.

 

Yours sincerely

Kenneth.

Link to comment
Share on other sites

Try:

#include <IE.au3>
#include <MsgBoxConstants.au3>

Local $oIE = _IECreate("http://www.dell.com/support/home/nz/en/nzbsdt1/product-support/servicetag/gnn5f12/configuration")
_IELoadWait($oIE)
Local $oTds = _IETagNameGetCollection($oIE, "td")
Local $sTxt
For $oTd In $oTds
    If StringStripWS($oTd.innertext, 7) = "Shipping Date" Then $sTxt = StringStripWS($oTd.NextElementSibling.InnerText, 7)
Next
MsgBox($MB_SYSTEMMODAL, "Form Input Type", "         Types :" & @CRLF & $sTxt)

_IEQuit($oIE)

 

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

×
×
  • Create New...