Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, May 17, 2018 10:44 AM
There is an awesome post about refreshing an IE tab with PowerShell:
"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?
All replies (4)
Thursday, May 17, 2018 10:49 AM
Can't be done.
\(ツ)_/
Thursday, May 17, 2018 10:51 AM
Run this to see why:
(New-Object -ComObject Shell.Application).Windows() |select Name,LocationUrl
Chrome is not a COM server.
\(ツ)_/
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.
https://stackoverflow.com/questions/19364189/instantiate-chrome-object-in-powershell
Saturday, May 19, 2018 8:31 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.
Appreciate the effort. Interesting idea. Unfortunately my admin isn't too happy with the downloading of .jars. But thanks for posting.