- Search for the login_util.py on the location of the error shown in the terminal.
- Search inside the file for:
# Check if the first div is 'Create an Account' or 'Log In'
- Add before the following code:
# Check if Cookie PopUp is visible ADDED
try:
cookie_elem = browser.find_element_by_xpath("//button[text()='Accept']")
except:
cookie_elem = None
if cookie_elem is not None:
logger.info('- Clicked Accept on cookies popup.')
cookie_elem.click()
- In the same file than before.
- Search inside for:
# check for wrong username or password message, and show it to the user
- Add before the following code:
# avoid save login popup
if "instagram.com/accounts/onetap" in browser.current_url:
browser.get("https://instagram.com")