Can Selenium use multi threading in one browser?

0
0

I want to test a web in multi threading but when I open too many chromedrivers they use too much memory. Can I use multi threading in one browser?

  • You must to post comments
0
0

WebDriver is not thread-safe.The issue of thread-safety isn’t in your code but in the actual browser bindings. They all assume there will only be one command at a time (e.g. like a real user).But you can on the other hand instantiate one WebDriver instance for each thread but it will launch multiple browsers which will consume more memory…

Hope this helps you….Kindly get back if you have any queries

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website