Forum Discussion
TanyaYatskovska
Alumni
12 years agoHi Bhagya,
As far as I understand, you need to identify the email by its subject on the list of all emails and click it, right? You can call the Find method for this. Here is an example:
//JScript
var page = Sys.Browser("chrome").Page("https://mail.google.com/mail/u/0/#inbox");
var email = page.Find("contentText", "<SUBJECT>", 100);
if (email.Exists)
email.Click();
As far as I understand, you need to identify the email by its subject on the list of all emails and click it, right? You can call the Find method for this. Here is an example:
//JScript
var page = Sys.Browser("chrome").Page("https://mail.google.com/mail/u/0/#inbox");
var email = page.Find("contentText", "<SUBJECT>", 100);
if (email.Exists)
email.Click();
- hhagay10 years agoContributor
This does not work with Chrom and / or Firefox.
Thank you
- Ravik9 years agoSuper Contributor
Thing is that, If multiple mails are available with same Subject or suppose I wanted to test Unread emails only with the given "Subject" line in this case this solution may get fail.