SHARE
TWEET

Untitled

a guest Jun 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $siteLink = "https://time.is/";
  2. $IsVisible = $True;
  3.  
  4. # start IE
  5. $ie = New-Object -ComObject "InternetExplorer.Application";
  6. $ie.Visible = $IsVisible;
  7.  
  8. # goto to site
  9. $ie.Navigate($siteLink) | Out-Null;
  10. while ($ie.Busy) {
  11.     Start-Sleep 2;
  12. }
  13.  
  14. $doc = $ie.Document;
  15. $syncDtlElement = [System.__ComObject].InvokeMember(“getElementById”,[System.Reflection.BindingFlags]::InvokeMethod, $null, $doc, 'syncDtl');
RAW Paste Data
Top