Set-up
Trying to log into this log-in form using Python and Selenium.
Code
url = 'https://activeshop.com.pl/customer/account/login/'
browser.get(url)
# fill out login details
account_name = 'my@email.com'
password = 'mypassword'
login_details = {
'login': account_name,
'password': password
}
# inserts account name in login field
fill_field('id','email',login_details['login'])
# inserts password in password field
fill_field('id','pass',login_details['password'])
where,
def fill_field(type, type_path, input):
if type == 'id':
field = browser.find_element_by_id(type_path)
field.clear()
field.send_keys(input)
Issue
The above code used to work, but since the site has received a makeover it yields a ElementNotInteractableException: element not interactable
when trying to fill the fields.
I've tried Xpaths
, CSS
selectors and whatnot, but the email address and password aren't filled out.
I can obtain texts on the page via Selenium.
There's something blocking Selenium at the input
elements. Any ideas?