Delete Gmail email - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Delete Gmail email (/Thread-Delete-Gmail-email) |
Delete Gmail email - newqtp - 02-13-2013 Code: If Browser("name:=.*").page("Title:=.*").webtable("class:=Bs nH iY").Exist Then this code goes through the successfully but doesn't click the trash icon. I have tried all possible delete method. Any suggestion..I am going to try from inbox instead of open mail itself. But suggestion for deleting email from open mail is appreciated thanks. RE: Delete Gmail email - newqtp - 02-15-2013 Here i am trying to delete from inbox 1st email.. But no luck Code: With Browser("title:=Gmail.*").Page("micclass:=Page") Any Suggestion will be appreciated. I have also tried Code: If Browser("name:=Gmail.*").page("Title:=Gmail.*").webtable("class:=Bs nH iY").Exist Then RE: Delete Gmail email - newqtp - 02-20-2013 Finally I got it worked, wanted to share so that others don't waste time in looking for solution. Code: 'delete email RE: Delete Gmail email - ursgaurav - 06-03-2013 Here is one more piece of code and it will surely work ,I have tried on IE7,IE8,IE9.There is only one change from the above code i have added the Webelement Class as ar9.* and index:=1.I hope this will help. Code: Browser("micclass:=Browser","name:=Your.*").page("Title:=.*").webelement("class:=ar9.*","index:=1").Highlight RE: Delete Gmail email - Staff - 07-05-2013 Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time. |