I have a dropdown to select employees. But when I try to automate it, the employee list open from dropdown is not showing in HTML code. It's reflecting only when it selected. But in my code When I try to use Find element it is showing error: no such Element found.
This is my code: IWebElement Employee = driver.FindElement(By.Name("employee_ids")); Employee.Click(); IWebElement selectEmployee = driver.FindElement(By.XPath("//div[@data-id='1127']")); selectEmployee.Click();