I'm trying to do an explicit wait to go around using Thread.Sleep(), but I'm always getting this issue with the ElementExists. I'm not sure if I'm missing a directive or I need to declare something.
TestProjectDemo
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
driver.Navigate().GoToUrl("https://bi7-azure.test.com/");
wait.Until(ExpectedConditions.ElementExists(By.Id("appList")));
driver.Navigate().GoToUrl("https://bi8.test.com/azure/");
Thread.Sleep(10000);
driver.Navigate().GoToUrl("https://insightsmp.test.com/");
Thread.Sleep(10000);
BaseClass(this is where I'm declaring the objects)
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Support.UI;
using System;
namespace TestProject.BaseClass
{
public class BaseClassTrigger
{
public IWebDriver driver;
public object wait;
public object ExpectedConditions;