I want to test a web application using multithreading in Selenium WebDriver, but when I open too many chrome browsers the memory used is very large.
Is it possible to use multithreading in one browser using Selenium WebDriver?
I want to test a web application using multithreading in Selenium WebDriver, but when I open too many chrome browsers the memory used is very large.
Is it possible to use multithreading in one browser using Selenium WebDriver?
Hello Emma,
WebDriver is not safe for multithreading. Thread-safety is not in the code but it is in the browser bindings. They assume that there will be only one command at a time but on the other hand, instantiate one WebDriver instance for every thread but it will launch multiple browsers which will again consume lots of memory.