I am attempting to find an element using this code:
try
{
new WebDriverWait(wdriver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementExists(By.Id(“messageGrid_TL”)));
Console.Out.WriteLine(“Grid: Loading element exists”);
}
catch (Exception)
{
Console.Out.WriteLine(“Grid: Loading element does not exist”);
}
I tried all methods like ElementExists, PresenceOfAllElementsLocatedBy etc.,
but Standard Output is still “Grid: Loading element does not exist”.
I tried to find the element by
//*[@id=’messageGrid_TL’]
//*[@id=’messageGrid_LPV’]
“//span[text()=’Loading…’]”
Element is displayed on the page only for a few seconds.
Note: I don’t call the loading panel from the app code, but DevExpress does it itself, when the grid is refreshed/loaded, it generates the loading panel.
Can you advise me how to find this element, please?