I am running selenium scripts from Jenkins server configured at [http://****.****.com:8080/]. The script reads data from google spreadsheet and execute the testcases. For which I used google oauth for authorization. I tried running the script from local. Authentication works fine. But while running on Jenkins server url, i am getting the below error.

localhost refused to connect.
Search Google for localhost 54285 Callback
  • Looks like the call back url is configured as localhost. Try configuring IP address – Sumana Sep 14 '18 at 8:11
  • Unable to pass direct IP to redirect url. It shows error as Invalid Redirect: [IP Address] must end with a public top-level domain (such as .com or .org) – STE Sep 14 '18 at 8:14

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.