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

No such Session #2

Closed
AvramM opened this issue Oct 30, 2015 · 5 comments
Closed

No such Session #2

AvramM opened this issue Oct 30, 2015 · 5 comments
Assignees

Comments

@AvramM
Copy link

AvramM commented Oct 30, 2015

Our unit tests are failing on some machines and passing on others. When they fail, they fail with:

InvalidOperationException: no such session

Any idea what might cause that? It has chrome and the latest Chrome Driver installed.

@StephenCleary
Copy link
Owner

I have not seen this behavior.

However, I don't use BrowserBoss for unit testing. It wasn't really designed for that (though it could be used for it).

Do you have a stack trace?

@AvramM
Copy link
Author

AvramM commented Nov 2, 2015

During the test, Chrome opens and the page loads successfully. When Chrome
closes, the test fails. This is the StackTrace:

at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response
errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String
driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebElement.GetAttribute(String
attributeName)
at Nito.BrowserBoss.Element.ToString()

On 31 October 2015 at 05:10, Stephen Cleary notifications@github.com
wrote:

I have not seen this behavior.

However, I don't use BrowserBoss for unit testing. It wasn't really
designed for that (though it could be used for it).

Do you have a stack trace?


Reply to this email directly or view it on GitHub
#2 (comment)
.

@AvramM
Copy link
Author

AvramM commented Dec 14, 2015

I updated Selenium and ran it again, the mode of failure has now changed. I added a project demonstrating the failure.

https://github.com/AvramM/BrowserBossIssue

But basically it fails at the first hurdle:

Boss.Url = "https://ipleak.net";

screenshot

@StephenCleary
Copy link
Owner

I'm not able to reproduce this on my machine; the test app ran fine.

Things to check off the top of my head:

  • Are some of your VS instances running as administrator and others not?
  • Is there anything else already on that port?

@StephenCleary
Copy link
Owner

Closing due to lack of repro.

@StephenCleary StephenCleary self-assigned this Jun 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants