Forum Discussion
TanyaYatskovska
SmartBear 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();
Ravik
8 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
- 3 years ago
- 4 years ago
Recent Discussions
- 15 hours ago