SHARE
TWEET

IE List Navigator

Songersoft Jul 12th, 2019 (edited) 198 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <IE.au3>
  2. #include <Array.au3>
  3. Local $sURL = "https://minx.stitchfix.com/fixes/"
  4. Local $iTryAttach = 0, $iVisible = 1, $iWait = 1, $iFocus = 1
  5. $oIE = _IECreate($sURL, $iTryAttach, $iVisible, $iWait, $iFocus)
  6. $hGUI = _IEPropertyGet($oIE, "hwnd")
  7. WinSetState($hGUI, "", @SW_MAXIMIZE)
  8.  
  9. ; Field names
  10. $TAG_NAME = "assignment-list-item table-row-group "
  11.  
  12. $aRet = $oIE.document.querySelectorAll('a.assignment-list-item.table-row-group') ; All <a> elements with those classes
  13.  
  14. If IsObj($aRet) Then out("$oIE.document.querySelectorAll: Returned Object")
  15. For $iO In $aRet
  16.     out("outerText", $iO.outerText)
  17.     _IEAction($iO, "Click")
  18.     _IELoadWait($oIE)
  19.     _IENavigate($oIE, $sURL)
  20.     _IELoadWait($oIE)
  21. Next
  22.  
  23. out("!Done")
  24. Exit
  25.  
  26. ; Debug output function
  27. ; Writes text to Console Window located in this editor window
  28. Func out($out1 = "", $out2 = "", $out3 = "", $out4 = "", $out5 = "", $out6 = "", $out7 = "", $out8 = "", $out9 = "", $out10 = "", $out11 = "", $out12 = "", $out13 = "", $out14 = "", $out15 = "")
  29.     $output = $out1 & " " & $out2 & " " & $out3 & " " & $out4 & " " & $out5 & " " & $out6 & " " & $out7 & " " & $out8 & " " & $out9 & @CRLF
  30.     ConsoleWrite($output)
  31.     Return $output
  32. EndFunc   ;==>out
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top