public void CheckTheCart() { CartComponent cartComponent = new HeaderComponent(driver).ClickOnCartButton(); Assert.AreEqual(notebooksPage.GetItemTitle(), cartComponent.GetProductTitleText()); }