repo item info reporting exists timeout when it is present
Posted: Thu Jun 28, 2018 7:34 pm
I have a page that contains
I have the browser window in question open and can SEE the item on the screen. When I highlight the OpenWidgetMenuGear element from the repo spy, highlighted correctly. When I run this code, the while loop is never returning true, and a watch on repo.DigitalBanking.WidgetHeaderHomeBaseAnyWidget.OpenWidgetMenuGearInfo.Exists() shows timeout.
Can anyone think of what I might be doing wrong? Thanks
Code: Select all
public void RemoveWidgets()
{
BottomLineII.BottomLineIIRepository repo = BottomLineII.BottomLineIIRepository.Instance;
while (repo.DigitalBanking.WidgetHeaderHomeBaseAnyWidget.OpenWidgetMenuGearInfo.Exists(TimeSpan.FromSeconds(2)))
{
repo.DigitalBanking.WidgetHeaderHomeBaseAnyWidget.OpenWidgetMenuGear.Click();
repo.DigitalBanking.WidgetHeaderHomeBaseAnyWidget.WidgetMenu_Remove.Click();
}
}
Can anyone think of what I might be doing wrong? Thanks