diff --git a/src/test/java/CHARMS/features/rasopathyStudy/RAS Consent Scenarios.feature b/src/test/java/CHARMS/features/rasopathyStudy/RAS Consent Scenarios.feature index e6c819e1e..5d171ac36 100644 --- a/src/test/java/CHARMS/features/rasopathyStudy/RAS Consent Scenarios.feature +++ b/src/test/java/CHARMS/features/rasopathyStudy/RAS Consent Scenarios.feature @@ -317,7 +317,7 @@ Feature: RAS Consent Scenarios And clicks on "Physical Activities Survey" to begin survey And submits the Physical Activities Survey - @muzipovay2 @RAS_STUDY @CP2-4000 @selenium @RAS_Regression @Progression + @muzipovay2 @RAS_STUDY @CP2-4000 @selenium @RAS_Regression Scenario: Completing Physical Activities Survey survey Given test automation account "https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597" has been reset Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage" diff --git a/src/test/java/CHARMS/pages/NativeViewCGBIIQPage.java b/src/test/java/CHARMS/pages/NativeViewCGBIIQPage.java index b9a1766e2..884e539ee 100644 --- a/src/test/java/CHARMS/pages/NativeViewCGBIIQPage.java +++ b/src/test/java/CHARMS/pages/NativeViewCGBIIQPage.java @@ -7,6 +7,12 @@ public class NativeViewCGBIIQPage { + /***************************************************************** + * * + * DEMOGRAPHICS TAB FIELDS * + * * + *****************************************************************/ + /** * Demographics tab */ @@ -97,6 +103,258 @@ public class NativeViewCGBIIQPage { @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.health_insurance']") public WebElement doesTheParticipantHaveHealthInsuranceDropdown; + /******************************************************************** + * * + * MEDICAL HISTORY TAB FIELDS * + * * + ********************************************************************/ + + /** + * Medical History tab + */ + @FindBy(xpath = "//span[normalize-space()='Medical History']") + public WebElement medicalHistoryTab; + + /** + * Participants birth timing dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.birth_timing']") + public WebElement birthTimingDropdown; + + /** + * Participant birth weight (grams) input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.birth_weight']") + public WebElement birthWeightInputField; + + /** + * Birth weight unknown checkbox + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.birth_weight_unknown']") + public WebElement birthWeightUnknownCheckbox; + + /** + * Participant birth length (cm) input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.birth_length']") + public WebElement birthLengthInputField; + + /** + * Birth length unknown checkbox + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.birth_length_unknown']") + public WebElement birthLengthUnknownCheckbox; + + /** + * Participants head circumference at birth (cm) input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.head_circumference_at_birth']") + public WebElement headCircumferenceAtBirthInputField; + + /** + * Head circumference unknown checkbox + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.head_circumference_unknown']") + public WebElement headCircumferenceUnknownCheckbox; + + /** + * Are participants bio parents blood-related dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.bio_parents_related']") + public WebElement bioParentsRelatedDropdown; + + /** + * Is participant a twin or multiple birth? dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.twin_multiple_birth']") + public WebElement twinMultipleBirthDropdown; + + /** + * Participant conceived using in vitro fertilization dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.in_vitro_fertilization']") + public WebElement inVitroFertilizationDropdown; + + /** + * Has the participant been evaluated for genetic disease or syndrome? dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.genetic_evaluation']") + public WebElement hasBeenEvaluatedForGeneticDiseaseOrSyndromeEvaluationDropdown; + + /** + * Do you have genetic test results you can upload dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.genetic_test_results']") + public WebElement doYouHaveGeneticTestResultsToUploadDropdown; + + /** + * Has the participant been diagnosed with cancer and/or benign tumor? dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.participant_cancer']") + public WebElement participantDiagnosedWithCancerOrBenignTumorDropdown; + + /********************************************************************** + * * + * PHYSICAL FINDINGS TAB FIELDS * + * * + *********************************************************************/ + + /** + * Physical Findings tab + */ + @FindBy(xpath = "//span[normalize-space()='Physical Findings']") + public WebElement physicalFindingsTab; + + /** + * Current height (CM) input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.current_height']") + public WebElement currentHeightInputField; + + /** + * Current height unknown checkbox + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.current_height_unknown']") + public WebElement currentHeightUnknownCheckbox; + + /** + * Weight at 18 years of age (kg) input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.weight_at_18']") + public WebElement weightAt18InputField; + + /** + * Reason weight at 18 unknown dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.reason_weight_at_18_unknown']") + public WebElement reasonWeightAt18UnknownDropdown; + + /** + * Weight at 30 years of age (kg) input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.weight_at_30']") + public WebElement weightAt30InputField; + + /** + * Reason weight at 30 unknown dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.reason_weight_at_30_unknown']") + public WebElement reasonWeightAt30UnknownDropdown; + + /** + * Age at highest weight input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.age_at_highest_weight']") + public WebElement ageAtHighestWeightInputField; + + /** + * Current weight (kg) input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.current_weight']") + public WebElement currentWeightInputField; + + /** + * Current weight unknown checkbox + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.current_weight_unknown']") + public WebElement currentWeightUnknownCheckbox; + + /** + * Weight at 40 years of age (kg) input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.weight_at_40']") + public WebElement weightAt40InputField; + + /** + * Reason weight at 40 unknown dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.reason_weight_at_40_unknown']") + public WebElement reasonWeightAt40UnknownDropdown; + + /** + * Highest weight during lifetime? (excluding pregnancy) (kg) input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.most_participant_has_weighed']") + public WebElement highestWeightDuringLifetimeInputField; + + /** + * Reason for highest weight unknown dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.reason_weight_at_highest_unknown']") + public WebElement reasonHighestWeightUnknownDropdown; + + /************************************************************************* + * * + * REPRODUCTIVE HISTORY TAB FIELDS * + * * + *************************************************************************/ + + /** + * Reproductive History tab + */ + @FindBy(xpath = "//span[normalize-space()='Reproductive History']") + public WebElement reproductiveHistoryTab; + + /** + * Have you had a menstrual period? Dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.menstrual_period']") + public WebElement haveYouHadAMenstrualPeriodDropdown; + + /** + * Reason for no periods input field + */ + @FindBy(xpath = "//input[@id='sys_display.x_naci_family_coho_cgb_iiq.reason_for_no_periods']") + public WebElement reasonForNoPeriodsInputField; + + /** + * Has the participant ever been pregnant dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.pregnant']") + public WebElement hasTheParticipantEverBeenPregnantDropdown; + + /** + * Has participant tried to become pregnant for a year or more without success dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.pregnancy_success']") + public WebElement hasParticipantTriedToBecomePregnantForYearOrMoreWithoutSuccessDropdown; + + /** + * Has the participant consulted a doctor because of difficulty getting pregnant? Dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.consulted_doctor']") + public WebElement hasParticipantConsultedADoctorBecauseOfDifficultyGettingPregnantDropdown; + + /** + * Was the participant prescribed female hormones? Dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.female_hormones']") + public WebElement wasParticipantPrescribedFemaleHormonesDropdown; + + /** + * Has participant taken pills, injections or implants for birth control dropdown + */ + @FindBy(xpath = "//select[@id='x_naci_family_coho_cgb_iiq.pills_injections_implants']") + public WebElement hasParticipantTakenPillsInjectionsImplantsForBirthControlDropdown; + + /** + * Total Live Births input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.total_livebirths']") + public WebElement totalLiveBirthsInputField; + + /** + * Total Miscarriages input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.total_miscarriages']") + public WebElement totalMiscarriagesInputField; + + /** + * Total Stillbirths input field + */ + @FindBy(xpath = "//input[@id='x_naci_family_coho_cgb_iiq.total_stillbirths']") + public WebElement totalStillbirthsInputField; + public NativeViewCGBIIQPage() { PageFactory.initElements(WebDriverUtils.webDriver, this); } diff --git a/src/test/java/CHARMS/resources/data.xlsx b/src/test/java/CHARMS/resources/data.xlsx index b0ee4c1b8..289d58faf 100644 Binary files a/src/test/java/CHARMS/resources/data.xlsx and b/src/test/java/CHARMS/resources/data.xlsx differ diff --git a/src/test/java/CHARMS/steps/RAS_All_Steps.java b/src/test/java/CHARMS/steps/RAS_All_Steps.java index 30796b18a..a230f14fc 100644 --- a/src/test/java/CHARMS/steps/RAS_All_Steps.java +++ b/src/test/java/CHARMS/steps/RAS_All_Steps.java @@ -23,6 +23,7 @@ import java.net.URL; import java.util.HashMap; import java.util.Map; +import static APPS_COMMON.Pages.Selenium_Common_Locators.locateByCssSelector; import static Hooks.Hooks.softAssert; import static CHARMS.pages.MyRASHomePage.dynamicModuleLocator; import static CHARMS.steps.RAS_Common_Methods.*; @@ -310,8 +311,8 @@ public static void PI_completes_consent_and_verifies_in_Native_View(String sheet CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentSignAndCompleteButton); CommonUtils.sleep(2000); CucumberLogUtils.logScreenshot(); - CommonUtils.waitForClickability(locateByXpath("//button[@title='Back']")); - CommonUtils.clickOnElement(locateByXpath("//button[@title='Back']")); + CommonUtils.waitForClickability(locateByCssSelector("button[aria-label='Back']")); + locateByCssSelector("button[aria-label='Back']").click(); CommonUtils.sleep(1000); CucumberLogUtils.logScreenshot(); JavascriptUtils.scrollIntoView(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentsTab); diff --git a/src/test/java/CHARMS/stepsImplementation/FanconiEligibilityQuestionnaireStepsImpl.java b/src/test/java/CHARMS/stepsImplementation/FanconiEligibilityQuestionnaireStepsImpl.java index 1b4830070..f6073db97 100644 --- a/src/test/java/CHARMS/stepsImplementation/FanconiEligibilityQuestionnaireStepsImpl.java +++ b/src/test/java/CHARMS/stepsImplementation/FanconiEligibilityQuestionnaireStepsImpl.java @@ -1920,7 +1920,10 @@ public void consent_is_submitted_with_collection_method(String collectionMethod) CommonUtils.selectDropDownValue("Yes", nativeViewCHARMSParticipantConsentPage.rasStudyConsentCopyOfSignedDatedConsentAssentGivenToParticipantDropDown); } else { CommonUtils.selectDropDownValue("Yes", nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureSpecimensAndDataDropDown); + CommonUtils.waitForClickability(nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureUseCollaboratorsDropDown); CommonUtils.selectDropDownValue("Yes", nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureUseCollaboratorsDropDown); + JavascriptUtils.scrollIntoView(nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureIdentifiableUseCollaboratorsDropDown); + CommonUtils.waitForClickability(nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureIdentifiableUseCollaboratorsDropDown); CommonUtils.selectDropDownValue("Yes", nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureIdentifiableUseCollaboratorsDropDown); CommonUtils.sleep(500); CucumberLogUtils.logScreenshot(); @@ -1981,13 +1984,16 @@ public void study_team_navigate_to_participant_s_cgb_iiq_record() { CucumberLogUtils.logScreenshot(); CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); CommonUtils.sleep(500); - verify_fields_in_native_view_cgb_iqq_record(); + verify_demographics_fields_in_native_view_cgb_iqq_record(); + verify_medical_history_fields_in_native_view_cgb_iqq_record(); + verify_physical_findings_in_native_view_cgb_iqq_record(); + verify_reproductive_history_in_native_view_cgb_iqq_record(); } /** - * Method for verifying CGB IIQ record fields in Native View. + * Method for verifying CGB IIQ Demographics tab fields in Native View. */ - public void verify_fields_in_native_view_cgb_iqq_record() { + public void verify_demographics_fields_in_native_view_cgb_iqq_record() { softAssert.assertEquals(nativeViewCGBIIQPage.participantsCityOfBirthTextField.getDomAttribute("value"), iiq_TestDataManager.whereWereYouBornCityTextBox, "* * * * * CGB IIQ - MISMATCH IN \"Participants city of birth\" * * * * *"); softAssert.assertEquals(nativeViewCGBIIQPage.participantsStateProvidenceOfTextField.getDomAttribute("value"), iiq_TestDataManager.whereWereYouBornStateTextBox, "* * * * * CGB IIQ - MISMATCH IN \"Participants state/province of birth\" * * * * *"); softAssert.assertEquals(nativeViewCGBIIQPage.participantsCountryOfBirthTextField.getDomAttribute("value"), iiq_TestDataManager.whereWereYouBornCountryTextBox, "* * * * * CGB IIQ - MISMATCH IN \"Participants country of birth\" * * * * *"); @@ -1995,9 +2001,11 @@ public void verify_fields_in_native_view_cgb_iqq_record() { CommonUtils.sleep(500); CucumberLogUtils.logScreenshot(); JavascriptUtils.scrollIntoView(nativeViewCGBIIQPage.participantsBioMomAncestryNonEdit); + CommonUtils.waitForClickability(nativeViewCGBIIQPage.participantsBioMomAncestryNonEdit); + CommonUtils.sleep(500); softAssert.assertEquals(nativeViewCGBIIQPage.participantsBioMomAncestryNonEdit, iiq_TestDataManager.mostPeopleHaveAncestorsCheckBox, "* * * * * CGB IIQ - MISMATCH IN \"Biological mothers ancestral background\" * * * * *"); softAssert.assertEquals(nativeViewCGBIIQPage.participantsBioDadAncestryNonEdit, iiq_TestDataManager.whatIsYourBiologicalFatherAncestralBackgroundTextBox, "* * * * * CGB IIQ - MISMATCH IN \"Biological mothers ancestral background\" * * * * *"); - softAssert.assertEquals(nativeViewCGBIIQPage.familysReligiousBackgroundNonEdit, iiq_TestDataManager.whatIsYourFammilysReligiousBackgroundCheckBox, "* * * * * CGB IIQ - MISMATCH IN \"Family's religous background\" * * * * *"); + softAssert.assertEquals(nativeViewCGBIIQPage.familysReligiousBackgroundNonEdit, iiq_TestDataManager.whatIsYourFammilysReligiousBackgroundCheckBox, "* * * * * CGB IIQ - MISMATCH IN \"Family's religious background\" * * * * *"); RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.raisedByNonBioParentDropdown, iiq_TestDataManager.wereYouRaisedPrimarilyRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Was the participant raised by someone other than their own bio parent?\" * * * * *"); RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.isTheParticipantOfAshkenaziJewishDescentDropdown, iiq_TestDataManager.areYouOfAshkenazyJewishDescentRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Is the participant of Ashkenazi jewish descent?\" * * * * *"); RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.maritalStatusDropdown, iiq_TestDataManager.whatIsYourMaritalStatusCheckBox, "* * * * * CGB IIQ - MISMATCH IN \"Participant's marital status\" * * * * *"); @@ -2007,4 +2015,51 @@ public void verify_fields_in_native_view_cgb_iqq_record() { RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.doesTheParticipantHaveHealthInsuranceDropdown, iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Does the participant have health insurance?\" * * * * *"); CucumberLogUtils.logScreenshot(); } + + /** + * Method for verifying CGB IIQ Medical History tab fields in Native View. + */ + public void verify_medical_history_fields_in_native_view_cgb_iqq_record() { + nativeViewCGBIIQPage.medicalHistoryTab.click(); + CommonUtils.waitForVisibility(nativeViewCGBIIQPage.birthTimingDropdown); + RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.birthTimingDropdown, iiq_TestDataManager.wouldYouSayYouWereBornRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Participants birth timing\" * * * * *"); + softAssert.assertEquals(nativeViewCGBIIQPage.birthWeightInputField.getDomAttribute("value"), iiq_TestDataManager.pleaseFillOutBirtWeightNumericTextBox, "* * * * * CGB IIQ - MISMATCH IN \"Participant birth weight (grams)\" * * * * *"); + softAssert.assertTrue(nativeViewCGBIIQPage.birthWeightUnknownCheckbox.getDomAttribute("value").equals("true"), "* * * * * CGB IIQ - MISMATCH IN \"Birth weight unknown\" * * * * *"); + softAssert.assertEquals(nativeViewCGBIIQPage.birthLengthInputField.getDomAttribute("value"), iiq_TestDataManager.pleaseFillOutHeadNumericTextBox, "* * * * * CGB IIQ - MISMATCH IN \"Participant birth length (cm)\" * * * * *"); + softAssert.assertTrue(nativeViewCGBIIQPage.birthLengthUnknownCheckbox.getDomAttribute("value").equals("true"), "* * * * * CGB IIQ - MISMATCH IN \"Birth length unknown\" * * * * *"); + softAssert.assertEquals(nativeViewCGBIIQPage.headCircumferenceAtBirthInputField.getDomAttribute("value"), iiq_TestDataManager.pleaseFillOutHeadCircumferenceNumericTextBox, "* * * * * CGB IIQ - MISMATCH IN \"Participants head circumference at birth (cm)\" * * * * *"); + softAssert.assertTrue(nativeViewCGBIIQPage.headCircumferenceUnknownCheckbox.getDomAttribute("value").equals("true"), "* * * * * CGB IIQ - MISMATCH IN \"Head circumference unknown\" * * * * *"); + RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.bioParentsRelatedDropdown, iiq_TestDataManager.areYourBiologicalParentsBloodRelatedRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Are participants bio parents blood-related\" * * * * *"); + RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.twinMultipleBirthDropdown, iiq_TestDataManager.wereYouATwinRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Is participant a twin or multiple birth?\" * * * * *"); + RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.inVitroFertilizationDropdown, iiq_TestDataManager.wereYouConceivedUsingVitroRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Participant conceived using in vitro fertilization\" * * * * *"); + RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.hasBeenEvaluatedForGeneticDiseaseOrSyndromeEvaluationDropdown, iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Has the participant been evaluated for genetic disease or syndrome?\" * * * * *"); + RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.participantDiagnosedWithCancerOrBenignTumorDropdown, iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Has the participant been diagnosed with cancer and/or benign tumor?\" * * * * *"); + CucumberLogUtils.logScreenshot(); + } + + /** + * Method for verifying CGB IIQ Physical Findings tab fields in Native View. + */ + public void verify_physical_findings_in_native_view_cgb_iqq_record() { + nativeViewCGBIIQPage.physicalFindingsTab.click(); + softAssert.assertEquals(nativeViewCGBIIQPage.currentHeightInputField.getDomAttribute("value"), iiq_TestDataManager.pleaseFillTheTableBelowWithHeightNumericTextBox, "* * * * * CGB IIQ - MISMATCH IN \"Current height (CM)\" * * * * *"); + softAssert.assertTrue(nativeViewCGBIIQPage.currentHeightUnknownCheckbox.getDomAttribute("value").equals("true"), "* * * * * CGB IIQ - MISMATCH IN \"Current height unknown\" * * * * *"); + softAssert.assertEquals(nativeViewCGBIIQPage.weightAt18InputField.getDomAttribute("value"), iiq_TestDataManager.pleaseFillTheTableBelowWithWeightAt18UnitDropDown, "* * * * * CGB IIQ - MISMATCH IN \"Weight at 18 years of age (kg)\" * * * * *"); + softAssert.assertEquals(nativeViewCGBIIQPage.weightAt30InputField.getDomAttribute("value"), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option4, "* * * * * CGB IIQ - MISMATCH IN \"Weight at 30 years of age (kg)\" * * * * *"); + softAssert.assertEquals(nativeViewCGBIIQPage.ageAtHighestWeightInputField.getDomAttribute("value"), iiq_TestDataManager.atWhatAgeWereYouAtTheHighestWeightTextBox, "* * * * * CGB IIQ - MISMATCH IN \"Age at highest weight input\" * * * * *"); + softAssert.assertTrue(nativeViewCGBIIQPage.currentWeightUnknownCheckbox.getDomAttribute("value").equals("true"), "* * * * * CGB IIQ - MISMATCH IN \"Current weight unknown\" * * * * *"); + softAssert.assertEquals(nativeViewCGBIIQPage.weightAt40InputField.getDomAttribute("value"), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option5, "* * * * * CGB IIQ - MISMATCH IN \"Weight at 40 years of age (kg)\" * * * * *"); + softAssert.assertEquals(nativeViewCGBIIQPage.highestWeightDuringLifetimeInputField.getDomAttribute("value"), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option2, "* * * * * CGB IIQ - MISMATCH IN \"Highest weight during lifetime? (excluding pregnancy) (kg)\" * * * * *"); + CucumberLogUtils.logScreenshot(); + } + + /** + * Method for verifying CGB IIQ Reproductive History tab fields in Native View. + */ + public void verify_reproductive_history_in_native_view_cgb_iqq_record() { + nativeViewCGBIIQPage.reproductiveHistoryTab.click(); + CommonUtils.waitForClickability(nativeViewCGBIIQPage.hasParticipantConsultedADoctorBecauseOfDifficultyGettingPregnantDropdown); + RAS_Common_Methods.softAssertDropDownValueIsSelected(nativeViewCGBIIQPage.hasParticipantConsultedADoctorBecauseOfDifficultyGettingPregnantDropdown, iiq_TestDataManager.haveYouSoughtMedicalAdviceRegardingFertilityRadioButton, "* * * * * CGB IIQ - MISMATCH IN \"Has the participant consulted a doctor because of difficulty getting pregnant?\" * * * * *"); + CucumberLogUtils.logScreenshot(); + } } \ No newline at end of file