How can I automate reading and writing mails in the GMail web client or with a GMail account.
I currently have the following code:
// For this .tag flow to work, please add a file with the name tagui_local.csv.
// In this file, add the following lines:
// OBJECT,DEFINITION
// google_username,[your_google_username]
// google_password,[your_google_password]
// If the file already exists, only add the last 2 lines to it.
// Then, start the flow via console by typing
// cd C:/tagui/flows[enter]
// tagui 2-[tab][enter]
echo Login to `google_username`
wait 1
keyboard [win]r
keyboard chrome.exe[enter]
keyboard [ctrl][shift]n
keyboard https://accounts.google.com[enter]
wait 1
// New Login
keyboard `google_username`
keyboard [enter]
wait 1
keyboard `google_password`
keyboard [enter]
echo Logged in.
wait 1
keyboard [ctrl]t
keyboard https://gmail.com[enter]
wait 3
click (//input[@placeholder="In E-Mails suchen"])
executing this in tagui while in the German version of mail.google.com:
click (//input[@placeholder="In E-Mails suchen"])[1]
Gives me:
ERROR - cannot find (//input[@placeholder="In E-Mails suchen"])[1]
But the element should be there:
This is the result I get when trying to match the XPath in the Chrome console itself: It also doesn't find the element.
Do you have an idea how I can match this field? And why is this hidden / anonymous?
Is there any better solution using a local client like Thunderbird and POP3?
Kind regards and thanks,
question from:
https://stackoverflow.com/questions/65876304/how-do-i-find-an-xpath-to-match-the-search-field-in-google-mail-web-for-use-in-t 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…