I'm trying to automate Outlook webmail app, to check my email account and start looking for emails with special words in the subject and brings them to inbox or other and maybe reply. I have already made a code that does the same thing with Gmail, but it's easier with the Gmail HTML version. but with owa I can't locate items. any ideas to try?
I tried Xpath and CSS selector and looking inside iframes
driver.find_element_by_xpath("""//span[@title='Junk Email']""").click()
It should find the element and click it but It returns with NoSuchElementException
.