question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: Initialization of WebDriver failed when executed tests in parallel

See original GitHub issue

What happened?

Selenium Manager is not ready to be executed simultaneously.

How can we reproduce the issue?

Execute tests in parallel using .NET binding when cache of Selenium Manager is empty.

Relevant log output

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: Uncategorized, message: "The process cannot access the file because it is being used by another process." }', src\files.rs:70:53
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Operating System

Windows 10

Selenium version

4.6.0

What are the browser(s) and version(s) where you see this issue?

Chrome

What are the browser driver(s) and version(s) where you see this issue?

Selenium Manager

Are you using Selenium Grid?

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
nvborisenkocommented, Nov 16, 2022

@bonigarcia I tested it as well, works good. Thanks.

1reaction
nvborisenkocommented, Nov 15, 2022

ConsoleApp4.zip

This example starts 10 chrome browsers in parallel. To run it in console dotnet run.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

TestNG Parallel execution always fails when i run more than ...
1 Answer 1 ... Try to not make the main class static. Create a class that makes an instance of the class and...
Read more >
TestNG parallel execution get failed becouse im using same ...
Unfortunately, I'm using the same web driver which initialized at the test base class on all the tests. Because of that, I believe...
Read more >
Parallel mode failing to execute - Katalon Studio
Hello Everyone, I am facing one problem regarding parallel mode execution: When I run test suite collection which contains 2 test suite in...
Read more >
Selenium Grid Tutorial: Setup and Example of Cross Browser ...
Selenium Grid Tutorial to learn how to run multiple tests simultaneously. Selenium grid setup with example and Cross browser testing to run ...
Read more >
Extent Reports in Selenium with TestNG
In order to listen to test events such as passed, failed, ... Log.warn(message); //Error Level Logs public static void error (String ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found