Advertisement
Guest User

Untitled

a guest
May 25th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. PS C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master> Invoke-PowerWebShot -URL http://www.pornhub.com
  2. New-Object : Exception calling ".ctor" with "2" argument(s): "The file .\PhantomJS.exe does not exist. The driver can
  3. be downloaded at http://phantomjs.org/download.html"
  4. At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:93 char:11
  5. + $driver = New-Object OpenQA.Selenium.PhantomJS.PhantomJSDriver($phant ...
  6. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7. + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
  8. + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
  9.  
  10. The property 'Url' cannot be found on this object. Verify that the property exists and can be set.
  11. At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:96 char:1
  12. + $driver.Url = "about:constant"
  13. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  14. + CategoryInfo : InvalidOperation: (:) [], RuntimeException
  15. + FullyQualifiedErrorId : PropertyNotFound
  16.  
  17. [*] The output directory 2018-05-25-104313 does not exist. Creating directory 2018-05-25-104313.
  18.  
  19.  
  20. Directory: C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master
  21.  
  22.  
  23. Mode LastWriteTime Length Name
  24. ---- ------------- ------ ----
  25. d----- 5/25/2018 10:43 AM 2018-05-25-104313
  26. The property 'Url' cannot be found on this object. Verify that the property exists and can be set.
  27. At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:169 char:9
  28. + $driver.Url = $name
  29. + ~~~~~~~~~~~~~~~~~~~
  30. + CategoryInfo : InvalidOperation: (:) [], RuntimeException
  31. + FullyQualifiedErrorId : PropertyNotFound
  32.  
  33. You cannot call a method on a null-valued expression.
  34. At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:170 char:9
  35. + $driver.Manage().Window.Maximize()
  36. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  37. + CategoryInfo : InvalidOperation: (:) [], RuntimeException
  38. + FullyQualifiedErrorId : InvokeMethodOnNull
  39.  
  40. You cannot call a method on a null-valued expression.
  41. At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:178 char:9
  42. + $driver.GetScreenshot().SaveAsFile(($OutputPath + "\" + $file ...
  43. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  44. + CategoryInfo : InvalidOperation: (:) [], RuntimeException
  45. + FullyQualifiedErrorId : InvokeMethodOnNull
  46.  
  47. You cannot call a method on a null-valued expression.
  48. At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:185 char:9
  49. + $driver.Navigate().Back()
  50. + ~~~~~~~~~~~~~~~~~~~~~~~~~
  51. + CategoryInfo : InvalidOperation: (:) [], RuntimeException
  52. + FullyQualifiedErrorId : InvokeMethodOnNull
  53.  
  54. You cannot call a method on a null-valued expression.
  55. At C:\Users\user1\Desktop\screenshot_sites\PowerWebShot-master\PowerWebShot.ps1:273 char:1
  56. + $driver.Quit()
  57. + ~~~~~~~~~~~~~~
  58. + CategoryInfo : InvalidOperation: (:) [], RuntimeException
  59. + FullyQualifiedErrorId : InvokeMethodOnNull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement