IE: Print style of textbox

Recommended Posts

longphant 0

longphant 0

I am on a website where I can run searches. I input some parameters, and click the Search button. A text box then appears which says "Updating". It then disappears when the results are ready. Then it shows the results. I am trying to automate some scripts to run several searches and record them. _IELoadWait() does not work because it doesn't actually load a new page. Every time I hit the search button, it just pops up the "Updating" box, then shows me the results.

Thus, my solution is to search for the "Updating" box. In this case, the text box always exists; it is simply hidden or visible. The tag for the "Updating" textbox is a "div". While inspecting the element, I found It has a "style" attribute. When hidden, it shows "style=display: none;". When the textbox is visible, "style=display: block;". So given this, I can simply just wait for the style to become "display: none;" before proceeding. The only problem is...i can't seem to access this attribute. $tag.style is blank. $tag.getAttribute("style") is also blank.

Does anyone know how I can access this attribute? It seems to be the only way I can determine when the results are ready. (without pixel detection).