I want to Click on the Below popup Message button but even tho i placed the ID correctly, it doesnt get clicked. Throws No such Element Found Exception.
webDriver.Navigate().GoToUrl(url);
try
{
await Task.Delay(1000);
Logger.LogGenericText("Trying to Removed all Nicknames Cache...");
webDriverwait.Until(d => d.FindElement(By.ClassName("namehistory_link"))).Click();
webDriverwait.Until(d => d.FindElement(By.Id("NamePopupClearAliases"))).Click();
webDriverwait.Until(d => d.FindElement(By.Id("btn_green_white_innerfade"))).Click();
}
catch (Exception ex)
{
Logger.LogGenericText(ex.ToString());
return;
}