In Selenium WebDriver, if I select drop down value by 'name' then how do I verify that all products are sorted by name?
IWebElement productSort = TestSetup.driver.FindElement(By.XPath("//span/select[@data-test='product_sort_container']"));
productSort.Click();
System.Threading.Thread.Sleep(5000);
IWebElement name = TestSetup.driver.FindElement(By.XPath("//div/span/select/option[@value='az']"));
name.Click();
System.Threading.Thread.Sleep(5000);