StuckUser Posted August 4, 2019 Share Posted August 4, 2019 I'm trying to parse through tags on a page to retrieve specific info. The problem I'm running into is the _IETagNameAllGetCollection and _IETagNameGetCollection both return as type Int32. I can run the same code on other urls with no problems. The site im using is an internal one for my company and has a sign-on. Local $oElements = _IETagNameAllGetCollection($oIE1) MsgBox($MB_SYSTEMMODAL, "tagCollection", VarGetType($oElements)) For $oElement in $oElements MsgBox($MB_SYSTEMMODAL, "", _IEPropertyGet($oElements, "innerText")) Next The For loop fails stating must be type Object. I know $oElements isn't an Object from the MsgBox. I've tried everything I could find such as _IELoadWait, but I can't seem to find this specific issue addressed anywhere. I am very new to AutoIT and HMTL in general, but I have done as much due diligence as I can. Link to comment Share on other sites More sharing options...
Danp2 Posted August 4, 2019 Share Posted August 4, 2019 Have you tried checking the contents of @error and @extended following the line with _IETagNameAllGetCollection? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Nine Posted August 5, 2019 Share Posted August 5, 2019 Recently, I have been facing a similar situation where after a few tens of navigates followed by tag collections, the script was failing to get the object even though it was the same type of web page as the previous ones. After testing all sorts of solutions, I finally got the script working if run as x64. Seems that AutoIt was loosing path of objects if run at x86. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
StuckUser Posted August 5, 2019 Author Share Posted August 5, 2019 Genius. Thank you so much. In my case running as administrator fixed it. Im guessing because of the SSO it recognizes my login better as admin? Not 100% sure but it works. Thanks so much! Link to comment Share on other sites More sharing options...
StuckUser Posted August 5, 2019 Author Share Posted August 5, 2019 Quick follow up. Is there a way I can make this program run as admin by default to anyone who downloads and runs it? Link to comment Share on other sites More sharing options...
Danp2 Posted August 5, 2019 Share Posted August 5, 2019 See #RequireAdmin entry in the help file Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
StuckUser Posted August 5, 2019 Author Share Posted August 5, 2019 well that was obnoxiously simple and i feel silly for not searching that one first. thx! 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