I need to scrap a portion of the text from a table that is created after I enter an "ID" and and click search on a web page. The table is also located on 1 of 3 tabs that are created after the search is complete. I am currently able to enter the product "ID" and click search creating the table but am not able to extract the data.
I have been trying to to use:
Container = IE.document.getElementsByClassName("contId")(0).innertext
Worksheets("Sheet1").Cells(2, 3) = Container
For some reason it seems like VBA doesn't read any of the HTML code on tab-1 which is where the text that I need to scrap is. I think this because as I work my way through the elements of the HTML code using getElementById("").outerHt
ml or getElementByClassName("").
outerHtml I can return the line of code. However when I reach the tab I require "tab-1" it skips past to "tab-2". If I use an element that is unique to tab-1 I get Automation Error: Object variable or With block variable not set.
I have attached the HTML code.
Thanks in advance for your help