Unable to run Selenium Module commands

Hey Everyone,

I have Installed Selenium Module via using Install-Module Selenium. When I am trying to run Start-SeChrome I am getting below error. Please let me know If someone have experience these.

Exception calling “.ctor” with “2” argument(s): “The type initializer for ‘OpenQA.Selenium.SeleniumManager’ threw an exception.”
At C:\Program Files\WindowsPowerShell\Modules\Selenium\3.0.1\Selenium.psm1:253 char:9

  •     $Driver = [OpenQA.Selenium.Chrome.ChromeDriver]::new($service ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:slight_smile: , MethodInvocationException
    • FullyQualifiedErrorId : TypeInitializationException

WARNING: Web driver was not created

Thanks.

The obvious question is do you have Chrome installed? If so, is it up to date?

1 Like

I was using outdated Selenium Package. It is fixed by Installing new package.

A new Issue arise now, do you know how can we handle CAPTCHA in powershell with Selenium. Any Information will be helpful.
Thanks.

When you say “handle” do you really mean bypass? The purpose of CAPTCHA is to prevent automation. If they have CAPTCHA, trying to bypass it will likely violate a EULA and therefore we can’t really provide help there.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.