I have created automation script to test WEB UI using selenium C#. I dont want to hardcode the login details and want to send those values through JSON input. How do I convert Json inputs in C#.
IWebDriver webdriver = new ChromeDriver(@"D:\Selenium\Chrome_90V");
Loginpage LoginP = new Loginpage(webdriver);
Homepage homep = new Homepage(webdriver);
DataJson Js = new DataJson();
webdriver.Navigate().GoToUrl("https://login.microsoftonline.com");
//timewait
TimeSpan timeSpan = TimeSpan.FromSeconds(20);
webdriver.Manage().Timeouts().ImplicitWait = timeSpan;
//emailidinput
LoginP.setemail("**[email protected]**");
LoginP.clicknext();
How do I tell my code to use JSON inputs through class.