Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Python-selenium script for automated web-login does not work
Objective is to login into a website, pass some search parameters and open top 3 results.
However, I am stuck at the first step. Using Python 3.7 on Spyder (Anaconda). Individual commands work fine on console.

However, after the last command, browser throws following error: "Sorry, we could not authenticate you. Try again."

The Log In page however is a redirection from the URL below, to "".
However, since the elements are located correctly and values passed, I suppose that isn't an issue. Clueless, why does the browser not accept login. Any support would be greatly appreciated.

Browser response is consistent in both Chrome and Firefox.

import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys


browser = webdriver.Firefox()


I figured that the problem lies with "send_keys". It is not populating the fields, leaving it empty and hence the error.

Now, I am using latest Selenium and Python versions, not sure what else could be causing the issue. Any suggestions?
it should be loginElem.send_keys('UserIDXXXXXX')
what you do is to assign a string to loginElem.send_keys property thus overriding the method

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  HOWTO? Login DSL Modem with Python Requests: need Click "Apply" Button Webtest 4 3,454 Aug-20-2019, 04:03 PM
Last Post: johnmina
  Automated Git add/commit/push rxndy 0 379 May-13-2019, 11:51 AM
Last Post: rxndy
  Selenium driver.get() does not work RvBVakama 2 2,970 Dec-14-2018, 04:48 AM
Last Post: RvBVakama
  Python - Scrapy Login in Baggelhsk95 3 1,479 Oct-23-2018, 04:24 PM
Last Post: stranac
  Python - Scrapy Login form Baggelhsk95 4 4,648 Oct-16-2018, 08:01 AM
Last Post: Baggelhsk95
  Automated Emailer (Using Selenium) StoopidChicken 0 1,134 Jul-17-2018, 07:20 AM
Last Post: StoopidChicken
  Proxy Variable in Selenium wont work with FireFox Profile Proxy Setting. MIPython 0 5,188 Jul-13-2018, 05:43 PM
Last Post: MIPython
  Python /Flask Login with LDAP Auth pythonnubie 4 4,146 Apr-16-2018, 03:14 PM
Last Post: nilamo
  Using python requests module and BS4 to login on an Wordpress based website apollo 1 4,658 Feb-06-2018, 01:31 AM
Last Post: metulburr
  locating element with selenium after login sumandas89 1 1,472 Jan-15-2018, 02:40 PM
Last Post: metulburr

Forum Jump:

Users browsing this thread: 1 Guest(s)