I've been testing out Selenium with Chromedriver and I noticed that some pages can detect that you're using Selenium. In this post, I will take "https://www.etihadholidays.com/en-ot/" as an example.
The page will throw the "Access Denied, You don’t have permission to access" error when you try to click "Search Packages" button when finding a fly using chromedriver
All we need to do is to delete all of cookies before clicking to Search Packages button. Here is the example code in python (just hard code to select departure/arrival value)
I've been testing out Selenium with Chromedriver and I noticed that some pages can detect that you're using Selenium. In this post, I will take "https://www.etihadholidays.com/en-ot/" as an example.
The page will throw the "Access Denied, You don’t have permission to access" error when you try to click "Search Packages" button when finding a fly using chromedriver
I've detected that they have an odd cookie to prevent the action (as mention in https://www.thewindowsclub.com/access-denied-dont-permission-access-server)
All we need to do is to delete all of cookies before clicking to Search Packages button. Here is the example code in python (just hard code to select departure/arrival value)
https://paste.ofcode.org/CS724wNeaVcK2rEDWHxSUU
Refer url: