Forum Discussion

Yuansheng Zhang's avatar
Yuansheng Zhang
Copper Contributor
Jan 29, 2021

How come I got this error?

You cannot call a method on a null-valued expression. At H:\Test.ps1: 109 char:26 + If ($ie -ne $null) { $ie.Document.parentWindow.scrollTo(0,1300) }

Resources