Exemplo n.º 1
0
        public void ViewCart(string path)
        {
            var viewCartElement = _waitUtils.WaitUntilElementIsClickable(_driver, _itemDetailsPage.ViewCart);

            Thread.Sleep(2000);
            _screenshotUtils.TakeScreenshotOfModal(_driver, _driver.FindElement(_itemDetailsPage.AddedToCartModal), path);
            viewCartElement.Click();
        }