Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

_IETableGetCollection on page that needs to be navigated to

$
0
0

I'm trying to get table data from a webpage that needs to be navigated to. I am currently using _IECreate to create an IE object, then using some more code to login to the site. After login is confirmed, I need to navigate to another page and get table data from it. 

 

My code looks like this:

  1. $oIE = _IECreate("url")
  2.  
  3. ; run login script
  4.  
  5. _IENavigate($oIE,"https://.....tablepage")
  6.  
  7. $oTable = _IETableGetCollection($oIE)
  8.  
  9. ConsoleWrite("oTable = " & $oTable & @CRLF)
  10. ConsoleWrite("oTable error = " & @ERROR)

The object $oTable appears to be empty, and an object type error is returned.

 

The messages written into the console are:

oTable = 
oTable error = 0--> IE.au3 V2.4-0 Error from function _IETableWriteToArray, $_IEStatus_InvalidObjectType
 
 
I'm not entirely sure that the _IENavigate function updates the $oIE object, so that might be a source of problems. 
 
The tables on the navigated page are of the normal html type, beginning with <table id=...>, so I don't think the page syntax is an issue.
 
Any help is greatly appreciated 
 
 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>