i am trying to search on item then result if found appear in specific element and if not found another element will appear so i tried to use OR with expected conditions like below:
wait.until(ExpectedConditions.or(ExpectedConditions.visibilityOf(SearchResult),
(ExpectedConditions.visibilityOf(SerachGetData))));
i want to know if there is a way to know which Element appear SearchResult or SearchgetData