Search the Community
Showing results for tags 'internet.explorer'.
-
Greetings, all. At my wit's end trying to read element properties derived from css using IE.au3. The information here seems not to work for me, sadly. Anyway, my test case should be the best explanation. #include <IE.au3> Local $window_width = 640 Local $window_height = 480 $oIE = _IECreate() Local $sHTML = "" $sHTML &= "<HTML>" & @CR $sHTML &= "<TITLE>UNIQUE IDENTIFIER FOR WINDOW CLOSE</TITLE>" & @CR $sHTML &= "<HEAD>" & @CR $sHTML &= '<STYLE>.image_div {background-image: url("http://i.imgur.com/T8A46Yb.png"); width: 256px; height: 256px;}</STYLE>' & @CR $sHTML &= "</HEAD>" & @CR $sHTML &= '<body><table><tbody><tr><td id="my_div" class="image_div"></td></tr></tbody></table></body></html>' _IEDocWriteHTML($oIE, $sHTML) _IEAction($oIE, "refresh") Local $my_div = _IEGetObjById($oIE, "my_div") ;I'm trying to examine the DOM and SOMEHOW get the "http://i.imgur.com/T8A46Yb.png" address ;these seem to return empty strings ConsoleWrite(@CRLF & '$my_div.getAttribute("style") - ' & $my_div.getAttribute("style")) ConsoleWrite(@CRLF & '$my_div.getAttribute("background-image") - ' & $my_div.getAttribute("background-image")) ConsoleWrite(@CRLF & '$my_div.getAttribute("cssText") - ' & $my_div.getAttribute("cssText")) ;these return zero ConsoleWrite(@CRLF & '$my_div.style.csstext - ' & $my_div.style.csstext) ConsoleWrite(@CRLF & '$my_div.style.cssText - ' & $my_div.style.cssText) ConsoleWrite(@CRLF & '$my_div.style.CSSText - ' & $my_div.style.CSSText) ConsoleWrite(@CRLF) sleep(5000) WinClose("UNIQUE IDENTIFIER FOR WINDOW CLOSE") Basically I'm trying to get the src of a background image set through css. Any help would be much appreciated. Thank you for your time.