Esempio n. 1
0
        public List <string> getItemsNames()
        {
            ReadOnlyCollection <IWebElement> cartTableRows = checkOutPage.ItemsRows();

            List <string> itemsNames = new List <string>();

            foreach (var row in cartTableRows)
            {
                itemsNames.Add(row.FindElement(By.CssSelector("td.item")).Text);
            }
            return(itemsNames);
        }