The code below is supposed to find the window and tab that holds a URL starting with https://mail.google.com/mail/. I would thing that:
https://mail.google.com/mail/
urlLi