YasserKhalil
Well-Known Member
Hello everyone
I am trying to scrape a web page and there will be an element like that
The green rectangle is the class name that I identified easily .. and I need to go back using previous sibling to refer to the blue rectangle part
I used that part
and I tried some combinations but didn't work for me
Any ideas please
I am trying to scrape a web page and there will be an element like that
The green rectangle is the class name that I identified easily .. and I need to go back using previous sibling to refer to the blue rectangle part
I used that part
Code:
For Each eRow In .document.getElementById("PropertySummary_FactsTable").getElementsByTagName("tr")
'Debug.Print eRow.innerText
If InStr(eRow.innerText, "Garage") > 0 And Not (InStr(eRow.innerText, "Garage (spaces)") > 0) Then
MsgBox eRow.getElementsByClassName("changed").PreviousSibling.innerhtml
Stop
End If
Next
and I tried some combinations but didn't work for me
Any ideas please