I've wrote this script to login into Nike website, I get an selenium.common.exceptions.ElementNotInteractableException error because of pop-up message in the website when I try to login, I tried differents approches but nothing worked, here's my code :
import time
import requests
from selenium import webdriver
r = requests.get('https://www.nike.com/fr/launch?s=in-stock')
url = 'https://www.nike.com/fr/launch/t/air-max-90-pink-foam'
#accountINFO
uid = 'sss@gmail.com'
pwd = 'XXXX'
#boost browser
driver = webdriver.Chrome(executable_path = '//Users/xxxxxx/Desktop/chromedriver')
driver.get(url)
mcookis = driver.find_element_by_xpath("//button[@data-qa='accept-cookies']")
mcookis.click()
time.sleep(1)
memberLogin = driver.find_element_by_xpath("//button[@data-qa='top-nav-join-or-login-button']")
memberLogin.click()
time.sleep(1)
#Login
elem = driver.find_element_by_xpath("//input[@type='email']")
elem.send_keys(uid)
elem = driver.find_element_by_xpath("//input[@type='password']")
elem.send_keys(pwd)
login_submit = driver.find_element_by_xpath("//input[@value='CONNEXION']")
#time.sleep(1)
login_submit.click()
normally after submit is run I should access the site but instead I get an error message, when I type the pswd manually it's working.