I need to know how we can use the same instances of a Selenium Driver in different classes? So I have created an instance of the driver in a class, using the code :
IWebDriver driver = new ChromeDriver("C:/Users/Krishna/source/repos/G1ANT.Addon.YouTube/packages/Selenium.Chrome.WebDriver.83.0.0/driver");
So I need to use this instance in the new class, how could I do that?
Thank You