locked
Refresh Chrome tab with PowerShell RRS feed

  • Question

  • There is an awesome post about refreshing an IE tab with PowerShell:

    https://social.technet.microsoft.com/Forums/windowsserver/en-US/a9645a53-b4db-43f2-8cbb-1382b175903d/refresh-ie-with-power-shell?forum=winserverpowershell

    "Question: hi ,

    how to refresh an IE tab using power shell ? [I want to refresh only the tab that contains my application url , not other IE windows or tabs ]

    thx"

    "Answer: $YouAppLink = "http://app.site.com/qwerty"

    $ieSet = (New-Object -ComObject Shell.Application).Windows() |  ? {$_.LocationUrl -like "$YouAppLink"}
    $ieSet.Refresh()"

    Can I please have help getting this to refresh a Chrome tab with the url instead of IE?


    • Edited by Joe Schmoeee Thursday, May 17, 2018 10:46 AM Added details
    Thursday, May 17, 2018 10:44 AM

All replies

  • Can't be done.


    \_(ツ)_/

    Thursday, May 17, 2018 10:49 AM
  • Run this to see why:

    (New-Object -ComObject Shell.Application).Windows() |select Name,LocationUrl

    Chrome is not a COM server.


    \_(ツ)_/


    • Edited by jrv Thursday, May 17, 2018 10:54 AM
    Thursday, May 17, 2018 10:51 AM
  • There's something called Selenium and a powershell module to control it.  I haven't used it.  Excuse me while I make this link clickable and make blank lines with control-enter.

    https://stackoverflow.com/questions/19364189/instantiate-chrome-object-in-powershell



    • Edited by JS2010 Thursday, May 17, 2018 12:51 PM
    Thursday, May 17, 2018 12:50 PM
  • There's something called Selenium and a powershell module to control it.  I haven't used it.  Excuse me while I make this link clickable and make blank lines with control-enter.




    Appreciate the effort. Interesting idea. Unfortunately my admin isn't too happy with the downloading of .jars. But thanks for posting.
    Saturday, May 19, 2018 8:31 AM