ButtonInfo Shows Exists, but Click Can't Find Button
Posted: Thu Oct 25, 2018 4:00 pm
I have a popup watcher that had been working but stopped working yesterday. After experimenting with timing and other things, I decided to disable the popup watcher and just use a simple piece of user code to detect the button I want to click and to click it. The code is detecting the button (using button info), but can't find the button to click.
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.
Any help would be appreciated!
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.");}
}