How to fix Chrome browser 111.0.* issue Invalid Status code=403 text=Forbidden with Selenium 4.x.x

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome back I'm Rahul mister and in this video we will see 203 forbidden issue when we launch our test uh selenium test on Chrome browser version 111 and fix the same issue with one of the Chrome options available until the fix is provided by selenium in 4.8.2 onwards so this is the issue which you are seeing currently on the console and this is occurred as in when like you run your script on the Chrome browser 111 as I said so we are going to see the version of the Chrome and see like what is the error on the console so this is the error okay which you will come across when you run the your test selenium test on Chrome version 111 so let's quickly check the Chrome version here and you will see Chrome is updated to 111 and we are using selenium boundaries selenium jar 4.8.1 which is causing this issue on Chrome okay so you can see that in the Palm which I have added so that is 4.8.1 so as of now what should be the fix how we can unblock our cell uh with the test automation so for that I mean you need to add the Chrome option class and a couple of arguments which we will be adding to the Chrome driver Constructor so so this is that let's create one object of the Chrome option Chrome option class and then we will add the argument which is a remote allow origin policy remote allow origin and I'm going to set it to the star okay so this is that argument which you can add to the Chrome driver Constructor okay so you can pass that and as object okay foreign driver Constructor and that's it and we are going to access this selenium dot Dev site okay so we should not see the error this time see we are able to launch the browser and you are able to access the site so you you have got unblocked yourself with chrome options when added to the Chrome browser and mind you this issue is not seen with the Firefox so let's quickly check that also so no need to add these two and we will be using Firefox driver and let's see if we are able to launch the URL launch the launch our test without any issue without adding any argument to the Firefox driver Constructor class so let's see if it is all fine see it has launched without any issue so this issue is seen only with the Chrome browser 111 and not with the Firefox age driver or with the Safari all right so hope you have liked the video and please do subscribe to this channel for more videos and thanks for watching
Info
Channel: SDET Adda For QA Automation
Views: 1,773
Rating: undefined out of 5
Keywords: selenium webdriver, selenium, software testing, selenium manager, selenium interview questions and answers for experienced, Forbidden issue, #403 with selenium, 403 with Chrome, 403 with chrome browser 111 with selenium 4.8.x, selenium webdriver tutorial, selenium webdriver tutorial for beginners, selenium webdriver installation, selenium interview questions and answers for freshers, 403 forbidden, #websockets, testng framework in selenium, sdet adda, sdet adda for qa automation
Id: LD-XWY2tctg
Channel Id: undefined
Length: 4min 11sec (251 seconds)
Published: Mon Mar 20 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.