jerem488 Posted July 29, 2019 Share Posted July 29, 2019 Hi all, I have an array with many URLs. I want parse this URLs with _ienavigate and it stop at the 2nd URL without error... I tested _IELoadWaitTimeout(), the problem is still present. Res() Func Res() Local $o_IE = _IECreate("about:blanck", 0);, 0) Local $aURLs[5] = ["http://www.tennisendirect.net/atp/match/janko-tipsarevic-VS-radu-albot/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/grigor-dimitrov-VS-steve-johnson/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/cedrik-marcel-stebe-VS-soon-woo-kwon/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/taro-taro-VS-tennys-sandgren/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/gregoire-barrere-VS-cameron-norrie/abierto-mexicano-de-tenis-mifel-los-cabos-2019/"] For $aURL In $aURLs ConsoleWrite($aURL & @LF) _IENavigate($o_IE, $aURL) Next EndFunc Thanks Qui ose gagneWho Dares Win[left]CyberExploit[/left] Link to comment Share on other sites More sharing options...
Seminko Posted July 29, 2019 Share Posted July 29, 2019 It works well for me even without _IELoadWait($o_IE). Try this version with MsgBox to check whether it loads. If it does, I would do a Do Sleep / Until a specific element common to all the pages is found. #include <IE.au3> Res() Func Res() Local $o_IE = _IECreate("about:blanck", 0);, 0) Local $aURLs[5] = ["http://www.tennisendirect.net/atp/match/janko-tipsarevic-VS-radu-albot/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/grigor-dimitrov-VS-steve-johnson/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/cedrik-marcel-stebe-VS-soon-woo-kwon/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/taro-taro-VS-tennys-sandgren/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/gregoire-barrere-VS-cameron-norrie/abierto-mexicano-de-tenis-mifel-los-cabos-2019/"] For $aURL In $aURLs ConsoleWrite($aURL & @LF) _IENavigate($o_IE, $aURL) _IELoadWait($o_IE) MsgBox(1, "Loaded", "URL '" & $aURL & "' was loaded successfully.") Next EndFunc Link to comment Share on other sites More sharing options...
jerem488 Posted July 30, 2019 Author Share Posted July 30, 2019 With this code, the problem is still here 😕 Qui ose gagneWho Dares Win[left]CyberExploit[/left] Link to comment Share on other sites More sharing options...
Nine Posted July 30, 2019 Share Posted July 30, 2019 Works well for me too with the OP code. Do you have the latest version of AutoIt ? “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...
Seminko Posted July 30, 2019 Share Posted July 30, 2019 @jerem488, as Nine asked - do you use the latest version of AutoIt? Is there any more code in your script? If so, post it. Also, try this and report back: #include <IE.au3> Res() Func Res() Local $o_IE = _IECreate("about:blanck", 0);, 0) Local $aURLs[5] = ["http://www.tennisendirect.net/atp/match/janko-tipsarevic-VS-radu-albot/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/grigor-dimitrov-VS-steve-johnson/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/cedrik-marcel-stebe-VS-soon-woo-kwon/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/taro-taro-VS-tennys-sandgren/abierto-mexicano-de-tenis-mifel-los-cabos-2019/", _ "http://www.tennisendirect.net/atp/match/gregoire-barrere-VS-cameron-norrie/abierto-mexicano-de-tenis-mifel-los-cabos-2019/"] For $aURL In $aURLs ConsoleWrite($aURL & @LF) _IENavigate($o_IE, $aURL) If @error Then MsgBox(16, "_IENavigate Error", "Failed to navigate to URL '" & $aURL & "' - error " & @error) EndIf _IELoadWait($o_IE) If @error Then MsgBox(16, "_IELoadWait Error", "Failed to load wait to URL '" & $aURL & "' - error " & @error) EndIf Next EndFunc 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