Im trying to get an specific email from a gmail address (or subject). Im using selenium because can't use imaplib for this gmail account. Im stck here:
driver.find_element_by_id("identifierId").send_keys('MYEMAIL')
driver.find_element_by_id("identifierNext").click()
time.sleep(5)
driver.find_element_by_name("password").send_keys('PSWRD')
driver.find_element_by_id("passwordNext").click()
time.sleep(15)
email = driver.find_elements_by_css_selector("div.xT>div.y6")
for emailsub in email:
if "someone@gmail.com" in emailsub: #Error line
emailsub.click()
break
Error: argument of type 'WebElement' is not iterable
Idk why I'm using find_element
s.