Forum Discussion
TanyaYatskovska
10 years agoSmartBear Alumni (Retired)
Hi 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();
- hhagay8 years agoContributor
This does not work with Chrom and / or Firefox.
Thank you
- Ravik8 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.
Related Content
- 2 years agojuliemorris
- 3 years agojoaosaidel
- 2 months agoJamesG
Recent Discussions
- 3 days agovladd1