public void IframeTest() { var homePage = new HomePage(_driver); homePage.HoverMouseToProduct(); homePage.QuickViewClick(); homePage.SwitchIframe(); homePage.AddProductToTheCard(); homePage.ProductText().Should().Be("Product successfully added to your shopping cart"); }