top of page
Puja Jagani

Puja Jagani

Lead OpenSource Engineer and Developer Advocate, BrowserStack
BIO


As a Lead Engineer at Browserstack for three years, I drive automation advancements, particularly in the Selenium project. My role encompasses bug fixes, user support, feature enhancements, product advancement, and documentation. I am a core committer and member of the Technical Leadership Committee in Selenium. Engaging with the OpenSource community, I find excitement in pushing automation boundaries and solving user problems. 


Talk (Beginner): 

Parallel Testing Redefined: The Browserpooling Method 

Private browsing modes, such as Chrome's incognito mode and Firefox's private mode and containers, serve the common purpose of ensuring privacy during browsing. Although the underlying implementations differ, they share key features such as not storing browsing history and cookies, hence enhancing user privacy. While this feature is useful for regular users, it's a powerhouse for automation engineers and testers. WebDriver BiDi offers a browser-agnostic method to utilize private browsing through User Contexts, cultivating a 'browserpooling' approach. This approach allows multiple tests to share a single browser instance and WebDriver session, facilitating parallel test execution. Like carpooling, where multiple passengers share a single ride to different destinations, WebDriver BiDi's user contexts enable parallel tests to utilize a single browser instance without sharing data. This provides performance gains by eliminating the time-consuming process of spinning up and shutting down multiple browser instances. Join this session to explore how user contexts operate, how to manage isolated tests and cookies across multiple tabs and gain insights with a live code demo on leveraging this technique in Selenium. 


Outline 

1. Introduction (2 minutes) 

2. Introduction to Private Browsing Modes (5 min) Overview of private browsing in different browsers. 

3. Parallel Testing Challenges in Automation (3 min) The need for isolated testing environments and approaches used currently. 

4. Explanation of WebDriver BiDi's User Contexts (5 min) 

5. The Browserpooling Concept (10 min) Sharing a single browser for multiple tests and its benefits. How does cookie handling work with user contexts? 

6. Code Demo with Selenium (10 min) Example of parallel tests using a single browser instance. 

7. Q&A (10 min) 


Key Takeaways 

- Learn how to optimize testing environments by using a single browser instance. 

- Practical knowledge of using WebDriver BiDi's user context with code examples. 

- Understand real-world use cases where this method can lead to performance gains and reduce the total runtime of automation tests

bottom of page