Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method invocation failed #190

Closed
itfranck opened this issue Nov 29, 2020 · 0 comments
Closed

Method invocation failed #190

itfranck opened this issue Nov 29, 2020 · 0 comments
Assignees
Labels

Comments

@itfranck
Copy link
Collaborator

Error:

Exception calling "GoToUrl" with "1" argument(s): " (InsecureCertificate)"
At C:\Github\selenium-powershell\Internal\Start-SeFirefoxDriver.ps1:71 char:26
+         if ($StartURL) { $Driver.Navigate().GoToUrl($StartURL) }
+                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidOperationException

Method invocation failed because [Microsoft.Management.Infrastructure.CimInstance] does not contain a method named 'Where'.
At C:\Github\selenium-powershell\Internal\Get-DriverProcessId.ps1:11 char:9
+         $BrowserProcess = $Processes.Where( { $_.Name -ne 'conhost.ex ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Where:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

Steps to reproduce

$Service = New-SeDriverService -Browser Firefox

$Service.HideCommandPromptWindow = $false
$Options = New-SeDriverOptions -Browser Firefox
$Options.AddAdditionalCapability('acceptSslCerts',$true)
$Options.AddAdditionalCapability('acceptInsecureCerts',$true)
$Options.LogLevel = [OpenQA.Selenium.LogLevel]::All

Start-SeDriver -Browser Firefox -Options $Options -StartURL 'https://self-signed.badssl.com/' -Position 1920x0 -Service $Service
Stop-SeDriver

@itfranck itfranck added the bug label Nov 29, 2020
@itfranck itfranck added this to To Do in V4.0 - Preview2 via automation Nov 29, 2020
@itfranck itfranck self-assigned this Nov 29, 2020
@itfranck itfranck closed this as completed Dec 4, 2020
@itfranck itfranck moved this from To Do to Done in V4.0 - Preview2 Dec 4, 2020
itfranck added a commit that referenced this issue Dec 6, 2020
* Start-SeEdgeDriver throw error on launch (#188)

* Edge fix + general debug fix

* .Where is not a method for CIM Instance object (#190)

* Firefox not using the proper DriverOption (#191)

* Filter parameter to get-seelement and applied to Get-SeInput (#186 #192 )

Also fixed a logic error with $Value that was used both as a parameter and a variable, which caused issues.

* Legacy code removal causing error with screenshots (#187)

* Fix - Filter + Filter error message

* Select input by attributes fix.

* Edge (new) driver option need to be of type ChromeOptions (#195)

* Edge driver option fix (#193)

* Edge - semi revert (#197)

Since Start-SeDriver have priority over options, options should not handle stuff that depends on parameters.

* IE fix (#193)

* MSEdge Fix (#193)

* ErrorAction Stop when MSEdge Service fail to create.

* AcceptInsecureCertificates (Firefox, Chrome, Edge) (#189)

* #177 Get-SeInput view (initial commit)

* V4.0.0-preview2 build

* Drivers update

* V4.0.0-preview2 changelog

* Version update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

No branches or pull requests

1 participant