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

Issue running through .NET core? #1621

Closed
JeevG opened this issue Sep 25, 2019 · 6 comments
Closed

Issue running through .NET core? #1621

JeevG opened this issue Sep 25, 2019 · 6 comments

Comments

@JeevG
Copy link

JeevG commented Sep 25, 2019

System

  • Version: geckodriver v0.25.0
  • Platform: Windows 10 (64 bit)
  • Firefox: 69.0.1 (64 bit)
  • Selenium: 3.141

Hi

I am trying to run a FirefoxDriver through C#. When I run the following:
FirefoxDriver driver = new FirefoxDriver({folder path that holds geckodriver}) through a .net framework winforms UI project, everything runs fine. However, if I run the exact same code through my .net core application, I get the following error:

Failed to start browser C:\Program Files\Mozilla Firefox\firefox.exe: other os error (SessionNotCreated)

Could someone please help with this?

@whimboo
Copy link
Collaborator

whimboo commented Sep 25, 2019

Could you please attach a trace-level log from geckodriver? Read more about reporting actionable bugs in our contribution guidelines.

@JeevG
Copy link
Author

JeevG commented Sep 25, 2019

Do you know I can read stdout from a netcore web app? If I create a new netcore console app, the application runs fine, so I'm struggling to read the full trace when the error is occurring through my web app

@whimboo
Copy link
Collaborator

whimboo commented Sep 25, 2019

Does the C# example as contained on the above mentioned web page not help?

For geckodriver it shouldn't matter which kind of .net application it is. It should create the geckodriver.log file in the CWD. So whatever that is for a winforms project... maybe do a search on your disk for that file.

@andreastt
Copy link
Contributor

I suspect this may be related to #1617. Could you try install the Visual Studio Redistributable Runtime and see if that makes a difference?

@whimboo
Copy link
Collaborator

whimboo commented Oct 16, 2019

No further feedback from reporter. Closing as duplicate of issue #1617.

@lock
Copy link

lock bot commented Nov 30, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.

@lock lock bot locked and limited conversation to collaborators Nov 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants