Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master> Invoke-PowerWebShot -URL http://www.pornhub.com
- New-Object : Exception calling ".ctor" with "2" argument(s): "The file .\PhantomJS.exe does not exist. The driver can
- be downloaded at http://phantomjs.org/download.html"
- At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:93 char:11
- + $driver = New-Object OpenQA.Selenium.PhantomJS.PhantomJSDriver($phant ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
- + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
- The property 'Url' cannot be found on this object. Verify that the property exists and can be set.
- At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:96 char:1
- + $driver.Url = "about:constant"
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [], RuntimeException
- + FullyQualifiedErrorId : PropertyNotFound
- [*] The output directory 2018-05-25-104313 does not exist. Creating directory 2018-05-25-104313.
- Directory: C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master
- Mode LastWriteTime Length Name
- ---- ------------- ------ ----
- d----- 5/25/2018 10:43 AM 2018-05-25-104313
- The property 'Url' cannot be found on this object. Verify that the property exists and can be set.
- At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:169 char:9
- + $driver.Url = $name
- + ~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [], RuntimeException
- + FullyQualifiedErrorId : PropertyNotFound
- You cannot call a method on a null-valued expression.
- At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:170 char:9
- + $driver.Manage().Window.Maximize()
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [], RuntimeException
- + FullyQualifiedErrorId : InvokeMethodOnNull
- You cannot call a method on a null-valued expression.
- At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:178 char:9
- + $driver.GetScreenshot().SaveAsFile(($OutputPath + "\" + $file ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [], RuntimeException
- + FullyQualifiedErrorId : InvokeMethodOnNull
- You cannot call a method on a null-valued expression.
- At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:185 char:9
- + $driver.Navigate().Back()
- + ~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [], RuntimeException
- + FullyQualifiedErrorId : InvokeMethodOnNull
- You cannot call a method on a null-valued expression.
- At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:273 char:1
- + $driver.Quit()
- + ~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [], RuntimeException
- + FullyQualifiedErrorId : InvokeMethodOnNull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement