FIX FOR: Invalid Status code=403 text=Forbidden in Selenium ChromeDriver

preview_player
Показать описание
After 110 version of ChromeDriver, there is an error:
This could be fixed by inserting these Chrome Options:

ChromeOptions options = new ChromeOptions();

Let me know in the comments if this helped!
Рекомендации по теме
Комментарии
Автор

Thanks for the quick live solution on code. Most of the stackOverflow just mentioend about add additional argument of remote-allow-origins=* but did not mention where and how.
But you have explained it pretty well.

pradipjadhav
Автор

Super helpful advice, thanks for sharing. I was not happy when I updated my ChromeDriver to version 111, and it generated an error when I ran my program. I've never seen an error come up when updating the ChromeDriver in the past. Your coding example was perfect, and helped me to resolve this problem. Unfortunately I had to make the coding changes to six different Java programs, so it was a major headache when Google created this mess.

Thanks again!!!

FenderStrat
Автор

Thank you with gratitude. 🙏I actually solved the problem in 5 minutes after stressing about it all day.

sergiucristea
Автор

l can't express the amount of gratitude l have for sharing this tip. l've been trying to solve it using GPT for 2 days straight (after my working hours) and this literally saved my life. Thank you! :D

aleksandarvujicic
Автор

Super Helpful I inserted it in a different area of my test under BeforeTest annotations right before the previous line for driver = new chromedriver();... now it works as usual

TheYaseenh
Автор

Thank you very much. I was struggling how to resolve this issues, but after watching your video, its very quick solution on code. its working 100%. 👍

akshayraj
Автор

Thanks! Just a couple lines of code and now it works! Very helpful

ievgeniikravtsov
Автор

I really want to appreciate your help .. I was struggling like anything to find the fix on this. Thank you so much !!

chulbulapankaj
Автор

Damn, I spent many hours looking for a solution to this problem, but it was in your video that I found the very detail that prevented the code from running correctly ... Now I'm lying on the floor, because I bow to you, 25 billion thanks!

ekataana
Автор

Or just update the Selenide version to '6.12.2' if use Selenide in your project. This issue has already been fixed

lorem_ipsum
Автор

It did fix the latest 111.version. Thanks a ton.

ravikrsk
Автор

Great explanation with example, thank you.

abdulsatary
Автор

Thank you for your help. This solution fixed my problem. Thank you very much once again :)

madhukumbhar
Автор

iam troubling with this issue since yesterday now i got it thank you so much now i have subscribed

chinnab
Автор

Thank you. Your solution fixed the error.

srilakshmiramanathan
Автор

Thank you so so much for this help. I really owe you one. Worked like a charm. Thank you again.

MohanRaj-yzoc
Автор

Hello, i love you so much.
Clear, right to the point. just perfect

drisschebbi
Автор

thanks!! you helped solving me this problem on my project quickly :)

thot
Автор

Thanks a lot.
No waste of time only the solution.

SmartySaifi
Автор

Here you are. That surely solved the problem. Thanks. But can you please elaborate more on how did it work because I'm an absolute beginner in this.

pratikgaikwad