public void ThenIShouldBeNavigatedToThePharmacyDrugInfoPage() { _PharmacyDrugInfoPage.WaitForElementPresent(_PharmacyDrugInfoPage.PageContainer, 3); Assert.IsTrue(_PharmacyDrugInfoPage.PageContainer.Displayed(), "Not on the pharmacy drug info page."); Assert.IsTrue(_PharmacyDrugInfoPage.PharmacyNameLabel.Displayed(), "Missing Pharmacy Name Label."); Assert.IsTrue(_PharmacyDrugInfoPage.PriceLabel.Displayed(), "Missing Pharmacy Name Label."); Assert.IsTrue(_PharmacyDrugInfoPage.PharmacyAddressLabel.Displayed(), "Missing Pharmacy Address Label."); Assert.IsTrue(_PharmacyDrugInfoPage.PharmacyImage.Displayed(), "Missing Pharmacy Image."); Assert.IsTrue(_PharmacyDrugInfoPage.MakeCallButton.Displayed(), "Missing Make Call Button."); Assert.IsTrue(_PharmacyDrugInfoPage.GetDirectionsButton.Displayed(), "Missing Get Directions Button."); }
public void WhenISelectAddMedicationOntheDrugInteractionScreen() { _PharmacyDrugInfoPage.ScrollDownTo(_PharmacyDrugInfoPage.AddToChest.Locator, ScrollStrategy.Gesture); _PharmacyDrugInfoPage.WaitForElementPresent(_PharmacyDrugInfoPage.AddToChest, 5); _PharmacyDrugInfoPage.AddToChest.Click(); }