allcapone1912 Posted October 3, 2014 Share Posted October 3, 2014 hi,can someone help me with IE.au3 can not get value by id #include <IE.au3> $oIE = _IECreate("https://watchlist.yahoo.com/?.lang=en-US&.intl=us&.username=Mike2434Smith2424") Sleep(1000) $oQuery = _IEGetObjById ($oIE, "get_now_msg") MsgBox(4096,"", $oQuery) i can make its work with Mozila FF.au3 #include <ff.au3> _FFStart("https://watchlist.yahoo.com/?.lang=en-US&.intl=us&.username=Mike2434Smith2424", Default, 2) Sleep(1000) $oQuery = _FFXpath("//div[@id='get_now_msg']", "textContent", 2) MsgBox(4096,"", $oQuery) but with IE.au3 have tried a lot of of combination with no results,can someone help me? Link to comment Share on other sites More sharing options...
Solution Danp2 Posted October 4, 2014 Solution Share Posted October 4, 2014 The _IEGetObjById is working fine. It's your MsgBox that is the issue (you can't display an object reference). Try this instead: MsgBox(4096,"", $oQuery.innerHTML) Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Kyan Posted October 4, 2014 Share Posted October 4, 2014 The _IEGetObjById is working fine. It's your MsgBox that is the issue (you can't display an object reference). Try this instead: MsgBox(4096,"", $oQuery.innerHTML) Sorry for the offtopic, there's any doc/help file with all the VB comands we can use with IE objects? (like the one you used, innerHTML) Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
allcapone1912 Posted October 4, 2014 Author Share Posted October 4, 2014 The _IEGetObjById is working fine. It's your MsgBox that is the issue (you can't display an object reference). Try this instead: MsgBox(4096,"", $oQuery.innerHTML) Yes, You're absolutely right. Thanks Link to comment Share on other sites More sharing options...
mikell Posted October 4, 2014 Share Posted October 4, 2014 @Kyan $oQuery.innerHTML <=> _IEPropertyGet($oQuery, "innerHTML") So look at the _IEPropertyGet field in the helpfile Else : http://msdn.microsoft.com/en-us/library/ie/ms533897%28v=vs.85%29.aspx Kyan 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now