Fix "Unable to Establish Websocket Connection" error in Selenium 4.6.0 – Fix #1



Fix "Unable to Establish Websocket Connection" error in Selenium 4.6.0 – Fix #1

Fix "Unable to Establish Websocket Connection" error in Selenium 4.6.0 - Fix #1

Here we quickly and easily fix Unable to establish Websocket Connection error in Selenium 4.6.0. It should work for other versions of Selenium too. Please check and let me know if you face issues.

Please check the code here:
https://github.com/SimRaina/SeleniumTests/blob/master/src/test/java/com/seleniumtests/SeleniumTests/BaseClass.java

Find below Playlists’ links:
Robot Framework (Eclipse + PyCharm): https://www.youtube.com/playlist?list=PLxpZfOtJA71xmuTyJkm7yMB7CWGgzTowy
Selenium WebDriver (with Java): https://www.youtube.com/playlist?list=PLxpZfOtJA71ysE8joiOrbc6pOn-bqk3Hy
Java for QA: https://www.youtube.com/playlist?list=PLxpZfOtJA71xfPSjBg9F378U7I-bPJd11
Python for Beginners: https://www.youtube.com/playlist?list=PLxpZfOtJA71w-hfH0kAPZ0gER-r8dY5oq
Espresso Mobile Test Automation: https://www.youtube.com/playlist?list=PLxpZfOtJA71zLdXKHCO_D3tpoIYF5pdOx
TestNG for QA: https://www.youtube.com/playlist?list=PLxpZfOtJA71z_kTSpMTG52g5ziwobhz_5
Hybrid UI Test Automation Framework (Selenium with Java): https://www.youtube.com/playlist?list=PLxpZfOtJA71wFV_Dz-Bz5HBto5gHRPesM
BDD (Cucumber): https://www.youtube.com/playlist?list=PLxpZfOtJA71w4V2NbfSSFCGYWzMZdkQCv
WebServices Testing: https://www.youtube.com/playlist?list=PLxpZfOtJA71yXUCqxfJj8YazYOLVKJNBY
Postman for API testing: https://www.youtube.com/playlist?list=PLxpZfOtJA71zQ1yPJ4tf4Ra4kKmULcSxZ
Rest-Assured for API test automation: https://www.youtube.com/playlist?list=PLxpZfOtJA71xWPfknvoSN2INB_Fu_O7fb

My Tech Stack:
1. Video Editing: Da Vinci Resolve 18
You can download it from here for free:
https://www.blackmagicdesign.com/products/davinciresolve

2. Thumbnails: Canva Pro
https://www.canva.com/youtube-thumbnails/templates/