Here's the code - I added the report.info lines for troubleshooting purposes, and the Focus line based on a suggestion in another post. When run, report shows that the button exists, but then says it can't find the button.
Code: Select all
public void ClickReadLater()
{
if (repo.HighPriorityNewsItemAlert.ReadLaterInfo.Exists(new Duration(3000))){
Report.Info("Read later exists!");
repo.HighPriorityNewsItemAlert.ReadLater.Focus();
repo.HighPriorityNewsItemAlert.ReadLater.Click();
} else {Report.Info("Read later does not exist.");}
}