I am trying to delete email from gmail account and I am stuck. I have tried different combination but no luck.
' Click delete this message on the fly out , below line should click the delete this message but not clicking
'giving error as too many web element.
Finally I got it work by below line of text
1) read the email you want to delete by getrowtextcell("Gmail")
2) Now click the trash can on top bar.
But I would like to delete by fly out "delete this message" option as above code delete all the mails which are grouped by that text.
Code:
If Browser("name:=Your CarMax validation code.*").page("Title:=Your CarMax validation code.*").webtable("class:=Bs nH iY").Exist Then
Browser("name:=Your CarMax validation code.*").page("Title:=Your CarMax validation code.*").webtable("class:=Bs nH iY").Webtable("class:=cf gJ").Image("class:=hA T-I-J3").Click'giving error as too many web element.
Code:
'Browser("name:=Your CarMax validation code.*").page("Title:=Your CarMax validation code.*").webtable("class:=Bs nH iY").webelement("class:=cj", "outtertext:= Delete this message").Click
End IfFinally I got it work by below line of text
1) read the email you want to delete by getrowtextcell("Gmail")
2) Now click the trash can on top bar.
Code:
Browser("name:=.*").page("Title:=.*").webelement("class:=T-I J-J5-Ji nX T-I-ax7 T-I-Js-Gs ar7").SubmitBut I would like to delete by fly out "delete this message" option as above code delete all the mails which are grouped by that text.

