0

I am trying to click on Search button after entering data in some fields which has to show the results(list of flight available from city A to city B on t he selected date) according to the search in the same page.

When I run the Selenium - Java script for this scenario system is showing HTTP ERROR 403, while it works fine when I do it manually.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Kumari T
  • 1
  • 1
  • Share your tried code , HTML code for the same. Anyway as of now I'm voting to close this question. – cruisepandey May 28 '19 at 09:41
  • Possible explanation is the web page recognizes that browser is controlled by selenium (3th patry in general) and filtering automatic requests. Or some authentification/authorization element is missing. Check both HTTP requests (manual vs selenium), you can use Chrome + Postman + Postman Interceptor to see headers, bodies, parameters, ... – pburgr May 28 '19 at 09:41
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. – cruisepandey May 28 '19 at 09:42

1 Answers1

0

403 Forbidden

The HTTP 403 Forbidden client error status response code indicates that the server understood the request but refuses to authorize it.

This status is similar to 401, but in this case, re-authenticating will make no difference. The access is permanently forbidden and tied to the application logic, such as insufficient rights to a resource.


Status

403 Forbidden

Example response

HTTP/1.1 403 Forbidden 
Date: Wed, 28 May 2019 07:28:00 GMT

Reason

You code trials and the error trace log would have helped us to debug the issue in a better way. Possibly the WebDriver controlled Browser Client is getting detected and hence the subsequent requests are getting blocked.


Outro

You can find similar discussions in:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352