diff --git a/pom.xml b/pom.xml index 0511a3a3c..c2c570079 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ org.seleniumhq.selenium selenium-java - 4.18.1 + 4.23.0 diff --git a/src/main/java/com/nci/automation/web/CommonUtils.java b/src/main/java/com/nci/automation/web/CommonUtils.java index 33f5c04d5..cfafeb467 100644 --- a/src/main/java/com/nci/automation/web/CommonUtils.java +++ b/src/main/java/com/nci/automation/web/CommonUtils.java @@ -3,7 +3,6 @@ import java.io.File; import java.io.IOException; import java.nio.file.Files; -import java.nio.file.Path; import java.nio.file.Paths; import java.sql.Timestamp; import java.text.SimpleDateFormat; @@ -11,6 +10,7 @@ import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; +import java.time.format.DateTimeParseException; import java.time.temporal.ChronoField; import java.util.*; import org.openqa.selenium.*; @@ -23,8 +23,8 @@ /** * This is a utility class which contains all common methods that will be used - * through out any application. New methods can be added at any time. Modifying - * the existing methods may result in build failure. - Please + * throughout any application. New methods can be added at any time. Modifying + * the existing methods may result in build failure. - Please notify CBIIT QA Team for modifications * * @author juarezds */ @@ -32,41 +32,37 @@ public class CommonUtils extends WebDriverUtils { /** * Use this String to pass an email concatenated with current date and time into - * an email text box and you can pass same value (email+date+time) in another + * an email text box, and you can pass same value (email+date+time) in another * steps. */ - public static String email = getEmail(); public static String date = getDateAsString(); /** - * Use this method in need of entering keyboard keys into a WebElement by - * selenium WebDriver. + * Sends a keyboard key to the specified web element. * - * @param element Pass the element to which the key needs to be entered. - * @param keyboardKey Pass the desired keyboardKey to be entered to an element. + * @param element the web element to send keys to + * @param keyboardKey the keyboard key to be sent */ public static void sendKeys(WebElement element, Keys keyboardKey) { element.sendKeys(keyboardKey); } /** - * Use this method in need of retrieving the text of an element through selenium - * WebDriver. + * Retrieves the visible text of the given web element. * - * @param element Pass the element from which the text to be retrieved. - * @return This method returns a string object. + * @param element The WebElement to retrieve the text from. + * @return The visible text of the web element. */ public static String getText(WebElement element) { return element.getText(); } /** - * Use this over loaded method in need of selecting an element of dropDown by - * VisbleText. + * Selects a value in a dropdown by its visible text. * - * @param //dropDownElement Pass the WebElement of the desired dropDown. - * @param //ValueOfDropDown Pass the Visible text of DropDown to be selected. + * @param VisibleTextOfDD the visible text of the option to be selected + * @param dropDownWebEl the WebElement representing the dropdown */ public static void selectDropDownValue(String VisibleTextOfDD, WebElement dropDownWebEl) { Select select = new Select(dropDownWebEl); @@ -74,11 +70,10 @@ public static void selectDropDownValue(String VisibleTextOfDD, WebElement dropDo } /** - * Use this over loaded method in need of selecting an element of dropDown by - * Value. + * Selects a value from a dropdown list based on the provided value. * - * @param //dropDownElement Pass the value to be selected. - * @param //ValueOfDropDown Pass the WebElement of the dropDown. + * @param element the {@link WebElement} representing the dropdown list + * @param value the value to be selected from the dropdown list */ public static void selectDropDownValue(WebElement element, String value) { Select select = new Select(element); @@ -86,11 +81,10 @@ public static void selectDropDownValue(WebElement element, String value) { } /** - * Use this over loaded method in need of selecting an element of dropDown by - * index. + * Selects a value from a dropdown list based on the index position. * - * @param dropDownElement WebElement of the dropDown. - * @param //indexOfDropDownValue Pass the index + * @param dropDownElement the dropdown element to select a value from + * @param index the index position of the value to be selected */ public static void selectDropDownValue(WebElement dropDownElement, int index) { Select select = new Select(dropDownElement); @@ -98,13 +92,12 @@ public static void selectDropDownValue(WebElement dropDownElement, int index) { } /** - * this method will accept the alert + * Accepts and closes the alert dialog box if present. + * If there is no alert dialog box, then a message is displayed indicating that no alert is present. * - * @throws //will throw NoAlertExeption if alert is not present. + * @throws NoAlertPresentException if no alert dialog box is present */ - public static void acceptAlert() { - try { Alert alert = webDriver.switchTo().alert(); alert.accept(); @@ -114,13 +107,10 @@ public static void acceptAlert() { } /** - * this method will dismiss the alert - * - * @throws //will throw NoAlertExeption if alert is not present. + * Dismisses the currently displayed alert. + * If there is no alert present, it prints a message. */ - public static void dismissAlert() { - try { Alert alert = webDriver.switchTo().alert(); alert.dismiss(); @@ -130,13 +120,12 @@ public static void dismissAlert() { } /** - * this method will get the alert text + * Retrieves the text content of an alert displayed on the current web page. * - * @throws //will throw NoAlertExeption if alert is not present. + * @return the alert text content as a String, or null if no alert is present. + * @throws NoAlertPresentException if no alert is present on the web page. */ - public static String getAlertText() { - try { Alert alert = webDriver.switchTo().alert(); return alert.getText(); @@ -147,13 +136,11 @@ public static String getAlertText() { } /** - * This method will switch to the frame + * Switches the focus to a frame with the specified name or id. * - * @param nameOrId + * @param nameOrId the name or id of the frame to switch to */ - public static void switchToFrame(String nameOrId) { - try { webDriver.switchTo().frame(nameOrId); } catch (NoSuchFrameException e) { @@ -162,9 +149,9 @@ public static void switchToFrame(String nameOrId) { } /** - * use this method in need of switching to the frame + * Switches the focus to a specified frame. * - * @param element + * @param element the element representing the frame to switch to */ public static void switchToFrame(WebElement element) { try { @@ -175,12 +162,11 @@ public static void switchToFrame(WebElement element) { } /** - * This method will switch to the frame + * Switches the focus to a frame identified by index. * - * @param index + * @param index the index of the frame to switch to */ public static void switchToFrame(int index) { - try { webDriver.switchTo().frame(index); } catch (NoSuchFrameException e) { @@ -189,11 +175,10 @@ public static void switchToFrame(int index) { } /** - * This method will switch to default frame + * Switches the focus of the driver to the default content, i.e., the top-level browsing context. + * If the default content is not found, a message will be printed to the console indicating that the frame is not present. */ - public static void switchToDefaultContent() { - try { webDriver.switchTo().defaultContent(); } catch (NoSuchFrameException e) { @@ -202,10 +187,10 @@ public static void switchToDefaultContent() { } /** - * This method will determine if element is present on ui or not. + * Check if the given WebElement is displayed on the page. * - * @param element - * @return + * @param element the WebElement to be checked for visibility + * @return true if the element is displayed, false if the element is not displayed or an exception occurs */ public static boolean isElementDisplayed(WebElement element) { try { @@ -215,6 +200,12 @@ public static boolean isElementDisplayed(WebElement element) { } } + /** + * Checks if the element identified by the given locator is displayed on the current web page. + * + * @param locator the locator used to identify the element + * @return true if the element is displayed, false otherwise + */ public static boolean isElementDisplayed(By locator) { try { return webDriver.findElement(locator).isDisplayed(); @@ -224,10 +215,10 @@ public static boolean isElementDisplayed(By locator) { } /** - * This method will determine if the element is enabled or disabled. + * Determines whether a given web element is enabled or not. * - * @param element - * @return + * @param element the web element to check + * @return true if the element is enabled, false if not or if an exception occurs during the check */ public static boolean isElementEnabled(WebElement element) { try { @@ -237,26 +228,6 @@ public static boolean isElementEnabled(WebElement element) { } } - /** - * This method will block until the element corresponding to the given - * {@code id} can be clicked in the page or {@code timeOut} whichever is - * earlier. - */ - public static void waitUntilElemtTobeClickableById(Duration timeOut, String id) { - WebDriverWait webDriverWait = new WebDriverWait(webDriver, timeOut); - webDriverWait.until(ExpectedConditions.elementToBeClickable(By.id(id))); - } - - /** - * This method will block until the element corresponding to the given - * {@code id} can be clicked in the page or {@code timeOut} whichever is - * earlier. - */ - public static void waitUntilElemtTobeClickableByXpath(Duration timeOut, String xpathExcpression) { - WebDriverWait webDriverWait = new WebDriverWait(webDriver, timeOut); - webDriverWait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpathExcpression))); - } - /** * Use this method in need of waiting for 30s for an element based on * availability of elementToBeSelected. @@ -270,9 +241,9 @@ public static WebElement waitForThePresenceOfEl(String element, Duration timeOut } /** - * This method will create an Object of WebDriverWait + * Creates and returns a WebDriverWait object with a default timeout of 30 seconds. * - * @return WebDriverWait + * @return the WebDriverWait object. */ public static WebDriverWait getWaitObject() { WebDriverWait wait = new WebDriverWait(webDriver, Duration.ofSeconds(30)); @@ -280,63 +251,25 @@ public static WebDriverWait getWaitObject() { } /** - * This method will wait until element becomes clickable + * Waits until the given web element is clickable. * - * @param element + * @param element The web element to wait for clickability. */ public static void waitForClickability(WebElement element) { getWaitObject().until(ExpectedConditions.elementToBeClickable(element)); } /** - * This method will wait until element becomes visible + * Waits for the visibility of the given web element. * - * @param element + * @param element The web element to wait for visibility. */ public static void waitForVisibility(WebElement element) { getWaitObject().until(ExpectedConditions.visibilityOf(element)); } /** - * This method will wait until element becomes invisible - * - * @param element - */ - public static void waitForInvisibility(WebElement element) { - getWaitObject().until(ExpectedConditions.invisibilityOf(element)); - } - - /** - * This method will select the specified day from the specified calendar table - * - * @param table - * @param day - */ - public static void selectDateFromTable(WebElement table, String day) { - List rows = table.findElements(By.xpath("./tbody/tr")); - List cells = new ArrayList<>(); - boolean daySelected = false; - for (WebElement row : rows) { - if (row.getText().contains(day)) { - cells = row.findElements(By.xpath("./td/a")); - break; - } - } - for (WebElement cell : cells) { - if (cell.getText().equals(day)) { - JavascriptUtils.clickByJS(cell); - daySelected = true; - break; - } - } - if (!daySelected) { - System.out.println("The specified day could not be selected from the calendar."); - } - } - - /** - * This method will read a .json file and return it in a String type written in - * json format - for passing REST payloads + * This variable represents the name or path of a JSON file. */ static String jsonFile; @@ -350,34 +283,12 @@ public static String readJson(String fileName) { } /** - * Use this method in need of removing all characters except Alphabets - * - * @param yourValue - * @return Will return the updated value - */ - public static String getAlphabiticCharactersOnly(String yourValue) { - return yourValue.replaceAll("[^a-zA-Z]", ""); - } - - /** - * Use this method in need of removing all characters except Numbers - * - * @param yourValue - * @return Will return the updated value - */ - public static String getNumChrtr(String yourValue) { - return yourValue.replaceAll("[^0-9]", ""); - } - - /** - * Use this method to select a drop down value from a ServiceNow drop down menu + * Use this method to select a drop-down value from a ServiceNow drop down menu * when Select class will not work NOTE: Before using, first you must click on - * the drop down, then store elements in a list + * the drop-down, then store elements in a list */ public static void selectValueFromBootStrapDropDown(List values, String value) { - for (WebElement dropDownValues : values) { - if (dropDownValues.getText().contentEquals(value)) { dropDownValues.click(); break; @@ -387,10 +298,10 @@ public static void selectValueFromBootStrapDropDown(List values, Str } /** - * Use this method to pass an email concatenated with current date and time into - * an email text box + * Returns a formatted email string based on the current timestamp. + * + * @return the formatted email string */ - public static String getEmail() { Date date = new Date(); Timestamp ts = new Timestamp(date.getTime()); @@ -402,27 +313,27 @@ public static String getEmail() { } /** - * Use this method to pass a random LaastName as a String + * Generates a random last name with 10 characters consisting of lowercase letters. * - * @return + * @return a random last name */ public static String lastNameRandomizer() { int leftLimit = 97; // letter 'a' int rightLimit = 122; // letter 'z' int targetStringLength = 10; Random random = new Random(); - String generatedString = random.ints(leftLimit, rightLimit + 1) .limit(targetStringLength) .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append) .toString(); - String generatedLastName = generatedString.substring(0, 1).toUpperCase() + generatedString.substring(1); - return generatedLastName; + return generatedString.substring(0, 1).toUpperCase() + generatedString.substring(1); } /** - * Use this method to pass date as a string. You can concatinate with any String - * and get unique name + * Returns the current date and time as a formatted string. + * The date and time are formatted according to the pattern "yyyy-MM-dd HH:mm:ss". + * + * @return the formatted date and time as a string. */ public static String getDateAsString() { Date date = new Date(); @@ -434,7 +345,11 @@ public static String getDateAsString() { } /** - * Use this method to select a checkbox value + * Selects the checkbox based on the given attribute and value. + * + * @param checkboxList the list of web elements representing the checkboxes + * @param attribute the attribute to match against + * @param value the value to match */ public static void selectCheckbox(List checkboxList, String attribute, String value) { for (WebElement checkbox : checkboxList) { @@ -450,13 +365,14 @@ public static void selectCheckbox(List checkboxList, String attribut } /** - * Use this method to select a checkbox value & to check that checkbox is - * displayed + * Selects a checkbox from a list of checkboxes based on specified attribute and value. + * + * @param checkboxList the list of checkboxes to select from + * @param attribute the attribute of the checkboxes to compare against + * @param value the value of the attribute to match */ - public static void selectCheckboxDisplayed(List checkboxList, String attribute, String value) { for (WebElement checkbox : checkboxList) { - if (checkbox.isEnabled() && checkbox.isDisplayed()) { String checkboxText = checkbox.getAttribute(attribute); if (checkboxText.equals(value)) { @@ -469,25 +385,16 @@ public static void selectCheckboxDisplayed(List checkboxList, String } /** - * Use this method to open new tab - */ - - public static void openNewTab() { - JavascriptExecutor js = (JavascriptExecutor) WebDriverUtils.webDriver; - js.executeScript("window.open('about:blank','_blank');"); - } - - /** - * @Author @SonikaJain - * Switch to new tab opened by clicking a link + * This method is used to switch to another tab window in the current session. + * It gets the current window handle of the parent window and then iterates + * through all the window handles. If a window handle is not equal to the parent + * window handle, then it switches the driver context to that window handle. + * This is useful when working with multiple tabbed windows within a single browser instance. */ public static void switchToAnotherTabWindow() { String parent = WebDriverUtils.webDriver.getWindowHandle(); Set s = WebDriverUtils.webDriver.getWindowHandles(); - Iterator I1 = s.iterator(); - - while (I1.hasNext()) { - String child_window = I1.next(); + for (String child_window : s) { if (!parent.equals(child_window)) { WebDriverUtils.webDriver.switchTo().window(child_window); } @@ -495,16 +402,10 @@ public static void switchToAnotherTabWindow() { } /** - * @Author @SonikaJain - * Click browser back button - */ - public static void clickBrowserBackButton() { - WebDriverUtils.webDriver.navigate().back(); - } - - /** - * @Author @SonikaJain - * To maximize the window + * Maximizes the current window. + * This method is used to maximize the window of the current WebDriver instance. + * If the window is already maximized, this method has no effect. + * The behavior of this method may vary based on the WebDriver implementation. */ public static void maximizeWindow() { WebDriverUtils.webDriver.manage().window().maximize(); @@ -520,92 +421,79 @@ public static void switchToAnotherWindow() { } } - /* - * Use this method to scroll into an element + /** + * Scrolls the webpage until the specified element is in view. + * + * @param locator the locator to identify the element to scroll into view */ public static void scrollIntoView(By locator) { - try { WebElement element = WebDriverUtils.webDriver.findElement(locator); Actions action = new Actions(WebDriverUtils.webDriver); action.moveToElement(element); action.perform(); - } catch (Exception e) { - throw e; - } } - /* - * Use this method to scroll into an element + /** + * Scrolls the web page to bring the specified web element into view. + * + * @param element the web element to scroll into view */ public static void scrollIntoView(WebElement element) { - try { Actions action = new Actions(WebDriverUtils.webDriver); action.moveToElement(element); action.perform(); - } catch (Exception e) { - throw e; - } } - /* + /** + * Compares the actual and expected strings and throws an AssertionError if they are not equal. * - * Use below method to assert expected String value with an actual String value + * @param actual the actual string value + * @param expected the expected string value + * @throws AssertionError if the actual string is not equal to the expected string */ public static void assertEquals(String actual, String expected) { - try { Assert.assertEquals(actual, expected); } catch (AssertionError e) { - e.printStackTrace(); } } - /* + /** + * Compares the actual and expected strings using the Assert.assertEquals() method from the JUnit framework. + * If the comparison fails, an AssertionError is caught and printed out. * - * Use below method to assert expected String value with an actual String value - * with a message + * @param actual The actual string value to be compared. + * @param expected The expected string value to be compared against. + * @param message An optional message to be printed if the comparison fails. */ public static void assertEqualsWithMessage(String actual, String expected, String message) { - try { Assert.assertEquals(actual, expected, message); } catch (AssertionError e) { - e.printStackTrace(); } } - /* + /** + * This method checks if a given boolean condition is true. If the condition is false, + * it throws an AssertionError, which can be caught and handled using try-catch. * - * Use below method to assert actual String value with an expected String value - * using assertTrue() method + * @param flag the boolean flag to be checked */ public static void assertTrue(boolean flag) { - try { Assert.assertTrue(flag); } catch (AssertionError e) { - e.printStackTrace(); } } - /* - * Use this method to assert a boolean condition using JUnit assertion - */ - public static void assertTrueJUNIT(String message, boolean flag) { - try { - org.junit.Assert.assertTrue(message, flag); - } catch (AssertionError e) { - e.printStackTrace(); - } - - } - - /* - * Use this method to assert a boolean condition using TestNG assertion - * -- INCLUDE A STRING MESSAGE SPECIFYING THE ASSERTION -- + /** + * Asserts that a given boolean flag is true as per TestNG framework. + * + * @param flag the boolean flag to be asserted + * @param message the error message to be displayed if the assertion fails */ public static void assertTrueTestNG(boolean flag, String message) { try { @@ -615,8 +503,12 @@ public static void assertTrueTestNG(boolean flag, String message) { } } - /* - * Use this method to switch to switch to a following window + /** + * Switches the WebDriver to the next window. + * This method retrieves all the window handles and switches the WebDriver to each window one by one. + * This allows the WebDriver to interact with multiple windows. + * + * @throws NoSuchWindowException if the next window handle does not exist */ public static void switchToNextWindow() { Set allWindowHandles1 = WebDriverUtils.webDriver.getWindowHandles(); @@ -626,15 +518,15 @@ public static void switchToNextWindow() { } /** - * USE THIS METHOD TO CLICK ON STALE ELEMENTS + * Clicks on the given web element. * - * @param ele + * @param element the web element to be clicked */ - public static void clickOnElement(WebElement ele) { + public static void clickOnElement(WebElement element) { int count = 0; while (count < 10) { try { - ele.click(); + element.click(); break; } catch (WebDriverException ex) { MiscUtils.sleep(2000); @@ -644,15 +536,16 @@ public static void clickOnElement(WebElement ele) { } /** - * USE THIS METHOD TO SEND KEYS TO STALE ELEMENTS + * Sends the specified text to the given web element. * - * @param ele + * @param element the web element to send keys to + * @param text the text to send */ - public static void sendKeysToElement(WebElement ele, String text) { + public static void sendKeysToElement(WebElement element, String text) { int count = 0; while (count < 5) { try { - ele.sendKeys(text); + element.sendKeys(text); break; } catch (WebDriverException ex) { MiscUtils.sleep(2000); @@ -661,31 +554,21 @@ public static void sendKeysToElement(WebElement ele, String text) { } } - /*** - * USE THIS METHOD TO GET THE ATTRIBUTE VALUE OF THE VALUE ATTRIBUTE + /** + * Retrieves the value of the "value" attribute of a given web element. * - * @param element - * @return + * @param element The web element from which to retrieve the attribute value. + * @return The value of the "value" attribute of the specified web element. */ public static String getAttributeValueOfValueAttribute(WebElement element) { return element.getAttribute("value"); } - public static boolean isFileDownloaded(String fileName) { - boolean temp = false; - Path path = Paths.get(System.getProperty("user.dir") + "/" + fileName + "*" + "xlsx"); - System.out.println("Download Path is" + path); - if (Files.exists(path) == true) { - if (Files.isRegularFile(path)) { - System.out.println("File is found"); - temp = true; - } - } else { - System.out.println("File is not found"); - } - return temp; - } - + /** + * Deletes a file with the given fileName from the current directory. + * + * @param fileName the name of the file to be deleted + */ public static void deleteFile(String fileName) { File file = new File(System.getProperty("user.dir") + "/" + fileName); if (file.delete()) { @@ -693,14 +576,12 @@ public static void deleteFile(String fileName) { } } - /*** - * USE THIS METHOD TO VERIFY IF A VALUE HAS BEEN SELECTED IN A DROP DOWN, IF IT - * IS NOT SELECTED, A NoSuchElementException IS THROWN THAT IS ALSO HANDLED WITH - * THIS METHOD + /** + * Verifies if the specified expected value is selected in the given drop-down element. * - * @param element - * @param expectedValue - * @param message + * @param element The drop-down WebElement that needs to be checked. + * @param expectedValue The expected value that should be selected in the drop-down. + * @param message The failure message to be logged if the assertion fails. */ public static void verifyingDropDownValueIsSelected(WebElement element, String expectedValue, String message) { Select select = new Select(element); @@ -713,6 +594,17 @@ public static void verifyingDropDownValueIsSelected(WebElement element, String e } } + /** + * This method returns the text of the selected option in a drop-down list. + * + * @param element the web element representing the drop-down list + * @return the text of the selected option in the drop-down list + */ + public static String getTextOfSelectedDropDownOption(WebElement element){ + Select select = new Select(element); + return select.getFirstSelectedOption().getText(); + } + /** * Use this method in need of entering value to a text box through selenium * WebDriver. @@ -725,16 +617,16 @@ public static void sendKeys(WebElement element, String value) { element.sendKeys(value); } + /** + * Hover over the specified WebElement. + * + * @param e the WebElement to hover over + */ public static void hoverOverElement(WebElement e) { Actions actions = new Actions(WebDriverUtils.webDriver); actions.moveToElement(e).build().perform(); } - public static void hoverAndClickElement(int x, int y) { - Actions actions = new Actions(WebDriverUtils.webDriver); - actions.moveToLocation(x, y).build().perform(); - } - /** * Use this method to format a phone number into example +1 (201) 821 - 2343 * @@ -761,7 +653,7 @@ public static String getTodayDate() { * * @return the date one month from today in the format "dd/MM/yyyy" */ - public static String getOneMonthFromTodayDatein_DD_MM_YYY_format() { + public static String getOneMonthFromTodayDate_In_DD_MM_YYY_format() { LocalDate oneMonthFromToday = LocalDate.now().plusMonths(1); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM/dd/yyyy"); return oneMonthFromToday.format(formatter); @@ -864,4 +756,23 @@ public static void comparingTwoLists(List actualValues, List Assert.assertEquals(actualValues.get(i).getText(), expectedValues.get(i)); } } + + /** + * Converts a given date string from the format "MMMM d, yyyy" to "MM/dd/yyyy" format. + * + * @param inputDate the date string to be converted + * @return the converted date string in "MM/dd/yyyy" format, or null if the input date is invalid + */ + public static String convertDate(String inputDate) { + try { + DateTimeFormatter inputFormat = DateTimeFormatter.ofPattern("MMMM d, yyyy"); + DateTimeFormatter outputFormat = DateTimeFormatter.ofPattern("MM/dd/yyyy"); + + LocalDate date = LocalDate.parse(inputDate, inputFormat); + return date.format(outputFormat); + } catch (DateTimeParseException e) { + System.out.println("Unable to parse date: " + e.getMessage()); + return null; + } + } } \ No newline at end of file diff --git a/src/main/java/com/nci/automation/web/WebDriverUtils.java b/src/main/java/com/nci/automation/web/WebDriverUtils.java index d45c7615b..35e4862a8 100644 --- a/src/main/java/com/nci/automation/web/WebDriverUtils.java +++ b/src/main/java/com/nci/automation/web/WebDriverUtils.java @@ -101,6 +101,8 @@ public static void launchChrome() { } else if (osName.contains("Linux")) { ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--headless=new"); + chromeOptions.addArguments("---no-sandbox"); + chromeOptions.addArguments("--disable-dev-shm-usage"); webDriver = new ChromeDriver(chromeOptions); webDriver.manage().window().maximize(); webDriver.manage().deleteAllCookies(); diff --git a/src/test/java/ServiceNow/CHARMS/Constants/CHARMS_Data_File_Path_Constants.java b/src/test/java/ServiceNow/CHARMS/Constants/CHARMS_Data_File_Path_Constants.java index 8384374c2..292284ef6 100644 --- a/src/test/java/ServiceNow/CHARMS/Constants/CHARMS_Data_File_Path_Constants.java +++ b/src/test/java/ServiceNow/CHARMS/Constants/CHARMS_Data_File_Path_Constants.java @@ -3,8 +3,8 @@ public class CHARMS_Data_File_Path_Constants { public static final String RAS_SURVEY = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RasSurveySelfSubmission.xlsx"; public static final String RAS_SURVEY_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RasSurveyDataVerificationTableData.xlsx"; - public static final String RAS_SCENARIO_ONE_DATA = "ServiceNow/CHARMS/Resources/RASScenario1.xlsx"; - public static final String RAS_SCENARIO_TWO_DATA = "ServiceNow/CHARMS/Resources/RASScenario2.xlsx"; + public static final String RAS_SCENARIO_ONE_DATA = "src/test/java/ServiceNow/CHARMS/Resources/RASScenario1.xlsx"; + public static final String RAS_SCENARIO_TWO_DATA = "src/test/java/ServiceNow/CHARMS/Resources/RASScenario2.xlsx"; public static final String RAS_SCENARIO_THREE_DATA = "ServiceNow/CHARMS/Resources/RASScenario3.xlsx"; public static final String RAS_SCENARIO_FOUR_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario4.xlsx"; public static final String RAS_SCENARIO_FIVE_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/GenAIData/Gen_AI_Data_Set_1.xlsx"; diff --git a/src/test/java/ServiceNow/CHARMS/Features/RASAccountReset/TestAccountReset.feature b/src/test/java/ServiceNow/CHARMS/Features/RASAccountReset/TestAccountReset.feature index dd68c40df..5c5ffca69 100644 --- a/src/test/java/ServiceNow/CHARMS/Features/RASAccountReset/TestAccountReset.feature +++ b/src/test/java/ServiceNow/CHARMS/Features/RASAccountReset/TestAccountReset.feature @@ -1,5 +1,5 @@ Feature: Test Account Reset - @juarezds @TestAccountReset @Regression + @juarezds @TestAccountReset @Regression @selenium Scenario: Test Account Reset Then test account is reset to be used for next test execution \ No newline at end of file diff --git a/src/test/java/ServiceNow/CHARMS/Features/RasopathyStudy/RAS Entire Flow.feature b/src/test/java/ServiceNow/CHARMS/Features/RasopathyStudy/RAS Entire Flow.feature index 15934d81e..9ac36f9bd 100644 --- a/src/test/java/ServiceNow/CHARMS/Features/RasopathyStudy/RAS Entire Flow.feature +++ b/src/test/java/ServiceNow/CHARMS/Features/RasopathyStudy/RAS Entire Flow.feature @@ -1,27 +1,28 @@ Feature: RAS Screener Scenarios Description: This feature file contains scenarios which submit myRAS Screeners, Consent Flows, IIQ Forms and the RAS Surveys. No data verification in Native View - @bucurgb @myRasStudy @2CP2-2332 + @JUAREZDS @RAS_STUDY @2CP2-2332 @Smoke @Regression @selenium @Progression Scenario Outline: This scenario outline is completing the myRAS Screeners, Consent Flows, IIQ Forms and the RAS Surveys +# Given test automation account has been reset Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage" And logs in via Okta with username "" and password "" - And clicks on Eligibility Questionnaire to begin questionnaire + And clicks on "Eligibility Questionnaire" to begin survey When the participant submits a screener from excel sheet "" - And the consent is submitted for "" - Then data submitted for scenario is verified in native from the excel sheet "" - Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage" - And logs in via Okta with username "" and password "" - And clicks on the IIQ Form - And a participant enters username "" and pin - And the participant submits a Individual Information Questionnaire for excel sheet "" - Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage" - And logs in via Okta with username "" and password "" - And clicks on the Ras Survey Form - And a participant enters username "" and pin - When the participant submits a RAS Survey from excel sheet "" +# And the consent is submitted for "" +# Then data submitted for scenario is verified in native from the excel sheet "" +# Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage" +# And logs in via Okta with username "" and password "" +# And clicks on the IIQ Form +# And a participant enters username "" and pin +# And the participant submits a Individual Information Questionnaire for excel sheet "" +# Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage" +# And logs in via Okta with username "" and password "" +# And clicks on the Ras Survey Form +# And a participant enters username "" and pin +# When the participant submits a RAS Survey from excel sheet "" Examples: | Email | Password | ScreenerScenario | IIQScenario | SurveyScenario | - | charmsras1@yahoo.com | RASTest2022$$ | screenerScenario1 | IIQScenario1 | RASSurveyScenario1 | - | charmsras2@yahoo.com | RASTest2023$$ | screenerScenario2 | IIQScenario2 | RASSurveyScenario2 | - | charmsras3@yahoo.com | RASTest2023$$ | screenerScenario3 | IIQScenario3 | RASSurveyScenario3 | - | charmsras5@yahoo.com | RASTest2023$$ | screenerScenario4 | IIQScenario4 | RASSurveyScenario4 | \ No newline at end of file +# | charmsras1@yahoo.com | RASTest2022$$ | screenerScenario1 | IIQScenario1 | RASSurveyScenario1 | + | charmsras1@yahoo.com | RASTest2022$$ | screenerScenario2 | IIQScenario2 | RASSurveyScenario2 | +# | charmsras3@yahoo.com | RASTest2023$$ | screenerScenario3 | IIQScenario3 | RASSurveyScenario3 | +# | charmsras5@yahoo.com | RASTest2023$$ | screenerScenario4 | IIQScenario4 | RASSurveyScenario4 | \ No newline at end of file diff --git a/src/test/java/ServiceNow/CHARMS/Pages/MyRASHomePage.java b/src/test/java/ServiceNow/CHARMS/Pages/MyRASHomePage.java index 2c893a5bf..438103436 100644 --- a/src/test/java/ServiceNow/CHARMS/Pages/MyRASHomePage.java +++ b/src/test/java/ServiceNow/CHARMS/Pages/MyRASHomePage.java @@ -1,9 +1,10 @@ package ServiceNow.CHARMS.Pages; +import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; -import com.nci.automation.web.WebDriverUtils; +import static com.nci.automation.web.WebDriverUtils.webDriver; public class MyRASHomePage { @@ -13,10 +14,6 @@ public class MyRASHomePage { @FindBy(xpath = "//button[normalize-space()='Agree']") public WebElement warningAgreeButton; - /* RASopathy Eligibility Questionnaire */ - @FindBy(xpath = "(//span[normalize-space()='Eligibility Questionnaire'])[2]") - public WebElement rasoptathyEligibilityQuestionnaire; - /* RASopathy RAS Survey Button */ @FindBy(xpath = "(//span[normalize-space()='RAS Survey'])[2]") public WebElement rasoptathyRasSurveyButton; @@ -41,34 +38,20 @@ public class MyRASHomePage { @FindBy(xpath = "//div[@class='custom-card-image']//a[@aria-label='Consent']") public WebElement rasopathyStudyConsent; - /* RASopathy CHARMSAutomatedTestTwo link */ - @FindBy(xpath = "//button[@aria-label='User Information']") - public WebElement charmsAutomatedTestTwoLink; - - /* RASopathy CHARMSAutomatedTestTwo Sign Out link */ - @FindBy(xpath = "//a[normalize-space()='Sign Out']") - public WebElement charmsAutomatedTestTwoSignOutLink; - - /* RASopathy Individual Information Questionnaire */ - @FindBy(xpath = "//div[@class='custom-card-title']//a[@aria-label='Review Individual Information Questionnaire']") - public WebElement rasoptathyIndividualInformationQuestionnaire; - - /* RASopathy Individual Information Questionnaire Pin text */ - @FindBy(xpath = "//h3[@ng-show='c.showCode']") - public WebElement rasoptathyIndividualInformationQuestionnairePinText; - - /* RASopathy Individual Information Questionnaire One Time Pin Go button */ - @FindBy(xpath = "//button[normalize-space()='Go']") - public WebElement rasoptathyIndividualInformationQuestionnaireOneTimePinGoButton; - - /* RAS Survey */ - @FindBy(xpath = "(//span[normalize-space()='RAS Survey'])[2]") - public WebElement rasSurvey; + /** + * Locates a dynamic module based on the given text. + * + * @param text The text of the module to locate. + * @return The WebElement representing the dynamic module. + */ + public static WebElement dynamicModuleLocator(String text){ + return webDriver.findElement(By.xpath("//span[text()='" + text + "']//parent::a")); + } /** --------------- END OF myRAS Home PAGE --------------- */ public MyRASHomePage() { - PageFactory.initElements(WebDriverUtils.webDriver, this); + PageFactory.initElements(webDriver, this); } } diff --git a/src/test/java/ServiceNow/CHARMS/Pages/MyRASSurveyPage.java b/src/test/java/ServiceNow/CHARMS/Pages/MyRASSurveyPage.java index a48188aaa..172e2a91e 100644 --- a/src/test/java/ServiceNow/CHARMS/Pages/MyRASSurveyPage.java +++ b/src/test/java/ServiceNow/CHARMS/Pages/MyRASSurveyPage.java @@ -214,7 +214,7 @@ public WebElement dynamicPleaseSpecifyTextBox(String otherText) { /* USE THIS METHOD TO DYNAMICALLY ENTER TEXT IN OPTIONS SELECTED */ - public WebElement dynamicOtheriPleaseSpecifyTextBox(String text) { + public WebElement dynamicOtherPleaseSpecifyTextBox(String text) { return WebDriverUtils.webDriver.findElement(By.xpath("//span[contains(text(),'" + text + "')]//parent::label//parent::span//child::input")); } diff --git a/src/test/java/ServiceNow/CHARMS/Pages/ParticipantDetailsPage.java b/src/test/java/ServiceNow/CHARMS/Pages/ParticipantDetailsPage.java index 5b7adb9ce..74ab17577 100644 --- a/src/test/java/ServiceNow/CHARMS/Pages/ParticipantDetailsPage.java +++ b/src/test/java/ServiceNow/CHARMS/Pages/ParticipantDetailsPage.java @@ -46,15 +46,15 @@ public WebElement dynamicRecordButtonLocator(String text) { public WebElement nameTextBox; /* FIRST NAME TEXT BOX*/ - @FindBy(xpath = "//input[@aria-label='First Name']") + @FindBy(xpath = "(//input[@name='x_naci_family_coho_family_history_details.first_name'])[1]") public WebElement firstNameTextBox; /* MIDDLE INITIAL TEXT BOX */ - @FindBy(xpath = "//input[@aria-label='Middle Name']") + @FindBy(xpath = "//input[@name='x_naci_family_coho_family_history_details.middle_name']") public WebElement middleInitialTextBox; /* LAST NAME TEXT BOX */ - @FindBy(xpath = "//input[@aria-label='Last Name']") + @FindBy(xpath = "//input[@name='x_naci_family_coho_family_history_details.last_name']") public WebElement lastNameTextBox; /** @@ -93,19 +93,19 @@ public WebElement dynamicRecordButtonLocator(String text) { public WebElement contactInfoTab; /* CONTACT STREET ADDRESS */ - @FindBy(xpath = "//input[@aria-label='Contact Street Address']") + @FindBy(xpath = "//input[@name='x_naci_family_coho_family_history_details.street_address']") public WebElement contactStreetAddress; /* CONTACT STATE */ - @FindBy(xpath = "//input[@aria-label='Contact State']") + @FindBy(xpath = "//input[@name='x_naci_family_coho_family_history_details.state']") public WebElement contactState; /* CONTACT CITY */ - @FindBy(xpath = "//input[@aria-label='Contact City']") + @FindBy(xpath = "//input[@name='x_naci_family_coho_family_history_details.city']") public WebElement contactCity; /* CONTACT ZIP CODE */ - @FindBy(xpath = "//input[@aria-label='Contact Zip Code']") + @FindBy(xpath = "//input[@name='x_naci_family_coho_family_history_details.zipcode']") public WebElement contactZipCode; /* CONTACT COUNTRY DROP DOWN */ @@ -146,38 +146,14 @@ public WebElement dynamicRecordButtonLocator(String text) { /*** * MEDICAL INFORMATION SECTION */ - /* MEDICAL INFORMATION TAB */ - @FindBy(xpath = "//span[contains(text(),'Medical Information')]") - public WebElement medicalInformationTab; - - /* HAS A PHYSICIAN EVER DIAGNOSED THIS PARTICIPANT WITH CANCER? DROP DOWN*/ - @FindBy(xpath = "//select[@id='x_naci_family_coho_family_history_details.has_cancer']") - public WebElement hasAPhysicianEverDiagnosedThisParticipantWithCancerDropDown; - /* VITAL STATUS YES DROP DOWN OPTION */ @FindBy(xpath = "//*[@id='x_naci_family_coho_ras_referral.family_member_record.person_alive']") public WebElement vitalStatusYesDropDownOption; - /* HAS THE PARTICIPANT EVER HAD GENETIC TESTING? DROP DOWN */ - @FindBy(xpath = "//select[@id='x_naci_family_coho_family_history_details.genetic_testing']") - public WebElement hasTheParticipantEverHadGeneticTestingDropDown; - /*** * RASOPATHY HISTORY SECTION */ - /* RASOPATHY HISTORY TAB*/ - @FindBy(xpath = "//span[contains(text(),'RASopathy History')]") - public WebElement rasopathyHistoryTab; - - /* HAVE YOU BEEN DIAGNOSED WITH A RASOPATHY? DROP DOWN */ - @FindBy(xpath = "//*[@id='x_naci_family_coho_ras_referral.rasopathy_diagnosis']") - public WebElement haveYouBeenDiagnosedWithARasopathyDropDown; - - /* HAVE ANY OF YOUR BIOLOGICAL RELATIVES BEEN DIAGNOSED WITH A RASOPATHY? DROP DOWN */ - @FindBy(xpath = "//*[@id='x_naci_family_coho_ras_referral.realtives_rasopathy_diagnosis']") - public WebElement haveAnyOfYourBiologicalRelativesBeenDiagnosedWithARasopathyDropDown; - /* CONSENT STATUS TEXT */ @FindBy(xpath = "//td[normalize-space()='Consent Call Pending']") public WebElement consentStatusText; diff --git a/src/test/java/ServiceNow/CHARMS/Pages/RAS_Screener_Page.java b/src/test/java/ServiceNow/CHARMS/Pages/RAS_Screener_Page.java new file mode 100644 index 000000000..875dd8f71 --- /dev/null +++ b/src/test/java/ServiceNow/CHARMS/Pages/RAS_Screener_Page.java @@ -0,0 +1,196 @@ +package ServiceNow.CHARMS.Pages; + +import org.openqa.selenium.By; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.PageFactory; +import static com.nci.automation.web.WebDriverUtils.webDriver; + +public class RAS_Screener_Page { + + /* LOCATOR FOR ALL QUESTIONS ON RAS SCREENER */ + @FindBy(xpath = "//*[@class='QuestionText BorderColor']") + public WebElement question; + + /* STUDY INTRODUCTION next button (THIS WORKS FOR ALL NEXT BUTTONS) */ + @FindBy(xpath = "//input[@title='→']") + public WebElement studyNextButton; + + /* RAS Survey Save and Next button (THIS WORKS FOR ALL NEXT BUTTONS) */ + @FindBy(xpath = "//*[@id='NextButton']") + public WebElement rasSurveySaveAndNextButton; + + /* RAS Survey Previous button (THIS WORKS FOR ALL NEXT BUTTONS) */ + @FindBy(xpath = "//*[@id='PreviousButton']") + public WebElement rasSurveyPreviousButton; + + /* Have Any Of Your Relatives Been Diagnosed No Radio Button */ + @FindBy(xpath = "//*[@id='QID43']/div[3]/div/fieldset/div/ul/li[2]/span") + public WebElement haveAnyOfYourRelativesBeenDiagnosedNoRadioButton ; + + /* Have You Ever Had Genetic Testing No Radio Button */ + @FindBy(xpath = "//*[@id='QID120-2-label']") + public WebElement haveYouEverHadGeneticTestingNoRadioButton ; + + /* I am completing this form for myself option */ + @FindBy(xpath = "//span[contains(text(),'I am completing this form for myself')]") + public WebElement iAmCompletingThisFormForMyselfOption; + + /* First Name of the participant text box */ + @FindBy(xpath = "//input[@name='QR~QID105~4~TEXT']") + public WebElement firstNameTextBox; + + /* IIQ Were you race No option */ + @FindBy(xpath = "//*[@id='QID21-2-label']") + public WebElement iiqWereYouRaisedNoOption; + + /* Calendar month drop down */ + @FindBy(xpath = "//select[@aria-label='Month']") + public WebElement calendarMonthDropDown; + + /* Calendar year text box */ + @FindBy(xpath = "//input[@aria-label='Year']") + public WebElement calendarYearTextBox; + + /* Calendar day option */ + @FindBy(xpath = "//span[@aria-label='April 1, 1990']") + public WebElement calendarDayOption; + + /* IIQ Calendar day option */ + @FindBy(xpath = "//span[@aria-label='November 10, 2004']") + public WebElement iIQcalendarDayOption; + + /* IIQ Address Don't Know Text Box*/ + @FindBy(xpath = "//*[@id='QR~QID24~4']") + public WebElement iIQAddressDontKnowTextBox; + + /* What country does participant currently live in? drop down */ + @FindBy(xpath = "//select[@data-runtime-value='runtime.Selected']") + public WebElement whatCountryDoesParticipantCurrentlyLiveInDropDown; + + /* Home phone number text box */ + @FindBy(xpath = "//tbody/tr[1]/th[1]/span[1]/div[1]/input[1]") + public WebElement pleaseListHomePhoneNumberTextBox; + + /* Cell phone number text box */ + @FindBy(xpath = "//tbody/tr[2]/th[1]/span[1]/div[1]/input[1]") + public WebElement pleaseListCellPhoneNumberTextBox; + + /* Work phone number text box */ + @FindBy(xpath = "//tbody/tr[3]/th[1]/span[1]/div[1]/input[1]") + public WebElement pleaseListWorkPhoneNumberTextBox; + + /* Preferred Contact Cell phone number check box */ + @FindBy(xpath = "//tbody/tr[@class='ChoiceRow ReadableAlt ']/td[1]/label[1]") + public WebElement pleaseSelectCellPhonePreferredContactCheckBox; + + /* Pin Text Box Locator */ + @FindBy(xpath = "//span[contains(text(),'Email')]//parent::label//parent::span/parent::td//parent::tr//parent::tbody//child::tr[2]/child::td[2]/child::input") + public WebElement pinTextBox; + + /** + * Locates an element using a dynamic locator based on the provided text. + * + * @param text The text to search for in the element. + * @return The WebElement representing the located element. + */ + public static WebElement dynamicLocator(String text) { + return webDriver.findElement(By.xpath("//*[text()='" + text + "']")); + } + + /** + * Locates the dynamic date of birth calendar element on the RAS Screener page. + * + * @param text The aria-label value of the date to locate. + * @return The WebElement representing the dynamic date of birth calendar element. + */ + public static WebElement dynamicDateOfBirthCalendarLocator(String text){ + return webDriver.findElement(By.xpath("//span[@aria-label='"+ text + "']")); + } + + /** + * USE THIS METHOD TO DYNAMICALLY LOCATE TEXT BOXES ON RAS SCREENER + * + * @param text + * @return + */ + public WebElement dynamicTextBoxLocator(String text) { + return webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::label//parent::span//parent::td/following-sibling::td/input")); + } + + /*** + * USE THIS METHOD TO DYNAMICALLY LOCATE PHONE NUMBER TEXT BOXES ON RAS SCREENER + * @param text + * @return + */ + public WebElement dynamicTextBoxLocatorForPhoneNumbers(String text) { + return webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::label/following-sibling::input")); + } + + /*** + * USE THIS METHOD TO DYNAMICALLY LOCATE PHONE NUMBER CHECK BOXES ON RAS SCREENER + * @param text + * @return + */ + public WebElement dynamicPhoneNumberCheckBox(String text) { + return webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::label//parent::div//parent::span//parent::th/following-sibling::td/label")); + } + + /*** + * USE THIS METHOD TO DYNAMICALLY LOCATE EMAIL ADDRESS TEXT BOXES ON RAS SCREENER + * @param text + * @return + */ + public WebElement dynamicEmailAddressTextBox(String text) { + return webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::legend/following-sibling::div/div/input")); + } + + /*** + * USE THIS METHOD TO DYNAMICALLY CLICK ON ALL CHECKBOXES ON RAS SCREENER + * @param text + * @return + */ + public WebElement dynamicClickOnCheckboxesScreener(int index) { + return webDriver.findElement(By.xpath("//*[@id='Questions']//child::div[2]//child::div[3]//child::div[1]//child::fieldset//child::legend/following-sibling::div//child::ul//child::li[" + index + "]//child::span//child::label")); + } + + /*** + * USE THIS METHOD TO DYNAMICALLY CLICK ON ALL CHECKBOXES ON IIQ TABLE + * @param text + * @return + */ + public WebElement dynamicClickOnCheckboxesIiqTable(int indexOne, int indexTwo) { + return webDriver.findElement(By.xpath("//*[@id='SkinContent']//child::div//child::div[2]//child::div[3]//child::div[1]//child::fieldset//child::legend/following-sibling::div//child::table//child::tbody//child::tr[" + indexOne + "]//child::td[" + indexTwo + "]//child::span//child::label")); + } + + /*** + * USE THIS METHOD TO DYNAMICALLY IMPUT TEXT IN TEXT BOX FOR CHECKED OPTIONS ON RAS SCREENER + * @param text + * @return + */ + public WebElement dynamicEnterTextOnCheckboxesScreener(int index) { + return webDriver.findElement(By.xpath("//*[@id='Questions']//child::div[2]//child::div[3]//child::div[1]//child::fieldset//child::legend/following-sibling::div//child::ul//child::li[" + index + "]//child::span//child::input")); + } + + /*** + * USE THIS METHOD TO DYNAMICALLY LOCATE TEXT BOXES ON HOW DID YOU HEAR ABOUT THIS STUDY PAGE ON RAS SCREENER + * @param text + * @return + */ + public WebElement dynamicLocatorForHowDidYouHearAboutStudyTextBoxes(String text) { + return webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::label//parent::span/input")); + } + + /*** + * USE THIS METHOD TO DYNAMICALLY LOCATE ELEMENTS ON MAIN REASONS FOR PARTICIPATING IN STUDY PAGE + * @param text + * @return + */ + public WebElement dynamicLocatorForMainReasonForParticipatingInStudy(String text) { + return webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::span//parent::label/following-sibling::input")); + } + + public RAS_Screener_Page() { + PageFactory.initElements(webDriver, this); + } +} \ No newline at end of file diff --git a/src/test/java/ServiceNow/CHARMS/Pages/RASopathyQuestionnairePage.java b/src/test/java/ServiceNow/CHARMS/Pages/RASopathyQuestionnairePage.java deleted file mode 100644 index cf4c9e9df..000000000 --- a/src/test/java/ServiceNow/CHARMS/Pages/RASopathyQuestionnairePage.java +++ /dev/null @@ -1,511 +0,0 @@ -package ServiceNow.CHARMS.Pages; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; -import org.openqa.selenium.support.PageFactory; -import com.nci.automation.web.WebDriverUtils; - -public class RASopathyQuestionnairePage { - - /* ----- BEGINNING OF RASopathy Eligibility Questionnaire PAGE ---- */ - - /* STUDY INTRODUCTION next button (THIS WORKS FOR ALL NEXT BUTTONS) */ - @FindBy(xpath = "//input[@title='→']") - public WebElement studyNextButton; - - /* RAS Survey Save and Next button (THIS WORKS FOR ALL NEXT BUTTONS) */ - @FindBy(xpath = "//*[@id='NextButton']") - public WebElement rasSurveySaveAndNextButton; - - /* RAS Survey Previous button (THIS WORKS FOR ALL NEXT BUTTONS) */ - @FindBy(xpath = "//*[@id='PreviousButton']") - public WebElement rasSurveyPreviousButton; - - /* This Form Canot Be Saved Text */ - @FindBy(xpath = "//p[contains(text(),'If you are unable to complete the online questionn')]") - public WebElement thisFormCannotBeSavedText; - - /* If You Are Unable To Complete Text */ - @FindBy(xpath = "//p[contains(text(),'If you are unable to complete the online questionn')]") - public WebElement ifYouAreUnableToCompleteText; - - /* Have Any Of Your Relatives Been Diagnosed No Radio Button */ - @FindBy(xpath = "//*[@id='QID43']/div[3]/div/fieldset/div/ul/li[2]/span") - public WebElement haveAnyOfYourRelativesBeenDiagnosedNoRadioButton ; - - /* Have You Ever Had Genetic Testing No Radio Button */ - @FindBy(xpath = "//*[@id='QID120-2-label']") - public WebElement haveYouEverHadGeneticTestingNoRadioButton ; - - /* ************************************************************************ */ - /* - * BEGINNING OF Are you completing this form for someone else or for yourself? - * PAGE - * - * - * /* I am completing this form for someone else option - */ - - /* I am completing this form for myself option */ - @FindBy(xpath = "//span[contains(text(),'I am completing this form for myself')]") - public WebElement iAmCompletingThisFormForMyselfOption; - - /* END OF Are you completing this form for someone else or for yourself?PAGE */ - /* ************************************************************************ */ - /* - * BEGINNING OF What is the name of the person who may be eligible for this - * study? PAGE - */ - - /* First Name of the participant text box */ - @FindBy(xpath = "//input[@name='QR~QID105~4~TEXT']") - public WebElement firstNameTextBox; - - /* - * END OF What is the name of the person who may be eligible for this study? - * PAGE - */ - /* ************************************************************************ */ - /* --------BEGINNING OF What is your name? Proxy Name details PAGE---------- */ - - /* -------- END OF What is your name? Proxy Name details PAGE ---------- */ - /* ************************************************************************ */ - /* -------- BEGINNING OF What is your relationship to name? PAGE ------ */ - - /* ---- END OF What is your relationship to name? PAGE ----- */ - /* ************************************************************************ */ - /* ---- BEGINNING OF Are you the legal guardian of -- name? PAGE ----- */ - - /* END OF Are you the legal guardian of automated name? PAGE */ - /* ************************************************************************ */ - /* -------- BEGINNING OF Date of birth of "name" PAGE ------- */ - - /* IIQ Were you race No option */ - @FindBy(xpath = "//*[@id='QID21-2-label']") - public WebElement iiqWereYouRaisedNoOption; - - /* Calendar month drop down */ - @FindBy(xpath = "//select[@aria-label='Month']") - public WebElement calendarMonthDropDown; - - /* Calendar year text box */ - @FindBy(xpath = "//input[@aria-label='Year']") - public WebElement calendarYearTextBox; - - /* Calendar day option */ - @FindBy(xpath = "//span[@aria-label='April 1, 1990']") - public WebElement calendarDayOption; - - /* IIQ Calendar day option */ - @FindBy(xpath = "//span[@aria-label='November 10, 2004']") - public WebElement iIQcalendarDayOption; - - /* IIQ Address Don't Know Text Box*/ - @FindBy(xpath = "//*[@id='QR~QID24~4']") - public WebElement iIQAddressDontKnowTextBox; - - /* -------- END OF Date of birth of "name" PAGE --------------- */ - /* ************************************************************************ */ - /* --- BEGINNING OF Sex of "name" assigned at birth PAGE----- */ - - /* ---- END OF Sex of "name" assigned at birth PAGE ------- */ - /* ************************************************************************ */ - /* -------- BEGINNING OF Is "name" adopted? PAGE ----------- */ - - /* -------- END OF Is "name" adopted? PAGE --------------- */ - /* ************************************************************************ */ - /* -------- BEGINNING OF Is "name" still alive? PAGE --------------- */ - - /* -------- END OF Is "name" still alive? PAGE --------------- */ - /* ************************************************************************ */ - /* -------- BEGINNING OF Date of death of Participant PAGE ------ */ - - /* -------- End OF Date of death of Participant PAGE --------------- */ - /* ************************************************************************ */ - /* BEGINNING OF Does "name" currently live in the United States? PAGE */ - - /* What country does participant currently live in? drop down */ - @FindBy(xpath = "//select[@data-runtime-value='runtime.Selected']") - public WebElement whatCountryDoesParticipantCurrentlyLiveInDropDown; - - /* End OF Does "name" currently live in the United States? PAGE */ - /* ************************************************************************ */ - /* BEGINNING OF Does "participant" currently live in the United States?PAGE */ - - /* END OF Does participant currently live in the United States?PAGE */ - /* ************************************************************************ */ - /* -------- BEGINNING OF What is your email address? PAGE --------------- */ - - /* -------- END OF What is your email address? PAGE --------------- */ - /* ************************************************************************ */ - /* -------- BEGINNING OF Please confirm your email address PAGE-------- */ - - /* -------- END OF Please confirm your email address PAGE--------------- */ - /* ************************************************************************ */ - /* - * BEGINNING Please list your phone numbers below. Please also select your - * preferred contact number. PAGE - */ - - /* Home phone number text box */ - @FindBy(xpath = "//tbody/tr[1]/th[1]/span[1]/div[1]/input[1]") - public WebElement pleaseListHomePhoneNumberTextBox; - - /* Cell phone number text box */ - @FindBy(xpath = "//tbody/tr[2]/th[1]/span[1]/div[1]/input[1]") - public WebElement pleaseListCellPhoneNumberTextBox; - - /* Work phone number text box */ - @FindBy(xpath = "//tbody/tr[3]/th[1]/span[1]/div[1]/input[1]") - public WebElement pleaseListWorkPhoneNumberTextBox; - - /* Preferred Contact Cell phone number check box */ - @FindBy(xpath = "//tbody/tr[@class='ChoiceRow ReadableAlt ']/td[1]/label[1]") - public WebElement pleaseSelectCellPhonePreferredContactCheckBox; - - /* - * END OF Please list your phone numbers below. Please also select your - * preferred contact number. PAGE - */ - /* ************************************************************************ */ - /* -------- BEGINNING OF Ethnicity of "Name" PAGE --------------- */ - - /* hispanic/latino option */ - @FindBy(xpath = "//span[contains(@class,'LabelWrapper')]//label[1]//span[text()='Hispanic/Latino']") - public WebElement authenticityOfParticipantHispanicLatinoOption; - - /* Not hispanic/latino option */ - // @FindBy(xpath = - // "//span[contains(@class,'LabelWrapper')]//label[contains(@for,'QR~QID113~2')]") - @FindBy(xpath = "//span[contains(@class,'LabelWrapper')]//label[1]//span[text()='Not Hispanic/Latino']") - public WebElement authenticityOfParticipantNotHispanicLatinoOption; - - /* -------- END OF Ethnicity of "Name" PAGE --------------- */ - /* ************************************************************************ */ - /* BEGINNING OF Race of "Name". Please select all that apply.PAGE */ - - /* All Race options except Prefer not to answer */ - @FindBy(xpath = "//span[contains(text(),'White')]") - public WebElement raceOfParticipantWhite; - - /* Pin Text Box Locator */ - @FindBy(xpath = "//span[contains(text(),'Email')]//parent::label//parent::span/parent::td//parent::tr//parent::tbody//child::tr[2]/child::td[2]/child::input") - public WebElement pinTextBox; - - @FindBy(xpath = "//span[contains(text(),'Black/African American')]") - public WebElement raceOfParticipantBlackAfricanAmerican; - - @FindBy(xpath = "//span[contains(text(),'Native Hawaiian/Pacific Islander')]") - public WebElement raceOfParticipantnativeHawaiianPacificIslander; - - @FindBy(xpath = "//span[contains(text(),'American Indian/Alaskan Native')]") - public WebElement raceOfParticipantAmericanIndianAlaskanNative; - - @FindBy(xpath = "//span[contains(text(),'Asian')]") - public WebElement raceOfParticipantAsian; - - @FindBy(xpath = "//span[contains(text(),'Other')]") - public WebElement raceOfParticipantOther; - - @FindBy(xpath = "//input[@title='Other']") - public WebElement raceOfParticipantOtherTextBox; - - /* -------- END OF Race of "Name". Please select all that apply.PAGE ------ */ - /* ************************************************************************ */ - /* - * BEGINNING OF Is Automated Test a participant in any other research study or - * registry group? Please specify.PAGE - */ - - /* - * END OF Is Automated Test a participant in any other research study or - * registry group? Please specify.PAGE - */ - /* ************************************************************************ */ - /* - * --- BEGINNING OF Has Automated Test ever been diagnosed with the following - * conditions?Select all that apply. If you do not see the exact condition - * diagnosed, please select the closest answer. PAGE----- - */ - - @FindBy(xpath = "//span[contains(text(),', failure to thrive, or other stomach/digestive pr')]") - public WebElement hasParticipantBeenDiagnosedWithConditionsFeedingProblemsOption; - - @FindBy(xpath = "//span[contains(text(),'such as: soft loose skin, fine/thin/thick/dry/brit')]") - public WebElement hasParticipantBeenDiagnosedWithConditionsSkinHairAbnormalitiesOption; - - /* - * ---- END OF Has Automated Test ever been diagnosed with the following - * conditions? Select all that apply. If you do not see the exact condition - * diagnosed, please select the closest answer. PAGE -- - */ - /* ************************************************************************ */ - /* -------- BEGINNING OF Has "Name" ever been diagnosed with cancer? PAGE --- */ - - /* -------- END OF Has "Name" ever been diagnosed with cancer? PAGE--- */ - /* ************************************************************************ */ - /* - * ---- BEGINNING OF Please complete the box below by selecting which primary - * cancers were diagnosed and at what age and year they occurred. If cancer - * spread from one place to another, please only indicate the original cancers - * and not the number of sites where cancer spread. PAGE ------- - */ - - /* - * -- END OF Please complete the box below by selecting which primary cancers - * were diagnosed and at what age and year they occurred. If cancer spread from - * one place to another, please only indicate the original cancers and not the - * number of sites where cancer spread. PAGE ------- - */ - /* ************************************************************************ */ - /* - * ---- For Proxy: BEGINNING OF Has "Name" been diagnosed with a RASopathy such - * as Noonan syndrome, Noonan syndrome with multiple lentigines, Costello - * syndrome, cardiofaciocutaneous syndrome, Legius syndrome, capillary - * arteriovenous malformation syndrome, hereditary gingival fibromatosis or - * SYNGAP1 syndrome? PAGE - * - */ - - /* No option */ - @FindBy(xpath = "//span[contains(@class,'LabelWrapper')]//label[contains(@for,'QR~QID118~2')]") - public WebElement hasProxyBeenDiagnosedWithaRasopathyNoOption; - - /* - * For Proxy: END OF Has "Name" been diagnosed with a RASopathy such as Noonan - * syndrome, Noonan syndrome with multiple lentigines, Costello syndrome, - * cardiofaciocutaneous syndrome, Legius syndrome, capillary arteriovenous - * malformation syndrome, hereditary gingival fibromatosis or SYNGAP1 syndrome? - * PAGE - */ - /* ************************************************************************ */ - /* - * For Proband: Have you been diagnosed with a RASopathy such as Noonan - * syndrome, Noonan syndrome with multiple lentigines, Costello syndrome, - * cardiofaciocutaneous syndrome, Legius syndrome, capillary arteriovenous - * malformation syndrome, hereditary gingival fibromatosis or SYNGAP1 syndrome? - * PAGE - */ - - /* - * For Proband: END OF Have you been diagnosed with a RASopathy such as Noonan - * syndrome, Noonan syndrome with multiple lentigines, Costello syndrome, - * cardiofaciocutaneous syndrome, Legius syndrome, capillary arteriovenous - * malformation syndrome, hereditary gingival fibromatosis or SYNGAP1 syndrome? - * PAGE - */ - /* ************************************************************************ */ - /* - * BEGINNING OF For which specific RASopathy has Automated Test been diagnosed? - * PAGE - * - * - * /* Other option - */ - - /* - * END OF For which specific RASopathy has Automated Test been diagnosed? PAGE - */ - /* ************************************************************************ */ - /* BEGINNING OF Age (in years) at diagnosis PAGE */ - - /* END OF Age (in years) at diagnosis PAGE */ - /* ************************************************************************ */ - /* BEGINNING OF Year of diagnosis (yyyy) PAGE */ - - /* END OF Year of diagnosis (YYYY) PAGE */ - /* ************************************************************************ */ - /* - * For Proxy:BEGINNING Have any of "Participant Name" biological relatives been - * diagnosed with a RASopathy? PAGE - */ - - /* - * For Proxy: END Have any of "Participant Name" biological relatives been - * diagnosed with a RASopathy? PAGE - */ - /* ************************************************************************ */ - /* - * For Proband: BEGINNING OF Have any of your biological relatives been - * diagnosed with a RASopathy? PAGE - */ - - /* - * For Proband: END OF Have any of your biological relatives been diagnosed with - * a RASopathy? PAGE - */ - /* ************************************************************************ */ - /* BEGINNING OF Has participant ever had genetic testing? PAGE */ - - /* END OF Has participant ever had genetic testing? PAGE */ - /* ************************************************************************ */ - /* BEGINNING OF Do you have a copy of the genetic test results? PAGE */ - - /* END OF Do you have a copy of the genetic test results? PAGE */ - /* ************************************************************************ */ - /* - * BEGINNING OF How would you like to provide the genetic test results to - * us?Please select one. On the next page, you will be provided with where to - * send the information. PAGE - */ - - /* - * END OF How would you like to provide the genetic test results to us?Please - * select one. On the next page, you will be provided with where to send the - * information. PAGE - */ - /* ************************************************************************ */ - /* - * BEGINNING OF If you would like to upload the genetic test results, please do - * so here. Note: Only PDF files are accepted. PAGE - */ - - /* - * END OF If you would like to upload the genetic test results, please do so - * here. Note: Only PDF files are accepted. PAGE - */ - /* ************************************************************************ */ - /* - * BEGINNING OF Were any genetic changes detected for the following syndromes? - * (Mark all that apply). PAGE - * - */ - - /* - * END OF Were any genetic changes detected for the following syndromes? (Mark - * all that apply). PAGE - */ - /* ************************************************************************ */ - /* - * BEGINNING OF How did you hear about this study? If a specific health care - * provider referred participant to this study, please include their name in the - * corresponding text box. PAGE - */ - - /* - * END OF How did you hear about this study? If a specific health care provider - * referred participant to this study, please include their name in the - * corresponding text box. PAGE - */ - /* ************************************************************************ */ - /* - * BEGINNING OF Has participant or other family members ever participated in - * another study on RASopathies at another medical institution, university, - * government agency or other site? PAGE - */ - - /* - * END OF Has participant or other family members ever participated in another - * study on RASopathies at another medical institution, university, government - * agency or other site? PAGE - */ - /* ************************************************************************ */ - /* - * BEGINNING OF Please provide the information regarding previous participation - * in other RASopathy studies in the box below. PAGE - */ - - /* - * END OF Please provide the information regarding previous participation in - * other RASopathy studies in the box below. PAGE - */ - /* ************************************************************************ */ - /* - * BEGINNING OF What are the main reasons for participating in this study? - * Select all that apply. PAGE - */ - - /* - USE THIS METHOD TO DYNAMICALLY LOCATE ELEMENTS WITH RAS SCREENER - */ - public WebElement dynamicLocator(String text) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[text()='" + text + "']")); - } - - /** - * USE THIS METHOD TO DYNAMICALLY LOCATE TEXT BOXES ON RAS SCREENER - * - * @param text - * @return - */ - public WebElement dynamicTextBoxLocator(String text) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::label//parent::span//parent::td/following-sibling::td/input")); - } - - /*** - * USE THIS METHOD TO DYNAMICALLY LOCATE PHONE NUMBER TEXT BOXES ON RAS SCREENER - * @param text - * @return - */ - public WebElement dynamicTextBoxLocatorForPhoneNumbers(String text) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::label/following-sibling::input")); - } - - /*** - * USE THIS METHOD TO DYNAMICALLY LOCATE PHONE NUMBER CHECK BOXES ON RAS SCREENER - * @param text - * @return - */ - public WebElement dynamicPhoneNumberCheckBox(String text) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::label//parent::div//parent::span//parent::th/following-sibling::td/label")); - } - - /*** - * USE THIS METHOD TO DYNAMICALLY LOCATE EMAIL ADDRESS TEXT BOXES ON RAS SCREENER - * @param text - * @return - */ - public WebElement dynamicEmailAddressTextBox(String text) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::legend/following-sibling::div/div/input")); - } - - /*** - * USE THIS METHOD TO DYNAMICALLY CLICK ON ALL CHECKBOXES ON RAS SCREENER - * @param text - * @return - */ - public WebElement dynamicClickOnCheckboxesScreener(int index) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[@id='Questions']//child::div[2]//child::div[3]//child::div[1]//child::fieldset//child::legend/following-sibling::div//child::ul//child::li[" + index + "]//child::span//child::label")); - } - - /*** - * USE THIS METHOD TO DYNAMICALLY CLICK ON ALL CHECKBOXES ON IIQ TABLE - * @param text - * @return - */ - public WebElement dynamicClickOnCheckboxesIiqTable(int indexOne, int indexTwo) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[@id='SkinContent']//child::div//child::div[2]//child::div[3]//child::div[1]//child::fieldset//child::legend/following-sibling::div//child::table//child::tbody//child::tr[" + indexOne + "]//child::td[" + indexTwo + "]//child::span//child::label")); - } - - /*** - * USE THIS METHOD TO DYNAMICALLY IMPUT TEXT IN TEXT BOX FOR CHECKED OPTIONS ON RAS SCREENER - * @param text - * @return - */ - public WebElement dynamicEnterTextOnCheckboxesScreener(int index) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[@id='Questions']//child::div[2]//child::div[3]//child::div[1]//child::fieldset//child::legend/following-sibling::div//child::ul//child::li[" + index + "]//child::span//child::input")); - } - - /*** - * USE THIS METHOD TO DYNAMICALLY LOCATE TEXT BOXES ON HOW DID YOU HEAR ABOUT THIS STUDY PAGE ON RAS SCREENER - * @param text - * @return - */ - public WebElement dynamicLocatorForHowDidYouHearAboutStudyTextBoxes(String text) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::label//parent::span/input")); - } - - /*** - * USE THIS METHOD TO DYNAMICALLY LOCATE ELEMENTS ON MAIN REASONS FOR PARTICIPATING IN STUDY PAGE - * @param text - * @return - */ - public WebElement dynamicLocatorForMainReasonForParticipatingInStudy(String text) { - return WebDriverUtils.webDriver.findElement(By.xpath("//*[text()='" + text + "']//parent::span//parent::label/following-sibling::input")); - } - - public RASopathyQuestionnairePage() { - PageFactory.initElements(WebDriverUtils.webDriver, this); - } -} diff --git a/src/test/java/ServiceNow/CHARMS/Pages/ScreenerRecordTablePage.java b/src/test/java/ServiceNow/CHARMS/Pages/ScreenerRecordTablePage.java index 831f5a6f0..91c325762 100644 --- a/src/test/java/ServiceNow/CHARMS/Pages/ScreenerRecordTablePage.java +++ b/src/test/java/ServiceNow/CHARMS/Pages/ScreenerRecordTablePage.java @@ -1,21 +1,13 @@ package ServiceNow.CHARMS.Pages; -import com.nci.automation.web.WebDriverUtils; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; +import static com.nci.automation.web.WebDriverUtils.webDriver; public class ScreenerRecordTablePage { - /* REFERRAL PREVIEW BUTTON */ - @FindBy(xpath = "//button[@id='viewr.x_naci_family_coho_family_history_details.proband_screener']") - public WebElement referralPreviewButton; - - /* CONTACT INFORMATION BUTTON */ - @FindBy(xpath = "//span[contains(text(),'Contact Information')]") - public WebElement contactInformationButton; - /* SCREENER PREVIEW FAMILY MEMBER RECORD FIELD */ @FindBy(xpath = "//input[@id='x_naci_family_coho_ras_referral.family_member_record_label']") public WebElement screenerPreviewFamilyMemberRecordField; @@ -143,7 +135,17 @@ public class ScreenerRecordTablePage { * @return */ public WebElement dynamicLocatorForTabs(String text) { - return WebDriverUtils.webDriver.findElement(By.xpath("//span[contains(text(),'" + text + "')]")); + return webDriver.findElement(By.xpath("//span[contains(text(),'" + text + "')]")); + } + + /** + * Finds a web element representing a dynamic tab in the ScreenerRecordTablePage using exact text. + * + * @param text The exact text of the tab to locate. + * @return The web element representing the dynamic tab with the specified text. + */ + public static WebElement dynamicTabLocatorUsingExactText(String text){ + return webDriver.findElement(By.xpath("//span[text()='" + text + "']")); } /*** @@ -152,10 +154,10 @@ public WebElement dynamicLocatorForTabs(String text) { * @return */ public WebElement dynamicLocatorForStudyButtons(String text) { - return WebDriverUtils.webDriver.findElement(By.xpath("(//button[contains(text(),'" + text + "')])[1]")); + return webDriver.findElement(By.xpath("(//button[contains(text(),'" + text + "')])[1]")); } public ScreenerRecordTablePage() { - PageFactory.initElements(WebDriverUtils.webDriver, this); + PageFactory.initElements(webDriver, this); } -} +} \ No newline at end of file diff --git a/src/test/java/ServiceNow/CHARMS/Resources/RASScenario1.xlsx b/src/test/java/ServiceNow/CHARMS/Resources/RASScenario1.xlsx index 1b4c3d699..4b9e908e7 100644 Binary files a/src/test/java/ServiceNow/CHARMS/Resources/RASScenario1.xlsx and b/src/test/java/ServiceNow/CHARMS/Resources/RASScenario1.xlsx differ diff --git a/src/test/java/ServiceNow/CHARMS/Resources/RASScenario2.xlsx b/src/test/java/ServiceNow/CHARMS/Resources/RASScenario2.xlsx index a767166b0..8933dd2b7 100644 Binary files a/src/test/java/ServiceNow/CHARMS/Resources/RASScenario2.xlsx and b/src/test/java/ServiceNow/CHARMS/Resources/RASScenario2.xlsx differ diff --git a/src/test/java/ServiceNow/CHARMS/Resources/~$RASScenario1.xlsx b/src/test/java/ServiceNow/CHARMS/Resources/~$RASScenario1.xlsx new file mode 100644 index 000000000..6d931cc6b Binary files /dev/null and b/src/test/java/ServiceNow/CHARMS/Resources/~$RASScenario1.xlsx differ diff --git a/src/test/java/ServiceNow/CHARMS/Resources/~$RASScenario2.xlsx b/src/test/java/ServiceNow/CHARMS/Resources/~$RASScenario2.xlsx new file mode 100644 index 000000000..6d931cc6b Binary files /dev/null and b/src/test/java/ServiceNow/CHARMS/Resources/~$RASScenario2.xlsx differ diff --git a/src/test/java/ServiceNow/CHARMS/Steps/RAS_Screener_Submission_Steps.java b/src/test/java/ServiceNow/CHARMS/Steps/RAS_Screener_Submission_Steps.java index edeb36150..73afb13aa 100644 --- a/src/test/java/ServiceNow/CHARMS/Steps/RAS_Screener_Submission_Steps.java +++ b/src/test/java/ServiceNow/CHARMS/Steps/RAS_Screener_Submission_Steps.java @@ -19,22 +19,22 @@ public void a_participant_is_on_the_RASopathies_Longitudinal_Cohort_Study_login_ @When("the participant submits a screener from excel sheet {string}") public void the_participant_submits_a_screener_from_excel_sheet(String sheetName) { - ras_scenario_one_stepsImpl.rasScreenerScenarioSelector(sheetName); + ras_screenerSubmissions_stepsImpl.rasScreenerScenarioSelector(sheetName); } @Then("data submitted for scenario is verified in native from the excel sheet {string}") public void data_submitted_for_scenario_is_verified_in_native_from_the_excel_sheet(String sheetName) { - ras_scenario_one_stepsImpl.rasScreenerVerificationScenarioSelector(sheetName); + ras_screenerSubmissions_stepsImpl.rasScreenerVerificationScenarioSelector(sheetName); } @Then("the consent is submitted for {string}") public void the_consent_is_submitted_for(String sheetName) { - ras_scenario_one_stepsImpl.rasConsentScenarioSelector(sheetName); + ras_screenerSubmissions_stepsImpl.rasConsentScenarioSelector(sheetName); } @Given("the participant submits a Individual Information Questionnaire for excel sheet {string}") public void the_participant_submits_a_individual_information_questionnaire_for_excel_sheet(String sheetNameIiq) { - ras_scenario_one_stepsImpl.iiqScenarioSelector(sheetNameIiq); + ras_screenerSubmissions_stepsImpl.iiqScenarioSelector(sheetNameIiq); } @Given("a proxy is on the RASopathies Longitudinal Cohort Study login page") @@ -49,11 +49,11 @@ public void a_proband_is_on_the_RASopathies_Longitudinal_Cohort_Study_login_page @Given("logs in via Okta with username {string} and password {string}") public void logs_in_via_Okta_with_username_and_password(String username, String password) { - ras_scenario_one_stepsImpl.logsInViaOktaWithUsernameAndPassword(username, password); + ras_screenerSubmissions_stepsImpl.logsInViaOktaWithUsernameAndPassword(username, password); } - @Given("clicks on Eligibility Questionnaire to begin questionnaire") - public void clicks_on_Eligibility_Questionnaire_to_begin_questionnaire() { - ras_scenario_one_stepsImpl.clicksOnEligibilityQuestionnaireToBeginQuestionnaire(); + @Given("clicks on {string} to begin survey") + public void clicks_on_to_begin_survey(String text) { + ras_screenerSubmissions_stepsImpl.clicksOnEligibilityQuestionnaireToBeginQuestionnaire(text); } } \ No newline at end of file diff --git a/src/test/java/ServiceNow/CHARMS/Steps/RAS_Survey_Submission_Steps.java b/src/test/java/ServiceNow/CHARMS/Steps/RAS_Survey_Submission_Steps.java index f16cb5375..792bea9fd 100644 --- a/src/test/java/ServiceNow/CHARMS/Steps/RAS_Survey_Submission_Steps.java +++ b/src/test/java/ServiceNow/CHARMS/Steps/RAS_Survey_Submission_Steps.java @@ -9,31 +9,31 @@ public class RAS_Survey_Submission_Steps extends PageInitializer { @Given("clicks on the Ras Survey Form") public void clicks_on_the_ras_survey_form() { - ras_scenario_one_stepsImpl.clicksOnTheRasSurveyForm(); + ras_screenerSubmissions_stepsImpl.clicksOnTheRasSurveyForm(); } @Given("clicks on the IIQ Form") public void clicks_on_the_iiq_form() { - ras_scenario_one_stepsImpl.clicksOnTheIiqForm(); + ras_screenerSubmissions_stepsImpl.clicksOnTheIiqForm(); } @Given("a participant enters username {string} and pin") public void a_participant_enters_username_and_pin(String email) { - ras_scenario_one_stepsImpl.aParticipantEntersUsernameUndPin(email); + ras_screenerSubmissions_stepsImpl.aParticipantEntersUsernameUndPin(email); } @Given("a participant enters username {string} and pin {string}") public void a_participant_enters_username_and_pin(String email, String pin) { - ras_scenario_one_stepsImpl.aParticipantEntersUsernameUndPinSample(email, pin); + ras_screenerSubmissions_stepsImpl.aParticipantEntersUsernameUndPinSample(email, pin); } @Then("the participant will be able to rewind the form") public void the_participant_will_be_able_to_rewind_the_form() { - ras_scenario_one_stepsImpl.theParticipantWillBeAbleToRewindTheForm(); + ras_screenerSubmissions_stepsImpl.theParticipantWillBeAbleToRewindTheForm(); } @When("the participant submits a RAS Survey from excel sheet {string}") public void the_participant_submits_a_ras_survey_from_excel_sheet(String rasSurveySheet) { - ras_scenario_one_stepsImpl.rasSurveyScenarioSelector(rasSurveySheet); + ras_screenerSubmissions_stepsImpl.rasSurveyScenarioSelector(rasSurveySheet); } } \ No newline at end of file diff --git a/src/test/java/ServiceNow/CHARMS/Steps/TestAccountResetSteps.java b/src/test/java/ServiceNow/CHARMS/Steps/TestAccountResetSteps.java index 3284c18e2..1bc8bef3b 100644 --- a/src/test/java/ServiceNow/CHARMS/Steps/TestAccountResetSteps.java +++ b/src/test/java/ServiceNow/CHARMS/Steps/TestAccountResetSteps.java @@ -1,7 +1,9 @@ package ServiceNow.CHARMS.Steps; +import ServiceNow.CHARMS.StepsImplementation.TestAccountResetImpl; import com.nci.automation.xceptions.TestingException; import appsCommon.PageInitializers.PageInitializer; +import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; public class TestAccountResetSteps extends PageInitializer { @@ -11,4 +13,9 @@ public void test_account_is_reset_to_be_used_for_next_test_execution() throws Te testAccountResetImpl.resetTestAccountSignIn(); testAccountResetImpl.resetTestAccount(); } -} + + @Given("test automation account has been reset") + public void test_automation_account_has_been_reset() { + TestAccountResetImpl.charmsRasOneTestAccountReset(); + } +} \ No newline at end of file diff --git a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Scenario_Five_StepsImpl.java b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Scenario_Five_StepsImpl.java index c39ee05eb..2ae0a64de 100644 --- a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Scenario_Five_StepsImpl.java +++ b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Scenario_Five_StepsImpl.java @@ -1,6 +1,5 @@ package ServiceNow.CHARMS.StepsImplementation.RASStudy; -import ServiceNow.CHARMS.Constants.RAS_Screener_Constants; import appsCommon.PageInitializers.PageInitializer; import appsCommon.Utils.ServiceNow_Common_Methods; import com.nci.automation.utils.CucumberLogUtils; @@ -24,23 +23,21 @@ public void ras_screener_submission_five() { CucumberLogUtils.logScreenshot(); JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.studyNextButton); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); if (!rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.isDisplayed()) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } try { - // rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.click(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_Constants.ARE_YOU_COMPLETING_THIS_FORM_FOR_SOMEONE_ELSE); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - // rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.click(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_Constants.ARE_YOU_COMPLETING_THIS_FORM_FOR_SOMEONE_ELSE); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.middleInitial); @@ -48,15 +45,15 @@ public void ras_screener_submission_five() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.middleInitial); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.LAST_NAME).sendKeys(ras_Screener_TestDataManager.lastName); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); @@ -65,44 +62,44 @@ public void ras_screener_submission_five() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.dateOfBirthMonth, rasopathyQuestionnairePage.calendarMonthDropDown); rasopathyQuestionnairePage.calendarDayOption.click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); @@ -112,7 +109,7 @@ public void ras_screener_submission_five() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.CITY_TEXT).sendKeys(ras_Screener_TestDataManager.city); @@ -120,29 +117,29 @@ public void ras_screener_submission_five() { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.ZIP_CODE_TEXT).sendKeys(ras_Screener_TestDataManager.zipcode); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS)); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS)); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); @@ -151,106 +148,106 @@ public void ras_screener_submission_five() { CucumberLogUtils.logScreenshot(); } catch (NoSuchFrameException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.WORK_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.workPhoneNumber); rasopathyQuestionnairePage.dynamicPhoneNumberCheckBox(ras_Screener_Constants.CELL_PHONE_NUMBER).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAParticipantInOtherStudyGroup).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(26)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.toDetermineEligibilityForThisStudy, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING TO DETERMINE ELIGIBILITY FOR THIS STUDY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithFollowingConditions).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithFollowingConditions).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CucumberLogUtils.logScreenshot(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(117)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(118)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(101)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weKnowThatRASopathiesAreAGroup, myRASSurveyPage.dynamicTopText(101).getText(), "-- VERIFYING WE KNOW THAT RASOPATHIES ARE A GROUP TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.haveAnyOfYourRelativesBeenDiagnosedNoRadioButton); CommonUtils.clickOnElement(rasopathyQuestionnairePage.haveAnyOfYourRelativesBeenDiagnosedNoRadioButton); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.haveAnyOfYourRelativesBeenDiagnosedNoRadioButton); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(120)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.haveYouEverHadGeneticTestingNoRadioButton); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.haveYouEverHadGeneticTestingNoRadioButton); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(69)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weWillNowAskAFewRemainingQuestionsRegarding, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING WE WILL NOW ASK A FEW REMAINING QUESTIONS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(126)); @@ -260,23 +257,23 @@ public void ras_screener_submission_five() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); rasopathyQuestionnairePage.dynamicLocatorForHowDidYouHearAboutStudyTextBoxes(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy).sendKeys(ras_Screener_TestDataManager.howDidYouHearAboutThisStudyOtherReason); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(71)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(81)); CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); @@ -286,17 +283,17 @@ public void ras_screener_submission_five() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); rasopathyQuestionnairePage.dynamicLocatorForMainReasonForParticipatingInStudy(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy).sendKeys(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudyOtherReason); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(91)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.youAreAlmostDone, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(3000); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); diff --git a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Scenario_One_StepsImpl.java b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Scenario_One_StepsImpl.java deleted file mode 100644 index faf847960..000000000 --- a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Scenario_One_StepsImpl.java +++ /dev/null @@ -1,1967 +0,0 @@ -package ServiceNow.CHARMS.StepsImplementation.RASStudy; - -import ServiceNow.CHARMS.Constants.CHARMS_Data_File_Path_Constants; -import ServiceNow.CHARMS.Constants.CHARMSRASScreenerConstants; -import ServiceNow.CHARMS.Pages.NativeViewCHARMSDashboardPage; -import ServiceNow.COVIDDash.Utils.COVIDConstants; -import appsCommon.Pages.NativeView_SideDoor_Dashboard_Page; -import appsCommon.Utils.ServiceNow_Common_Methods; -import appsCommon.Utils.ServiceNow_Login_Methods; -import appsCommon.PageInitializers.PageInitializer; -import com.nci.automation.utils.CucumberLogUtils; -import com.nci.automation.utils.MiscUtils; -import com.nci.automation.web.CommonUtils; -import com.nci.automation.web.JavascriptUtils; -import com.nci.automation.web.WebDriverUtils; -import org.openqa.selenium.*; -import org.testng.Assert; - -public class RAS_Scenario_One_StepsImpl extends PageInitializer { - /*** - * USE THIS METHOD TO CLICK ON SCREENER NEXT BUTTON - */ - public void clickOnScreenerNextButton() { - JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.studyNextButton); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.studyNextButton); - } - - /*** - * USE THIS METHOD TO CLICK ON SURVEY SAVE AND NEXT BUTTON - */ - public void clickOnSurveySavAndNextButton() { - JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.rasSurveySaveAndNextButton); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.rasSurveySaveAndNextButton); - } - - /*** - * USE THIS METHOD TO CLICK ON SURVEY PREVIOUS BUTTON - */ - public void clickOnSurveyPreviousButton() { - JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.rasSurveyPreviousButton); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.rasSurveyPreviousButton); - } - - /*** - * THIS METHOD WILL SELECT THE SCREENER SUBMISSION ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE - */ - public void rasScreenerScenarioSelector(String sheetName) { - if (sheetName.contentEquals("screenerScenario1")) { - ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); - ras_scenario_one_stepsImpl.rasScreenerSubmissionScenario1(); - } else if (sheetName.contentEquals("screenerScenario2")) { - ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); - rasScenario2StepsImpl.rasScreenerSubmissionScenario2(); - } else if (sheetName.contentEquals("screenerScenario3")) { - ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); - rasScenario3StepsImpl.rasScreenerSubmissionScenario3(); - } else if (sheetName.contentEquals("screenerScenario4")) { - ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); - rasScenario4StepsImpl.rasScreenerSubmissionScenario4(); - } else if(sheetName.contentEquals("screenerScenario5")){ - ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); - ras_scenario_five_stepsImpl.ras_screener_submission_five(); - } - } - - /*** - * THIS METHOD WILL SELECT THE SCREENER FOR VERIFICATION ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE - */ - public void rasScreenerVerificationScenarioSelector(String sheetName) { - if (sheetName.contentEquals("screenerScenario1")) { - ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); - ras_scenario_one_stepsImpl.verifying_RAS_Screener_Scenario_1_Data(sheetName); - } - - } - - /*** - * THIS METHOD WILL SELECT THE CONSENT FLOW ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE - */ - public void rasConsentScenarioSelector(String sheetName) { - MiscUtils.sleep(20000); - ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); - ras_scenario_one_stepsImpl.nativeViewConsentFlowProcessScenario1(sheetName); - } - - /*** - * THIS METHOD WILL SELECT THE IIQ SUBMISSION ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE - */ - public void iiqScenarioSelector(String sheetNameIiq) { - if (sheetNameIiq.contentEquals("IIQScenario1")) { - iiq_TestDataManager.dataInitializerIIQ(sheetNameIiq); - ras_scenario_one_stepsImpl.rasScreenerIIQFormScenario1(); - } else if (sheetNameIiq.contentEquals("IIQScenario2")) { - iiq_TestDataManager.dataInitializerIIQ(sheetNameIiq); - rasScenario2StepsImpl.rasScreenerIIQFormScenario2(); - } else if (sheetNameIiq.contentEquals("IIQScenario3")) { - iiq_TestDataManager.dataInitializerIIQ(sheetNameIiq); - rasScenario3StepsImpl.rasScreenerIIQFormScenario3(); - } else if (sheetNameIiq.contentEquals("IIQScenario4")) { - iiq_TestDataManager.dataInitializerIIQ(sheetNameIiq); - rasScenario4StepsImpl.rasScreenerIIQFormScenario4(); - } - } - - /*** - * THIS METHOD WILL SELECT THE SURVEY SUBMISSION ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE - */ - public void rasSurveyScenarioSelector(String sheetName) { - if (sheetName.contentEquals("RASSurveyScenario1")) { - ras_Survey_TestDataManager.dataInitializerRasSurvey(sheetName); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartOne(); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartTwo(); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartThree(); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartFour(); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartFive(); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartSix(); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartSeven(); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartEight(); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartNine(); - ras_scenario_one_stepsImpl.rasScreenerSurveyScenario1PartTen(); - } else if (sheetName.contentEquals("RASSurveyScenario2")) { - ras_Survey_TestDataManager.dataInitializerRasSurvey(sheetName); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartOne(); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartTwo(); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartThree(); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartFour(); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartFive(); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartSix(); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartSeven(); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartEight(); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartNine(); - rasScenario2StepsImpl.rasScreenerSurveyScenario2PartTen(); - } else if (sheetName.contentEquals("RASSurveyScenario3")) { - ras_Survey_TestDataManager.dataInitializerRasSurvey(sheetName); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartOne(); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartTwo(); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartThree(); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartFour(); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartFive(); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartSix(); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartSeven(); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartEight(); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartNine(); - rasScenario3StepsImpl.rasScreenerSurveyScenario3PartTen(); - } else if (sheetName.contentEquals("RASSurveyScenario4")) { - ras_Survey_TestDataManager.dataInitializerRasSurvey(sheetName); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartOne(); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartTwo(); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartThree(); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartFour(); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartFive(); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartSix(); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartSeven(); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartEight(); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartNine(); - rasScenario4StepsImpl.rasScreenerSurveyScenario4PartTen(); - } - } - - /*** - * THIS METHOD WILL LOG IN WITH USER NAME AND PASSWORD DEFINED IN FEATURE FILE - */ - public void logsInViaOktaWithUsernameAndPassword(String username, String password) { - - MiscUtils.sleep(1000); - CommonUtils.waitForVisibility(myRASLoginPage.loginToMyRASButton); - CommonUtils.clickOnElement(myRASLoginPage.loginToMyRASButton); - - try { - oktaLoginPage.usernameTxtBox.clear(); - oktaLoginPage.usernameTxtBox.sendKeys(username); - CommonUtils.clickOnElement(oktaLoginPage.nextButton); - MiscUtils.sleep(1000); - oktaLoginPage.passwordTxtBox.sendKeys(password); - MiscUtils.sleep(1000); - CommonUtils.clickOnElement(oktaLoginPage.loginBtn); - MiscUtils.sleep(2000); - CommonUtils.waitForVisibility(myRASHomePage.warningAgreeButton); - CucumberLogUtils.logScreenshot(); - myRASHomePage.warningAgreeButton.click(); - } catch (NoSuchElementException e) { - CommonUtils.sendKeysToElement(oktaLoginPage.passwordTxtBox, password); - MiscUtils.sleep(1000); - CommonUtils.clickOnElement(oktaLoginPage.loginBtn); - MiscUtils.sleep(2000); - CommonUtils.waitForVisibility(myRASHomePage.warningAgreeButton); - CucumberLogUtils.logScreenshot(); - myRASHomePage.warningAgreeButton.click(); - } - } - - /*** - * USE THIS METHOD TO CLICK ON ELIGIBILITY QUESTIONNAIRE - */ - - public void clicksOnEligibilityQuestionnaireToBeginQuestionnaire() { - CommonUtils.waitForVisibility(myRASHomePage.rasoptathyEligibilityQuestionnaire); - CommonUtils.clickOnElement(myRASHomePage.rasoptathyEligibilityQuestionnaire); - } - - /*** - * USE THIS METHOD TO CLICK ON RAS SURVEY QUESTIONNAIRE - */ - public void clicksOnTheRasSurveyForm() { - CommonUtils.waitForVisibility(myRASHomePage.rasoptathyRasSurveyButton); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyButton); - MiscUtils.sleep(30000); - CucumberLogUtils.logScreenshot(); - CommonUtils.waitForClickability(myRASHomePage.rasoptathyRasSurveyCloseButton); - CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyCloseButton); - CommonUtils.waitForVisibility(myRASHomePage.rasoptathyRasSurveyButton); - CucumberLogUtils.logScreenshot(); - MiscUtils.sleep(5000); - CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyButton); - CommonUtils.waitForClickability(myRASHomePage.rasoptathyRasSurveyGoButton); - MiscUtils.sleep(5000); - } - - /*** - * USE THIS METHOD TO CLICK ON RAS IIF FORM - */ - public void clicksOnTheIiqForm() { - CommonUtils.waitForVisibility(myRASHomePage.rasoptathyIiqButton); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(myRASHomePage.rasoptathyIiqButton); - MiscUtils.sleep(30000); - CucumberLogUtils.logScreenshot(); - CommonUtils.waitForClickability(myRASHomePage.rasoptathyRasSurveyCloseButton); - CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyCloseButton); - CommonUtils.waitForVisibility(myRASHomePage.rasoptathyIiqButton); - CucumberLogUtils.logScreenshot(); - MiscUtils.sleep(5000); - CommonUtils.clickOnElement(myRASHomePage.rasoptathyIiqButton); - CommonUtils.waitForClickability(myRASHomePage.rasoptathyRasSurveyGoButton); - MiscUtils.sleep(5000); - } - - /*** - * USE THIS METHOD TO ENTER EMAIL AND PIN - */ - public void aParticipantEntersUsernameUndPin(String email) { - CucumberLogUtils.logScreenshot(); - CommonUtils.waitForVisibility(myRASHomePage.rasoptathyRasSurveyPin); - String pin = myRASHomePage.rasoptathyRasSurveyPin.getText(); - CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyGoButton); - CommonUtils.switchToNextWindow(); - MiscUtils.sleep(3000); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicTextBoxLocator("Email")); - rasopathyQuestionnairePage.dynamicTextBoxLocator("Email").sendKeys(email); - rasopathyQuestionnairePage.pinTextBox.sendKeys(pin); - CucumberLogUtils.logScreenshot(); - MiscUtils.sleep(3000); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - MiscUtils.sleep(3000); - CucumberLogUtils.logScreenshot(); - } - - /*** - * USE THIS METHOD TO ENTER EMAIL AND PIN IN THE IIQ SAMPLE FORM - */ - public void aParticipantEntersUsernameUndPinSample(String email, String pin) { - WebDriverUtils.webDriver.get(CHARMS_Data_File_Path_Constants.IIQ_SAMPLE_FORM); - CucumberLogUtils.logScreenshot(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicTextBoxLocator("Email")); - rasopathyQuestionnairePage.dynamicTextBoxLocator("Email").sendKeys(email); - rasopathyQuestionnairePage.pinTextBox.sendKeys(pin); - CucumberLogUtils.logScreenshot(); - MiscUtils.sleep(3000); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - MiscUtils.sleep(3000); - CucumberLogUtils.logScreenshot(); - } - - /*** - * USE THIS METHOD TO REWIND THE SURVEY FORM - */ - public void theParticipantWillBeAbleToRewindTheForm() { - MiscUtils.sleep(2000); - while (rasopathyQuestionnairePage.rasSurveyPreviousButton.isDisplayed()) { - ras_scenario_one_stepsImpl.clickOnSurveyPreviousButton(); - } - } - - /*** - * USE THIS METHOD WILL COMPLETE THE RAS SCREENER SCENARIO 1 - */ - public void rasScreenerSubmissionScenario1() { - CommonUtils.switchToNextWindow(); - MiscUtils.sleep(2000); - CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThisCopyText); - //ASSERTING THAT THIS IS THE COPY FOR LOWER ENVIRONMENTS ONLY!!! MESSAGE DISPLAYS - Assert.assertEquals(myRASSurveyPage.rasSurveyThisCopyText.getText(), ras_Screener_Constants.THIS_IS_A_COPY); - CucumberLogUtils.logScreenshot(); - JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.studyNextButton); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - MiscUtils.sleep(2000); - if (!rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.isDisplayed()) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - } - try { - rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.middleInitial); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.LAST_NAME).sendKeys(ras_Screener_TestDataManager.lastName); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.middleInitial); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.LAST_NAME).sendKeys(ras_Screener_TestDataManager.lastName); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.calendarYearTextBox.clear(); - rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); - CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.dateOfBirthMonth, rasopathyQuestionnairePage.calendarMonthDropDown); - rasopathyQuestionnairePage.calendarDayOption.click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.calendarYearTextBox.clear(); - rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); - CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.dateOfBirthMonth, rasopathyQuestionnairePage.calendarMonthDropDown); - rasopathyQuestionnairePage.calendarDayOption.click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.CITY_TEXT).sendKeys(ras_Screener_TestDataManager.city); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STATE_TEXT).sendKeys(ras_Screener_TestDataManager.state); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.ZIP_CODE_TEXT).sendKeys(ras_Screener_TestDataManager.zipcode); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.CITY_TEXT).sendKeys(ras_Screener_TestDataManager.city); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STATE_TEXT).sendKeys(ras_Screener_TestDataManager.state); - rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.ZIP_CODE_TEXT).sendKeys(ras_Screener_TestDataManager.zipcode); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS)); - rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS)); - rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); - rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); - rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.WORK_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.workPhoneNumber); - rasopathyQuestionnairePage.dynamicPhoneNumberCheckBox(ras_Screener_Constants.CELL_PHONE_NUMBER).click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchFrameException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); - rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); - rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.WORK_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.workPhoneNumber); - rasopathyQuestionnairePage.dynamicPhoneNumberCheckBox(ras_Screener_Constants.CELL_PHONE_NUMBER).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAParticipantInOtherStudyGroup).click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(26)); - CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.toDetermineEligibilityForThisStudy, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING TO DETERMINE ELIGIBILITY FOR THIS STUDY TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithFollowingConditions).click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithFollowingConditions).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CucumberLogUtils.logScreenshot(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(117)); - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(118)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(101)); - CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weKnowThatRASopathiesAreAGroup, myRASSurveyPage.dynamicTopText(101).getText(), "-- VERIFYING WE KNOW THAT RASOPATHIES ARE A GROUP TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.haveAnyOfYourRelativesBeenDiagnosedNoRadioButton); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.haveAnyOfYourRelativesBeenDiagnosedNoRadioButton); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.haveAnyOfYourRelativesBeenDiagnosedNoRadioButton); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(120)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.haveYouEverHadGeneticTestingNoRadioButton); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.haveYouEverHadGeneticTestingNoRadioButton); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(69)); - CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weWillNowAskAFewRemainingQuestionsRegarding, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING WE WILL NOW ASK A FEW REMAINING QUESTIONS TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(126)); - CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); - rasopathyQuestionnairePage.dynamicLocatorForHowDidYouHearAboutStudyTextBoxes(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy).sendKeys(ras_Screener_TestDataManager.howDidYouHearAboutThisStudyOtherReason); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); - rasopathyQuestionnairePage.dynamicLocatorForHowDidYouHearAboutStudyTextBoxes(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy).sendKeys(ras_Screener_TestDataManager.howDidYouHearAboutThisStudyOtherReason); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(71)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(81)); - CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); - System.out.println(); - rasopathyQuestionnairePage.dynamicLocatorForMainReasonForParticipatingInStudy(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy).sendKeys(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudyOtherReason); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); - rasopathyQuestionnairePage.dynamicLocatorForMainReasonForParticipatingInStudy(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy).sendKeys(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudyOtherReason); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(91)); - CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.youAreAlmostDone, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - MiscUtils.sleep(3000); - CucumberLogUtils.logScreenshot(); - MiscUtils.sleep(1000); - ServiceNow_Common_Methods.logOutOfNativeView(); - } - - /*** - * USE THIS METHOD FOR NATIVE VIEW CONSENT FLOW PROCESS SCENARIO 1 - */ - public void nativeViewConsentFlowProcessScenario1(String sheetName) { - ServiceNow_Login_Methods.nativeViewSideDoorLogin(); - MiscUtils.sleep(2000); - - ServiceNow_Common_Methods.filterNavigatorSearch("All Participant Details"); - CucumberLogUtils.logScreenshot(); - - CommonUtils.switchToFrame(NativeView_SideDoor_Dashboard_Page.nativeViewiFrame); - - if (sheetName.contentEquals("screenerScenario1")) { - CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); - } else if (sheetName.contentEquals("screenerScenario2")) { - CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); - } else if (sheetName.contentEquals("screenerScenario3")) { - CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); - } else if (sheetName.contentEquals("screenerScenario4")) { - CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); - } - MiscUtils.sleep(1000); - if (CommonUtils.isElementDisplayed(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton)) { - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); - } - MiscUtils.sleep(2000); - CommonUtils.waitForClickability(nativeViewCHARMSParticipantDetailsPage.nativeSubjectFlagButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantDetailsPage.nativeSubjectFlagButton); - MiscUtils.sleep(2000); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyNonParticipantDateButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyNonParticipantDateButton); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - MiscUtils.sleep(2000); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsSubmitForEligibilityButton); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsSubmitForEligibilityButton); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsMarkEligibleButton); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsMarkEligibleButton); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentAddedText); - CucumberLogUtils.logScreenshot(); - CommonUtils.assertEqualsWithMessage(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentAddedText.getText(), CHARMSRASScreenerConstants.CONSENT_ADDED_TEXT, "---- VERIFYING SCREENER RECORD RASOPATHY HISTORY DATA ----"); - /* BEGINNING: CONSENT FLOW PROCESS */ - JavascriptUtils.scrollIntoView(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentsTab); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentsTab); - CommonUtils.hoverOverElement(participantDetailsPage.consentStatusText); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentsPreviewButton); - CommonUtils.waitForVisibility(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); - MiscUtils.sleep(500); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeCalendar); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeCalendar); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeAcceptButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleDateCalendar); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleVerionCalendar); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentResponseTypeDropDown, 2); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentDateCalendar); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); - CommonUtils.sendKeys(nativeViewCHARMSParticipantConsentPage.rasStudyConsentByTextBox, CHARMSRASScreenerConstants.CONSENTED_BY_USER_NAME); - CommonUtils.sendKeys(nativeViewCHARMSParticipantConsentPage.rasStudyConsentByTextBox, Keys.ENTER); - CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCurrentDropDown, 1); - CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentConsentAssentStatusDropDown, 4); - CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureSpecimensAndDataDropDown, 4); - CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureUseCollaboratorsDropDown, 4); - CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureIdentifiableUseCollaboratorsDropDown, 4); - MiscUtils.sleep(500); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallCompleteButton); - MiscUtils.sleep(1000); - CommonUtils.waitForClickability(nativeViewCHARMSParticipantConsentPage.rasStudyConsentAddFileButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentAddFileButton); - CucumberLogUtils.logScreenshot(); - MiscUtils.sleep(5000); - - JavascriptUtils.uploadFileToHiddenFieldWithInputTag(nativeViewCHARMSParticipantConsentPage.rasStudyConsentChoseFileButton, COVIDConstants.IIQ_STUDY_DOCUMENTATION_PDF_PATH); - MiscUtils.sleep(2000); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentChoseFileCloseButton); - CommonUtils.waitForClickability(nativeViewCHARMSParticipantConsentPage.rasStudyConsentHardCopyReceivedButton); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentHardCopyReceivedButton); - CommonUtils.waitForClickability(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCompletedConsentButton); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCompletedConsentButton); - CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentParticipantRecordsReadyToProgressMessage); - CommonUtils.assertEqualsWithMessage(nativeViewCHARMSParticipantConsentPage.rasStudyConsentParticipantRecordsReadyToProgressMessage.getText(), CHARMSRASScreenerConstants.PARTICIPANT_READY_TO_PROGRESS_TEXT, "---- VERIFYING PARTICIPANT RECORD READY TO PROGRESS MESSAGE ----"); - CommonUtils.assertEqualsWithMessage(nativeViewCHARMSParticipantConsentPage.rasStudyConsentConsentRecordCompletedMessageMessage.getText(), CHARMSRASScreenerConstants.CONSENT_RECORD_COMPLETED_TEXT, "---- VERIFYING CONSENT RECORD COMPLETED AND FAMILY RECORD IS NOW ACTIVE! MESSAGE ----"); - MiscUtils.sleep(500); - CucumberLogUtils.logScreenshot(); - ServiceNow_Common_Methods.logOutOfNativeView(); - } - - /*** - * USE THIS METHOD WILL COMPLETE THE IIQ FORM SCENARIO 1 - */ - public void rasScreenerIIQFormScenario1() { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(14)); - CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisIsACopyForLowerEnvironmentsText, myRASSurveyPage.dynamicTopText(14).getText(), "-- VERIFYING THIS IS THE COPY FOR LOWER ENVIRONMENTS TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(16)); - CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.someOfThisInformationText, myRASSurveyPage.dynamicTopText(16).getText(), "-- VERIFYING SOME OF THIS INFORMATION TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(35)); - CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisFirstSectionOfTheQuestionnaireText, myRASSurveyPage.dynamicTopText(35).getText(), "-- VERIFYING THIS FIRST QUESTION OF THE QUESTIONNAIRE TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton).click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForClickability(myRASIIQFormPage.screenerIiqFormForWhichSexYouIdentifyRadioButton); - myRASIIQFormPage.screenerIiqFormForWhichSexYouIdentifyRadioButton.click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - myRASIIQFormPage.screenerIiqFormForWhichSexYouIdentifyRadioButton.click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(19)); - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(93)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouOfAshkenazyJewishDescentRadioButton)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(20)); - MiscUtils.sleep(1000); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouAdoptedRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouAdoptedRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(21)); - MiscUtils.sleep(1000); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.iiqWereYouRaisedNoOption); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - if (!rasopathyQuestionnairePage.calendarYearTextBox.isDisplayed()) { - CommonUtils.clickOnElement(rasopathyQuestionnairePage.iiqWereYouRaisedNoOption); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - } - try { - rasopathyQuestionnairePage.calendarYearTextBox.clear(); - rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(iiq_TestDataManager.whatIsYourDateOfBirthYearDropDown); - CommonUtils.selectDropDownValue(iiq_TestDataManager.whatIsYourDateOfBirthMonthDropDown, rasopathyQuestionnairePage.calendarMonthDropDown); - rasopathyQuestionnairePage.iIQcalendarDayOption.click(); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.calendarYearTextBox.clear(); - rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(iiq_TestDataManager.whatIsYourDateOfBirthYearDropDown); - CommonUtils.selectDropDownValue(iiq_TestDataManager.whatIsYourDateOfBirthMonthDropDown, rasopathyQuestionnairePage.calendarMonthDropDown); - rasopathyQuestionnairePage.iIQcalendarDayOption.click(); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_CITY_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornCityTextBox); - rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_STATE_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornStateTextBox); - rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_COUNTRY_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornCountryTextBox); - rasopathyQuestionnairePage.iIQAddressDontKnowTextBox.sendKeys(iiq_TestDataManager.whereWereYouBornDontKnowTextBox); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_CITY_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornCityTextBox); - rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_STATE_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornStateTextBox); - rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_COUNTRY_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornCountryTextBox); - rasopathyQuestionnairePage.iIQAddressDontKnowTextBox.sendKeys(iiq_TestDataManager.whereWereYouBornDontKnowTextBox); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(27)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1, 2)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(28)); - MiscUtils.sleep(2000); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1, 4)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(29)); - MiscUtils.sleep(500); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourFammilysReligiousBackgroundCheckBox)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourFammilysReligiousBackgroundCheckBox)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(31)); - MiscUtils.sleep(1000); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMainOccupationRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMainOccupationRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(95)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(33)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormThisSectionAsksDetailedMedicalHistoryText); - CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_ASKS_YOU_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionAsksDetailedMedicalHistoryText.getText(), "-- VERIFYING THIS SECTION ASKS DETAILED MEDICAL HISTORY TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(47)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouConceivedUsingVitroRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouConceivedUsingVitroRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(37)); - MiscUtils.sleep(1000); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - if (!myRASSurveyPage.dynamicTopText(41).isDisplayed()) { - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - } - - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(41)); - MiscUtils.sleep(1000); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYourBiologicalParentsBloodRelatedRadioButton)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - if (!myRASSurveyPage.dynamicTopText(43).isDisplayed()) { - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYourBiologicalParentsBloodRelatedRadioButton)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - } - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormFillOutBirthWeight); - CommonUtils.sendKeysToElement(myRASIIQFormPage.screenerIiqFormFillOutBirthWeight, iiq_TestDataManager.pleaseFillOutBirtWeightNumericTextBox); - MiscUtils.sleep(3000); - CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutBirtWeightUnitDropDown, myRASIIQFormPage.screenerIiqFormFillOutBirthWeightUnitDropDown); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadNumeticTextBox); - CommonUtils.sendKeysToElement(myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadNumeticTextBox, iiq_TestDataManager.pleaseFillOutHeadNumericTextBox); - CommonUtils.sendKeysToElement(myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadCircumferenceNumeticTextBox, iiq_TestDataManager.pleaseFillOutHeadCircumferenceNumericTextBox); - MiscUtils.sleep(3000); - CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutHeadUnitDropDown, myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadUnitDropDown); - CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutHeadCircumferenceUnitDropDown, myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadCircumferenceUnitDropDown); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText); - CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_WILL_ASK_ABOUT_CANCER_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText.getText(), "-- VERIFYING THIS SECTION WILL ASK ABOUT CANCER TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(62)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(67)); - MiscUtils.sleep(1000); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - if (!myRASIIQFormPage.screenerIiqFormFillOutCurrentHeightTextBox.isDisplayed()) { - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - } - CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormFillOutCurrentHeightTextBox); - CommonUtils.sendKeysToElement(myRASIIQFormPage.screenerIiqFormFillOutCurrentHeightTextBox, iiq_TestDataManager.pleaseFillTheTableBelowWithHeightNumericTextBox); - MiscUtils.sleep(2000); - CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillTheTableBelowWithHeightUnitDropDown, myRASIIQFormPage.screenerIiqFormFillOutCurrentHeightUnitDropDown); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - MiscUtils.sleep(3000); - CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); - CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option1); - CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option2); - CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option3); - CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option4); - CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option5); - CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option1, myRASSurveyPage.dynamicDropDownTwo(1, 6)); - CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option2, myRASSurveyPage.dynamicDropDownTwo(2, 6)); - CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option3, myRASSurveyPage.dynamicDropDownTwo(3, 6)); - CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option4, myRASSurveyPage.dynamicDropDownTwo(4, 6)); - CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option5, myRASSurveyPage.dynamicDropDownTwo(5, 6)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 9)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 9)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 9)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(4, 9)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(5, 9)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 12)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 12)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 12)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(4, 12)); - CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(5, 12)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(78)); - CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(78), iiq_TestDataManager.atWhatAgeWereYouAtTheHighestWeightTextBox); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(154)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouSoughtMedicalAdviceRegardingFertilityRadioButton)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouSoughtMedicalAdviceRegardingFertilityRadioButton)); - CucumberLogUtils.logScreenshot(); - } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormYouAreAlmostDoneText); - CommonUtils.assertEqualsWithMessage(iiq_Constants.YOU_ARE_ALMOST_DONE_TEXT, myRASIIQFormPage.screenerIiqFormYouAreAlmostDoneText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); - CucumberLogUtils.logScreenshot(); - MiscUtils.sleep(3000); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); - MiscUtils.sleep(1000); - CucumberLogUtils.logScreenshot(); - ServiceNow_Common_Methods.logOutOfNativeView(); - } - - /*** - * USE THIS METHOD WILL COMPLETE THE RAS SURVEY SCENARIO 1 - */ - public void rasScreenerSurveyScenario1PartOne() { - CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThankYouForStartingText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thankYouForStartingTheRASSurveyAndFor, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THANK YOU FOR STARTING THE RAS SURVEY AND FOR YOUR TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThisQuestionMayTakeText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THIS QUESTIONNAIRE MAY TAKE YOU SEVERAL HOURS TO COMPLETE TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheFirstBlockText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE FIRST BLOCK OF QUESTIONS WILL COLLECT TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(1)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.toConfirmAreYouCompleting)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(58)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenIncluded)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutBirthAndNeonatalText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutNeonatalHistory, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT BIRTH AND NEONATAL TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalMotherCityTextBox); - int momAgeDropdownIndex = Integer.valueOf(ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalMotherAge) - 11; - int fatherDropDownIndex = Integer.valueOf(ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalFatherAge) - 11; - CommonUtils.sendKeysToElement(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalMotherCityTextBox, ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalMotherCity); - CommonUtils.clickOnElement(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalMotherUnsureRadioButton); - CommonUtils.selectDropDownValue(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalMotherYearsDropDown, momAgeDropdownIndex); - CommonUtils.sendKeysToElement(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalFatherCityTextBox, ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalFatherCity); - CommonUtils.clickOnElement(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalFatherUnsureRadioButton); - CommonUtils.selectDropDownValue(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalFatherYearsDropDown, fatherDropDownIndex); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(9)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(9)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(12)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(12)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(63)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(65)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyVaping)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(67)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(69)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyRecreationalDrugs)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(71)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); - CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancy); - JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 6)); - CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancyFather); - JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.whatIsTheHeightOfYourBiologicalMotherAndFatherText); - CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.whatIsTheHeightOfYourBiologicalMother); - JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 6)); - JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 10)); - CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.whatIsTheHeightOfYourBiologicalFather); - JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); - JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 10)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutHormoneRelatedGrowthText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetHormoneRelatedGrowth, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HORMONE RELATED GROWTH TEXT --"); - CucumberLogUtils.logScreenshot(); - } - - public void rasScreenerSurveyScenario1PartTwo() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(76)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(78)); - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutDevelopmentText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutDevelopment, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT DEVELOPMENT TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(84)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToWalkWithoutSupport)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(88)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(90)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(92)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(93)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - try { - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); - CucumberLogUtils.logScreenshot(); - } catch (NoSuchElementException e) { - e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); - CucumberLogUtils.logScreenshot(); - } - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - MiscUtils.sleep(2000); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(97)); - MiscUtils.sleep(2000); - } - - public void rasScreenerSurveyScenario1PartThree() { - //*** ATTACHING FILE CAN'T BE AUTOMATED IN QUATRICS. MANUAL TESTING WAS PERFORMED FOR UPLOADING A FILE ******* - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutHeartText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutHeart, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HEART TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(372)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByACardiologist)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(320)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyStructuralHeartIssues)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(100)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(12)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssues)); - CommonUtils.waitForVisibility(myRASSurveyPage.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssueText); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssues)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutRASopathyDiagnosesText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextTwoQuestionsWillAskAboutRASopathyDiagnoses, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT TWO QUESTIONS WILL ASK ABOUT RASOPATHY DIAGNOSES TEXT --"); - CucumberLogUtils.logScreenshot(); - } - - public void rasScreenerSurveyScenario1PartFour() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutMedicalHistoryText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGeneralMedicalHistory, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GENERAL MEDICAL HISTORY TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 4)); - JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 4)); - JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 4)); - JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 4)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(108)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnOperationOrBiopsy)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(110)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenHospitalizedForAnyReason)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutGiText); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGi, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GI TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); - CucumberLogUtils.logScreenshot(); - } - - public void rasScreenerSurveyScenario1PartFive() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(327)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouToiletTrained)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); - CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyBowelMovementsDoYouHavePerWeek, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.whatIsTheLongestAmountOfTimeThatHasPassedText); - CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.whatIsTheLongestAmountOfTimeThatHasPassedWithout, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(153)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.ifYouAreNotYetAbleToUseTheToilet)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(351)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAProcedureTestOrStudyToEvaluate)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - } - - public void rasScreenerSurveyScenario1PartSix() { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(305)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBreathingAndTheLungs, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BREATHING AND THE LUNGS TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(380)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAPulmonologist)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(162)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadWheezingOrWhistling)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(163)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithReactiveAirwayDisease)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(164)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheEmergencyRoomForABreathing)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(165)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheHospitalForABreathing)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(330)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutOralHealthAndDental, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT ORAL HEALTH AND DENTAL HISTORY TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(166)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouReceiveRegularDentalCare)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(168)); - CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(168), ras_Survey_TestDataManager.whenDidYouLastVisitADentist); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(167)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWasTheReasonForYourLastDentalVisitOption)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(169)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourGumsBleedRegularlyWithToothBrushing)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(170)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourTeethOrGumsHurtRegularly)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(171)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHavePeriodontalOrGumDisease)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(172)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadDentalSealantsPlaced)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(173)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouCurrentlyHaveCavities)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(174)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouPreviouslyHadAnyDentalFillings)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(175)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doesYourMouthUsuallyFeelDry)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(176)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateTheOverallHealth)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(177)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateYourDentalHygieneRoutine)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(178)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfSmell)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(179)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfTaste)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(180)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveJawOrTemporomandibularJointPain)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(181)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveFrequentHeadaches)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(182)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyOrthodonticTreatment)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(184)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyFacialOrDentalTrauma)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(186)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadElectiveJawSurgery)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(189)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(190)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(191)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyNumbnessInOrAroundYourMouth)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(192)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyMouthSores)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(193)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourTeethFeelSensitiveToHotOrColdFoods)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(194)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveProblemsMovingYourLipsTongueOrMouth)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(195)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - String[] clickingOnOptionInMultiplePages = {ras_Survey_TestDataManager.haveYouHadTroublePronouncingAnyWords, - ras_Survey_TestDataManager.haveYouFeltThatYourSenseOfTasteHasWorsened, - ras_Survey_TestDataManager.haveYouHadPainfulAchingInYourMouth, - ras_Survey_TestDataManager.haveYouFoundItUncomfortableToEatAnyFoods, - ras_Survey_TestDataManager.areYouSelfConsciousBecauseOfYourTeeth, - ras_Survey_TestDataManager.haveYouFeltTenseBecauseOfProblems, - ras_Survey_TestDataManager.hasYourDietBeenUnsatisfactoryBecause, - ras_Survey_TestDataManager.haveYouHadToInterruptMealsBecauseOfProblems, - ras_Survey_TestDataManager.haveYouFoundItDifficultToRelaxBecause, - ras_Survey_TestDataManager.haveYouBeenABitEmbarrassedBecause, - ras_Survey_TestDataManager.haveYouBeenIrritableWithOtherPeopleBecause, - ras_Survey_TestDataManager.haveYouHadDifficultyDoingYourUsualJobs, - ras_Survey_TestDataManager.haveYouFeltThatLifeInGeneralIsLessSatisfying, - ras_Survey_TestDataManager.haveYouFeltThatLifeInGeneralIsLessSatisfying}; - for (int jjj = 196; jjj < 210; jjj++) { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(jjj)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(clickingOnOptionInMultiplePages[jjj - 196])); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - } - } - - public void rasScreenerSurveyScenario1PartSeven() { - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(306)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutFluidBalance, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT FLUID BALANCE AND IF ANY FLUID BUILDS TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(331)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithALymphaticSystemIssue)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(332)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutTheKidneys, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT THE KIDNEYS TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(383)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANephrologist)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(329)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAKidneyProblem)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(309)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutHairAndSkinQualities, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT HAIR AND SKIN QUALITIES TEXT --"); - CucumberLogUtils.logScreenshot(); - } - - public void rasScreenerSurveyScenario1PartEight() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(385)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByADermatologist)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(4)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(4)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(221)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.isTheTextureOrAmountOfYourHairSimilar)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(223)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(224)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyHemangiomas)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(225)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(310)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutSkeletalConditions, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT SKELETAL CONDITIONS TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(387)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnOrthopaedicSurgeon)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(226)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(6)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(352)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyIssuesWithCurvingOfTheSpine)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(231)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.hasYourNeckBeenDescribedAsShortOrWebbed)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(353)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithJointIssues)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(311)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBloodDisorders, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BLOOD DISORDERS TEXT --"); - CucumberLogUtils.logScreenshot(); - } - - public void rasScreenerSurveyScenario1PartNine() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(389)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAHematologist)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(354)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveIssuesWithBleedingOrBruising)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(355)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyKnownBloodDisorders)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(238)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(8)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(356)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfFrequentInfections)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(391)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnImmunologist)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(357)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnAutoimmuneDisorder)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(312)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutNervousSystem, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT NERVOUS SYSTEM TEXT --"); - CucumberLogUtils.logScreenshot(); - } - - public void rasScreenerSurveyScenario1PartTen() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(393)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANeurologist)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(358)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAStructuralBrainAbnormality)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(359)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfSeizures)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(395)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAPsychiatrist)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(360)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithABehavioral)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(249)); - CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(249), ras_Survey_TestDataManager.pleaseListAndDescribeAnyAdditionalNeurologicConditions); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(313)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutVisionAndHearing, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT VISION AND HEARING TEXT --"); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(250)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithPtosis)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(361)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyIssuesWithYourVision)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(253)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(254)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedStabismus)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(256)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedNystagmus)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(362)); - JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouExperiencedHearingLoss)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(260)); - CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(4)); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(297)); - CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(297), ras_Survey_TestDataManager.ifThereAreAnyOtherHealthIssues); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(298)); - CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.youAreAlmostDoneSurvey, myRASSurveyPage.dynamicTopText(298).getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); - MiscUtils.sleep(1000); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); - MiscUtils.sleep(3000); - CucumberLogUtils.logScreenshot(); - MiscUtils.sleep(1000); - ServiceNow_Common_Methods.logOutOfNativeView(); - } - - public void verifyingDropDownOption(WebElement element, String message) { - CommonUtils.assertEqualsWithMessage(element.getAttribute("selected"), "true", message); - } - - /*** - * THIS METHOD VERIFIES RAS SCREENER SCENARIO 1 DATA IN NATIVE VIEW - */ - public void verifying_RAS_Screener_Scenario_1_Data(String sheetName) { - ServiceNow_Login_Methods.nativeViewSideDoorLogin(); - MiscUtils.sleep(2000); - - ServiceNow_Common_Methods.filterNavigatorSearch("All Participant Details"); - CucumberLogUtils.logScreenshot(); - - CommonUtils.switchToFrame(NativeView_SideDoor_Dashboard_Page.nativeViewiFrame); - CommonUtils.waitForVisibility(nativeViewCHARMSDashboardPage.rasStudyParticipantsDetailsMenu); - CucumberLogUtils.logScreenshot(); - if (sheetName.contentEquals("screenerScenario1")) { - CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); - } else if (sheetName.contentEquals("screenerScenario2")) { - CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); - } else if (sheetName.contentEquals("screenerScenario3")) { - CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); - } else if (sheetName.contentEquals("screenerScenario4")) { - CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); - } - MiscUtils.sleep(1000); - System.out.println("---- VERIFYING PARTICIPANT RECORD PREVIEW DATA ----"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.firstNameRecordPreviewField), ras_Screener_TestDataManager.firstName, "-- VERIFYING PREVIEW RECORD FIRST NAME --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.lastNameRecordPreviewField), ras_Screener_TestDataManager.lastName, "-- VERIFYING PREVIEW RECORD LAST NAME --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.middleNameRecordPreviewField), ras_Screener_TestDataManager.middleInitial, "-- VERIFYING PREVIEW RECORD MIDDLE NAME --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactHomePhoneRecordPreviewField), ras_Screener_TestDataManager.homePhoneNumber, "-- VERIFYING PREVIEW RECORD CONTACT HOME PHONE NUMBER --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactEmailRecordPreviewField), ras_Screener_TestDataManager.emailAddress, "-- VERIFYING PREVIEW RECORD CONTACT EMAIL ADDRESS --"); - CucumberLogUtils.logScreenshot(); - if (CommonUtils.isElementDisplayed(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton)) { - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); - } - System.out.println("---- VERIFYING PARTICIPANT NAME DATA ----"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.nameTextBox), ras_Screener_TestDataManager.firstName + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.lastName, "-- VERIFYING FULL NAME --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.firstNameTextBox), ras_Screener_TestDataManager.firstName, "-- VERIFYING FIRST NAME --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.middleInitialTextBox), ras_Screener_TestDataManager.middleInitial, "-- VERIFYING MIDDLE INITIAL --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.lastNameTextBox), ras_Screener_TestDataManager.lastName, "-- VERIFYING LAST NAME --"); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(participantDetailsPage.demographicsTab); - System.out.println("---- VERIFYING PARTICIPANT DEMOGRAPHICS DATA ----"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.dateOfBirthTextBox), ras_Screener_TestDataManager.whatIsYourDateOfBirth, "-- VERIFYING DATE OF BIRTH --"); - CommonUtils.verifyingDropDownValueIsSelected(participantDetailsPage.biologicalGenderDropDown, ras_Screener_TestDataManager.sexAssignedAtBirthOption, "-- VERIFYING BIOLOGICAL GENDER --"); - CommonUtils.verifyingDropDownValueIsSelected(participantDetailsPage.isParticipantAdoptedDropDown, ras_Screener_TestDataManager.areYouAdoptedOption, "-- VERIFYING IF THE PARTICIPANT IS ADOPTED --"); - CommonUtils.assertEqualsWithMessage(participantDetailsPage.participantRacePreferNotToAnswerOption.getText(), ras_Screener_TestDataManager.whatIsYourRace, "-- VERIFYING RACE --"); - CommonUtils.verifyingDropDownValueIsSelected(participantDetailsPage.ethnicityDropDownOption, ras_Screener_TestDataManager.whatIsYourEthnicity, "-- VERIFYING ETHNICITY --"); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(participantDetailsPage.contactInfoTab); - System.out.println("---- VERIFYING PARTICIPANT CONTACT INFORMATION DATA ----"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactStreetAddress), ras_Screener_TestDataManager.street + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.street2, "-- VERIFYING CONTACT STREET ADDRESS --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactState), ras_Screener_TestDataManager.state, "-- VERIFYING CONTACT STATE --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactCity), ras_Screener_TestDataManager.city, "- VERIFYING CONTACT CITY --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactZipCode), ras_Screener_TestDataManager.zipcode, "-- VERIFYING ZIP CODE --"); - CommonUtils.verifyingDropDownValueIsSelected(participantDetailsPage.contactCountryDropDown, ras_Screener_TestDataManager.countryOption, "-- VERIFYING CONTACT COUNTRY --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactEmailAddress), ras_Screener_TestDataManager.emailAddress, "-- VERIFYING CONTACT EMAIL ADDRESS --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactHomePhone), ras_Screener_TestDataManager.homePhoneNumber, "-- VERIFYING CONTACT HOME PHONE --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactCellPhone), ras_Screener_TestDataManager.cellPhoneNumber, "-- VERIFYING CONTACT CELL PHONE --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactWorkPhone), ras_Screener_TestDataManager.workPhoneNumber, "-- VERIFYING CONTACT WORK PHONE --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactPreferredPhone), ras_Screener_TestDataManager.cellPhoneNumber, "-- VERIFYING PREFERRED PHONE --"); - CucumberLogUtils.logScreenshot(); - - JavascriptUtils.scrollIntoView(participantDetailsPage.participantStudiesTab); - CommonUtils.clickOnElement(participantDetailsPage.participantStudiesTab); - CucumberLogUtils.logScreenshot(); - - CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator("Waiting for Eligibility")); - CommonUtils.waitForVisibility(participantDetailsPage.participantStudiesInfoButton); - CommonUtils.clickOnElement(participantDetailsPage.participantStudiesInfoButton); - CucumberLogUtils.logScreenshot(); - CommonUtils.waitForClickability(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); - CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); - CucumberLogUtils.logScreenshot(); - CommonUtils.waitForClickability(nativeViewCHARMSParticipantStudyPage.participantStudyScreenerInfoButton); - CommonUtils.clickOnElement(nativeViewCHARMSParticipantStudyPage.participantStudyScreenerInfoButton); - System.out.println("---- OPENING AND VERIFYING SCREENER RECORD DATA ----"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.screenerPreviewFamilyMemberRecordField), ras_Screener_TestDataManager.firstName + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.lastName, "-- VERIFYING SCREENER PREVIEW RECORD FAMILY MEMBER RECORD NAME --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.screenerPreviewContactEmailAddressField), ras_Screener_TestDataManager.emailAddress, "-- VERIFYING SCREENER PREVIEW RECORD CONTACT EMAIL ADDRESS FIELD --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.screenerPreviewStudyField), ras_Screener_Constants.RAS_STUDY, "-- VERIFYING SCREENER PREVIEW STUDY FIELD --"); - CucumberLogUtils.logScreenshot(); - CommonUtils.waitForClickability(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); - CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); - CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.verifyingDropDownOption(participantDetailsPage.vitalStatusYesDropDownOption, "-- VERIFYING VITAL STATUS --"); - CommonUtils.clickOnElement(screenerRecordTablePage.contactInformationButton); - System.out.println("---- VERIFYING SCREENER RECORD NAME AND CONTACT INFORMATION DATA ----"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.screenerStudyField), ras_Screener_Constants.RAS_STUDY, "-- VERIFYING STUDY FIELD --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.familyMemberRecordField), ras_Screener_TestDataManager.firstName + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.lastName, "-- VERIFYING FAMILY MEMBER RECORD FIELD --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactEmailField), ras_Screener_TestDataManager.emailAddress, "-- VERIFYING CONTACT EMAIL FIELD --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactHomePhoneField), ras_Screener_TestDataManager.homePhoneNumber, "-- VERIFYING CONTACT HOME PHONE NUMBER --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactCellPhoneField), ras_Screener_TestDataManager.cellPhoneNumber, "-- VERIFYING CONTACT CELL PHONE NUMBER --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactWorkPhoneField), ras_Screener_TestDataManager.workPhoneNumber, "-- VERIFYING CONTACT WORK PHONE NUMBER --"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.contactCountryDropDown, ras_Screener_TestDataManager.countryOption, "-- VERIFYING COUNTRY CONTACT FIELD --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactStateField), ras_Screener_TestDataManager.state, "-- VERIFYING STATE --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactStreetAddressField), ras_Screener_TestDataManager.street + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.street2, "-- VERIFYING CONTACT STREET ADDRESS --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactCityField), ras_Screener_TestDataManager.city, "-- VERIFYING CONTACT CITY --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactZipCodeField), ras_Screener_TestDataManager.zipcode, "-- VERIFYING ZIP CODE --"); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("Demographics")); - CommonUtils.assertEqualsWithMessage(screenerRecordTablePage.demographicsParticipantRacePreferNotToAnswerOption.getText(), ras_Screener_TestDataManager.whatIsYourRace, "-- VERIFYING RACE OF PARTICIPANT --"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.demographicsBiologicalGenderDropDown, ras_Screener_TestDataManager.sexAssignedAtBirthOption, "-- VERIFYING BIOLOGICAL GENDER --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.demographicsDateOfBirthField), ras_Screener_TestDataManager.whatIsYourDateOfBirth, "-- VERIFYING DATE OF BIRTH --"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.demographicsEthnicityDropDown, ras_Screener_TestDataManager.whatIsYourEthnicity, "-- VERIFYING ETHNICITY --"); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("RASopathy History")); - System.out.println("---- VERIFYING SCREENER RECORD RASOPATHY HISTORY DATA ----"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.rasopathyHistoryHaveYouBeenDiagnosedWithARasopathyDropDown, ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy, "-- VERIFYING IF PARTICIPANT HAS BEEN DIAGNOSED WITH A RASOPATHY --"); - CommonUtils.assertEqualsWithMessage(screenerRecordTablePage.rasopathyHistoryNeverDiagnosedWithAnyOfTheseConditions.getText(), ras_Screener_TestDataManager.haveYouBeenDiagnosedWithFollowingConditions, "-- VERIFYING IF CANDIDATE HAS BEEN DIAGNOSED WITH ANY CONDITIONS --"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.rasopathyHistoryHaveAnyOfYourBiologicalRelativesBeenDiagnosedWithARasopathyDropDown, ras_Screener_TestDataManager.haveAnyOfYourBiologicalRelativesBeenDiagnosedWithARasopathy, "-- VERIFYING IF ANY OF BIOLOGICAL RELATIVES BEEN DIAGNOSED WITH A RASOPATHY --"); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("Cancer History")); - System.out.println("---- VERIFYING SCREENER RECORD CANCER HISTORY DATA ----"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.cancerHistoryHasAPhysicianEverDiagnosedParticipantWithCancerDropDown, ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer, "-- VERIFYING IF PARTICIPANT HAS BEEN DIAGNOSED WITH CANCER --"); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("Genetic Testing History")); - System.out.println("---- VERIFYING SCREENER RECORD GENETIC TESTING HISTORY DATA ----"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.geneticTestingHistoryHasTheParticipantEverHadGeneticTestingDropDown, ras_Screener_TestDataManager.haveYouEverHadGeneticTesting, "-- VERIFYING IF PARTICIPANT HAS HAD GENETIC TESTING --"); - CucumberLogUtils.logScreenshot(); - CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("Final Information")); - System.out.println("---- VERIFYING SCREENER RECORD FINAL INFORMATION DATA ----"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.finalInformationHowDidYouHearAboutThisStudyDropDown, ras_Screener_TestDataManager.howDidYouHearAboutThisStudy, "-- VERIFYING HOW DID PARTICIPANT HEAR ABOUT THE STUDY --"); - CommonUtils.assertEqualsWithMessage(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.finalInformationHowDidYouHearAboutThisStudyPleaseSpecifyTextBox), ras_Screener_TestDataManager.howDidYouHearAboutThisStudyOtherReason, "-- VERIFYING HOW DID YOU PARTICIPANT HEAR ABOUT THE STUDY OTHER REASONS --"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.finalInformationHasParticipantOrAnyFamilyMemberParticipatedInAnyCancerStudyDropDown, ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy, "-- VERIFYING IF PARTICIPANT OR FAMILY MEMBER HAVE PARTICIPATED IN CANCER STUDY --"); - CommonUtils.assertEqualsWithMessage(screenerRecordTablePage.finalInformationMainReasonsForParticipatingInThisStudyOtherOption.getText(), ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy, "-- VERIFYING MAIN REASONS FOR PARTICIPATING IN STUDY --"); - CommonUtils.assertEqualsWithMessage(screenerRecordTablePage.finalInformationMainReasonsForParticipatingInThisStudyOtherReasonsField.getText(), ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudyOtherReason, "-- VERIFYING MAIN REASONS FOR PARTICIPATING IN STUDY FIELD --"); - CommonUtils.verifyingDropDownValueIsSelected(screenerRecordTablePage.finalInformationAreYouAParticipantInAnyOtherResearchStudyOrRegistryGroupDropDown, ras_Screener_TestDataManager.areYouAParticipantInOtherStudyGroup, "-- VERIFYING IF PARTICIPANT IS PART OF RESEARCH STUDY OR REGISTRY GROUP --"); - CucumberLogUtils.logScreenshot(); - ServiceNow_Common_Methods.logOutOfNativeView(); - } -} \ No newline at end of file diff --git a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Screener_Submissions_StepsImpl.java b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Screener_Submissions_StepsImpl.java new file mode 100644 index 000000000..42db04aae --- /dev/null +++ b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RAS_Screener_Submissions_StepsImpl.java @@ -0,0 +1,1991 @@ +package ServiceNow.CHARMS.StepsImplementation.RASStudy; + +import Hooks.Hooks; +import ServiceNow.CHARMS.Constants.CHARMS_Data_File_Path_Constants; +import ServiceNow.CHARMS.Constants.CHARMSRASScreenerConstants; +import ServiceNow.CHARMS.Pages.MyRASHomePage; +import ServiceNow.CHARMS.Pages.NativeViewCHARMSDashboardPage; +import ServiceNow.CHARMS.Pages.RAS_Screener_Page; +import ServiceNow.CHARMS.Pages.ScreenerRecordTablePage; +import ServiceNow.COVIDDash.Utils.COVIDConstants; +import appsCommon.Pages.NativeView_SideDoor_Dashboard_Page; +import appsCommon.Utils.ServiceNow_Common_Methods; +import appsCommon.Utils.ServiceNow_Login_Methods; +import appsCommon.PageInitializers.PageInitializer; +import com.nci.automation.utils.CucumberLogUtils; +import com.nci.automation.utils.MiscUtils; +import com.nci.automation.web.CommonUtils; +import com.nci.automation.web.JavascriptUtils; +import com.nci.automation.web.WebDriverUtils; +import org.openqa.selenium.*; +import org.testng.Assert; + +import static ServiceNow.CHARMS.Pages.RAS_Screener_Page.dynamicLocator; +import static ServiceNow.CHARMS.studyQuestions.RAS_Screener_Questions.*; + +public class RAS_Screener_Submissions_StepsImpl extends PageInitializer { + /*** + * USE THIS METHOD TO CLICK ON SCREENER NEXT BUTTON + */ + public void clickOnScreenerNextButton() { + JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.studyNextButton); + MiscUtils.sleep(1000); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.studyNextButton); + MiscUtils.sleep(1000); + } + + /*** + * USE THIS METHOD TO CLICK ON SURVEY SAVE AND NEXT BUTTON + */ + public void clickOnSurveySavAndNextButton() { + JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.rasSurveySaveAndNextButton); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.rasSurveySaveAndNextButton); + } + + /*** + * USE THIS METHOD TO CLICK ON SURVEY PREVIOUS BUTTON + */ + public void clickOnSurveyPreviousButton() { + JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.rasSurveyPreviousButton); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.rasSurveyPreviousButton); + } + + /*** + * THIS METHOD WILL SELECT THE SCREENER SUBMISSION ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE + */ + public void rasScreenerScenarioSelector(String sheetName) { + if (sheetName.contentEquals("screenerScenario1")) { + ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); + rasScreenerSubmissions(sheetName); + } else if (sheetName.contentEquals("screenerScenario2")) { + ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); + rasScreenerSubmissions(sheetName); +// rasScenario2StepsImpl.rasScreenerSubmissionScenario2(); + } else if (sheetName.contentEquals("screenerScenario3")) { + ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); + rasScenario3StepsImpl.rasScreenerSubmissionScenario3(); + } else if (sheetName.contentEquals("screenerScenario4")) { + ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); + rasScenario4StepsImpl.rasScreenerSubmissionScenario4(); + } else if (sheetName.contentEquals("screenerScenario5")) { + ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); + ras_scenario_five_stepsImpl.ras_screener_submission_five(); + } + } + + public static void rasScreenerSubmissions(String sheetName) { + CommonUtils.switchToNextWindow(); + MiscUtils.sleep(2000); + CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThisCopyText); + //ASSERTING THAT THIS IS THE COPY FOR LOWER ENVIRONMENTS ONLY!!! MESSAGE DISPLAYS + Assert.assertEquals(myRASSurveyPage.rasSurveyThisCopyText.getText(), ras_Screener_Constants.THIS_IS_A_COPY); + CucumberLogUtils.logScreenshot(); + MiscUtils.sleep(2000); + JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.studyNextButton); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + MiscUtils.sleep(2000); + if (!rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.isDisplayed()) { + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + + if (ras_Screener_TestDataManager.areYouCompletingThisFormForSomeoneElseOrYourself.contentEquals("I am completing this form for myself")) { + CucumberLogUtils.scenario.log("* * * THIS IS A SELF SCREENER SUBMISSION * * *"); + } else if (ras_Screener_TestDataManager.areYouCompletingThisFormForSomeoneElseOrYourself.contentEquals("I am completing this form for someone else")) { + CucumberLogUtils.scenario.log("* * * THIS IS A PROXY SCREENER SUBMISSION * * *"); + } + + for (int i = 0; i < 40; i++) { + + try { + /** + * * * * * ARE YOU COMPLETING THIS FORM FOR SOMEONE ELSE OR FOR YOURSELF? * * * * + */ + if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(ARE_YOU_COMPLETING_THIS_FORM_FOR_SOMEONE_ELSE_OR_FOR_YOURSELF)) { + CucumberLogUtils.scenario.log("* * * * ARE YOU COMPLETING THIS FORM FOR SOMEONE ELSE OR FOR YOURSELF? * * * *"); + dynamicLocator(ras_Screener_TestDataManager.areYouCompletingThisFormForSomeoneElseOrYourself).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * WHAT IS YOUR NAME? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(WHAT_IS_YOUR_NAME)) { + CucumberLogUtils.scenario.log("* * * * * ENTERING FIRST NAME, MIDDLE INITIAL, LAST NAME * * * * *"); + rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); + rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.middleInitial); + rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.LAST_NAME).sendKeys(ras_Screener_TestDataManager.lastName); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * THE NEXT SET OF QUESTIONS WILL COLLECT BASIC INFORMATION ABOUT YOU. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(THE_NEXT_SET_OF_QUESTIONS_WILL_COLLECT_BASIC_INFORMATION_ABOUT_YOU)) { + CucumberLogUtils.scenario.log("* * * * * THE NEXT SET OF QUESTIONS WILL COLLECT BASIC INFORMATION ABOUT YOU. * * * * *"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * WHAT IS YOUR DATE OF BIRTH? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(WHAT_IS_YOUR_DATE_OF_BIRTH)) { + CucumberLogUtils.scenario.log("* * * * * WHAT IS YOUR DATE OF BIRTH? * * * * *"); + CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.dateOfBirthMonth, rasopathyQuestionnairePage.calendarMonthDropDown); + rasopathyQuestionnairePage.calendarYearTextBox.clear(); + rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); + RAS_Screener_Page.dynamicDateOfBirthCalendarLocator(ras_Screener_TestDataManager.whatIsYourDateOfBirth).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * WHAT WAS YOUR SEX ASSIGNED AT BIRTH? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(WHAT_WAS_YOUR_SEX_ASSIGNED_AT_BIRTH)) { + CucumberLogUtils.scenario.log("* * * * * WHAT WAS YOUR SEX ASSIGNED AT BIRTH? * * * * *"); + dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * ARE YOU ADOPTED? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(ARE_YOU_ADOPTED)) { + CucumberLogUtils.scenario.log("* * * * * ARE YOU ADOPTED? * * * * *"); + dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * IN WHICH COUNTRY DO YOU CURRENTLY LIVE? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(IN_WHICH_COUNTRY_DO_YOU_CURRENTLY_LIVE)) { + CucumberLogUtils.scenario.log("* * * * * IN WHICH COUNTRY DO YOU CURRENTLY LIVE? * * * * *"); + CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * PLEASE PROVIDE THE MAILING ADDRESS WHERE STUDY MATERIALS CAN BE SENT, AS NEEDED. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(PLEASE_PROVIDE_THE_MAILING_ADDRESS_WHERE_STUDY_MATERIALS_CAN_BE_SENT_AS_NEEDED)) { + CucumberLogUtils.scenario.log("* * * * * PLEASE PROVIDE THE MAILING ADDRESS WHERE STUDY MATERIALS CAN BE SENT, AS NEEDED. * * * * *"); + rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); + rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); + rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.CITY_TEXT).sendKeys(ras_Screener_TestDataManager.city); + rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STATE_TEXT).sendKeys(ras_Screener_TestDataManager.state); + rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.ZIP_CODE_TEXT).sendKeys(ras_Screener_TestDataManager.zipcode); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * WHAT IS YOUR EMAIL ADDRESS? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(WHAT_IS_YOUR_EMAIL_ADDRESS)) { + CucumberLogUtils.scenario.log("* * * * * WHAT IS YOUR EMAIL ADDRESS? * * * * *"); + rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * PLEASE CONFIRM YOUR EMAIL ADDRESS * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(PLEASE_CONFIRM_YOUR_EMAIL_ADDRESS)) { + CucumberLogUtils.scenario.log("* * * * * PLEASE CONFIRM YOUR EMAIL ADDRESS * * * * *"); + rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * PLEASE LIST YOUR PHONE NUMBERS BELOW. PLEASE ALSO SELECT YOUR PREFERRED CONTACT NUMBER. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(PLEASE_LIST_YOUR_PHONE_NUMBERS_BELOW_PLEASE_ALSO_SELECT_YOUR_PREFERRED_CONTACT_NUMBER)) { + CucumberLogUtils.scenario.log("* * * * * PLEASE LIST YOUR PHONE NUMBERS BELOW. PLEASE ALSO SELECT YOUR PREFERRED CONTACT NUMBER. * * * * *"); + rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); + rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); + rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.WORK_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.workPhoneNumber); + rasopathyQuestionnairePage.dynamicPhoneNumberCheckBox(ras_Screener_Constants.CELL_PHONE_NUMBER).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * WHAT IS YOUR ETHNICITY? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(WHAT_IS_YOUR_ETHNICITY)) { + CucumberLogUtils.scenario.log("* * * * * WHAT IS YOUR ETHNICITY? * * * * *"); + dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * WHAT IS YOUR RACE? PLEASE SELECT ALL THAT APPLY. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(WHAT_IS_YOUR_RACE_PLEASE_SELECT_ALL_THAT_APPLY)) { + CucumberLogUtils.scenario.log("* * * * * WHAT IS YOUR RACE? PLEASE SELECT ALL THAT APPLY. * * * * *"); + + if (sheetName.contentEquals("screenerScenario1")) { + dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); + } + if (sheetName.contentEquals("screenerScenario2")) { + dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); + CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.whatIsYourRace), ras_Screener_TestDataManager.whatIsYourRaceOther); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * ARE YOU A PARTICIPANT IN ANY OTHER RESEARCH STUDY OR REGISTRY GROUP? PLEASE SPECIFY. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(ARE_YOU_A_PARTICIPANT_IN_ANY_OTHER_RESEARCH_STUDY_OR_REGISTRY_GROUP_PLEASE_SPECIFY)) { + CucumberLogUtils.scenario.log("* * * * * ARE YOU A PARTICIPANT IN ANY OTHER RESEARCH STUDY OR REGISTRY GROUP? PLEASE SPECIFY. * * * * *"); + + if(sheetName.contentEquals("screenerScenario1")){ + dynamicLocator(ras_Screener_TestDataManager.areYouAParticipantInOtherStudyGroup).click(); + } + if(sheetName.contentEquals("screenerScenario2")){ + CommonUtils.waitForClickability(dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption1)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption1)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption2)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption3)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption4)); + CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption2), ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption2Other); + CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption3), ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption3Other); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * TO DETERMINE ELIGIBILITY FOR THIS STUDY, WE NEED TO COLLECT INFORMATION ABOUT MEDICAL DIAGNOSES. THESE QUESTIONS ASK ABOUT GENERAL MEDICAL CONDITIONS, CANCER AND ANY PRIOR DIAGNOSIS OF A RASOPATHY. PLEASE COMPLETE THIS INFORMATION TO THE BEST OF YOUR KNOWLEDGE. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(TO_DETERMINE_ELIGIBILITY_FOR_THIS_STUDY_WE_NEED_TO_COLLECT_INFORMATION_ABOUT_MEDICAL_DIAGNOSES_THESE_QUESTIONS_ASK_ABOUT_GENERAL_MEDICAL_CONDITIONS_CANCER_AND_ANY_PRIOR_DIAGNOSIS_OF_A_RASOPATHY)) { + CucumberLogUtils.scenario.log("* * * * * TO DETERMINE ELIGIBILITY FOR THIS STUDY, WE NEED TO COLLECT INFORMATION ABOUT MEDICAL DIAGNOSES. THESE QUESTIONS ASK ABOUT GENERAL MEDICAL CONDITIONS, CANCER AND ANY PRIOR DIAGNOSIS OF A RASOPATHY. PLEASE COMPLETE THIS INFORMATION TO THE BEST OF YOUR KNOWLEDGE. * * * * *"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * HAVE YOU EVER BEEN DIAGNOSED WITH THE FOLLOWING CONDITIONS? SELECT ALL THAT APPLY. IF YOU DO NOT SEE THE EXACT CONDITION DIAGNOSED, PLEASE SELECT THE CLOSEST ANSWER. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(HAVE_YOU_EVER_BEEN_DIAGNOSED_WITH_THE_FOLLOWING_CONDITIONS)) { + CucumberLogUtils.scenario.log("* * * * * HAVE YOU EVER BEEN DIAGNOSED WITH THE FOLLOWING CONDITIONS? SELECT ALL THAT APPLY. IF YOU DO NOT SEE THE EXACT CONDITION DIAGNOSED, PLEASE SELECT THE CLOSEST ANSWER. * * * * *"); + dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithFollowingConditions).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * HAVE YOU EVER BEEN DIAGNOSED WITH CANCER? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(HAVE_YOU_EVER_BEEN_DIAGNOSED_WITH_CANCER)) { + CucumberLogUtils.scenario.log("* * * * * HAVE YOU EVER BEEN DIAGNOSED WITH CANCER? * * * * *"); + dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * HAVE YOU BEEN DIAGNOSED WITH A RASOPATHY SUCH AS NOONAN SYNDROME, NOONAN SYNDROME WITH MULTIPLE LENTIGINES, COSTELLO SYNDROME, CARDIOFACIOCUTANEOUS SYNDROME, LEGIUS SYNDROME, CAPILLARY ARTERIOVENOUS MALFORMATION SYNDROME, HEREDITARY GINGIVAL FIBROMATOSIS OR SYNGAP1 SYNDROME? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(HAVE_YOU_BEEN_DIAGNOSED_WITH_A_RASOPATHY)) { + CucumberLogUtils.scenario.log("* * * * * HAVE YOU BEEN DIAGNOSED WITH A RASOPATHY SUCH AS NOONAN SYNDROME, NOONAN SYNDROME WITH MULTIPLE LENTIGINES, COSTELLO SYNDROME, CARDIOFACIOCUTANEOUS SYNDROME, LEGIUS SYNDROME, CAPILLARY ARTERIOVENOUS MALFORMATION SYNDROME, HEREDITARY GINGIVAL FIBROMATOSIS OR SYNGAP1 SYNDROME? * * * * *"); + dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * WE KNOW THAT RASOPATHIES ARE A GROUP OF SYNDROMES THAT HAVE A GENETIC BASIS. IN ORDER TO HELP US DETERMINE ELIGIBILITY FOR THE RASOPATHIES STUDY, WE ALSO NEED TO KNOW ABOUT ANY GENETIC TESTING THAT HAS BEEN COMPLETED. WE WILL NEED A COPY OF ANY TEST RESULTS. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals("We know that RASopathies are a group of syndromes that have a genetic basis. In order to help us determine eligibility for the RASopathies Study, we also need to know about any genetic testing that has been completed. We will need a copy of any test results. ")) { + CucumberLogUtils.scenario.log("* * * * * WE KNOW THAT RASOPATHIES ARE A GROUP OF SYNDROMES THAT HAVE A GENETIC BASIS. IN ORDER TO HELP US DETERMINE ELIGIBILITY FOR THE RASOPATHIES STUDY, WE ALSO NEED TO KNOW ABOUT ANY GENETIC TESTING THAT HAS BEEN COMPLETED. WE WILL NEED A COPY OF ANY TEST RESULTS. * * * * *"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * HAVE ANY OF YOUR BIOLOGICAL RELATIVES BEEN DIAGNOSED WITH A RASOPATHY? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(HAVE_ANY_OF_YOUR_BIOLOGICAL_RELATIVES_BEEN_DIAGNOSED_WITH_A_RASOPATHY)) { + CucumberLogUtils.scenario.log("* * * * * HAVE ANY OF YOUR BIOLOGICAL RELATIVES BEEN DIAGNOSED WITH A RASOPATHY? * * * * *"); + dynamicLocator(ras_Screener_TestDataManager.haveAnyOfYourBiologicalRelativesBeenDiagnosedWithARasopathy).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * + * HAVE YOU EVER HAD GENETIC TESTING? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(HAVE_YOU_EVER_HAD_GENETIC_TESTING)) { + CucumberLogUtils.scenario.log("* * * * * HAVE YOU EVER HAD GENETIC TESTING? * * * * *"); + dynamicLocator(ras_Screener_TestDataManager.haveYouEverHadGeneticTesting).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * WE WILL NOW ASK A FEW REMAINING QUESTIONS REGARDING THIS STUDY. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(WE_WILL_NOW_ASK_A_FEW_REMAINING_QUESTIONS_REGARDING_THIS_STUDY)) { + CucumberLogUtils.scenario.log("* * * * * WE WILL NOW ASK A FEW REMAINING QUESTIONS REGARDING THIS STUDY. * * * * *"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * HOW DID YOU HEAR ABOUT THIS STUDY? IF A SPECIFIC HEALTH CARE PROVIDER REFERRED YOU TO THIS STUDY, PLEASE INCLUDE THEIR NAME IN THE CORRESPONDING TEXT BOX. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(HOW_DID_YOU_HEAR_ABOUT_THIS_STUDY)) { + CucumberLogUtils.scenario.log("* * * * * HOW DID YOU HEAR ABOUT THIS STUDY? IF A SPECIFIC HEALTH CARE PROVIDER REFERRED YOU TO THIS STUDY, PLEASE INCLUDE THEIR NAME IN THE CORRESPONDING TEXT BOX. * * * * *"); + CommonUtils.scrollIntoView(dynamicLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); + dynamicLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy); + rasopathyQuestionnairePage.dynamicLocatorForHowDidYouHearAboutStudyTextBoxes(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy).sendKeys(ras_Screener_TestDataManager.howDidYouHearAboutThisStudyOtherReason); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * HAVE YOU OR OTHER FAMILY MEMBERS EVER PARTICIPATED IN ANOTHER STUDY ON RASOPATHY AT ANOTHER MEDICAL INSTITUTION, UNIVERSITY, GOVERNMENT AGENCY OR OTHER SITE? * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(HAVE_YOU_OR_OTHER_FAMILY_MEMBERS_EVER_PARTICIPATED_IN_ANOTHER_STUDY_ON_RASOPATHY_AT_ANOTHER_MEDICAL_INSTITUTION_UNIVERSITY_GOVERNMENT_AGENCY_OR_OTHER_SITE)) { + CucumberLogUtils.scenario.log("* * * * * HAVE YOU OR OTHER FAMILY MEMBERS EVER PARTICIPATED IN ANOTHER STUDY ON RASOPATHY AT ANOTHER MEDICAL INSTITUTION, UNIVERSITY, GOVERNMENT AGENCY OR OTHER SITE? * * * * *"); + dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy).click(); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * WHAT ARE THE MAIN REASONS FOR PARTICIPATING IN THIS STUDY? SELECT ALL THAT APPLY. PLEASE ELABORATE ON THE REASON IN THE CORRESPONDING TEXTBOX. * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contentEquals(WHAT_ARE_THE_MAIN_REASONS_FOR_PARTICIPATING_IN_THIS_STUDY)) { + CucumberLogUtils.scenario.log("* * * * * WHAT ARE THE MAIN REASONS FOR PARTICIPATING IN THIS STUDY? SELECT ALL THAT APPLY. PLEASE ELABORATE ON THE REASON IN THE CORRESPONDING TEXTBOX. * * * * *"); + CommonUtils.scrollIntoView(dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); + dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy).click(); + rasopathyQuestionnairePage.dynamicLocatorForMainReasonForParticipatingInStudy(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy).sendKeys(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudyOtherReason); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + /** + * * * * * YOU ARE ALMOST DONE! * * * * + */ + else if (rasopathyQuestionnairePage.question.isDisplayed() && rasopathyQuestionnairePage.question.getText().contains(YOU_ARE_ALMOST_DONE)) { + CucumberLogUtils.scenario.log("* * * * * YOU ARE ALMOST DONE! * * * * *"); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + MiscUtils.sleep(3000); + CucumberLogUtils.logScreenshot(); + ServiceNow_Common_Methods.logOutOfNativeView(); + } + } catch (Exception e) { + CucumberLogUtils.scenario.log("* * * SCREENER COMPLETED * * *"); + break; + } + } + } + + /*** + * THIS METHOD WILL SELECT THE SCREENER FOR VERIFICATION ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE + */ + public void rasScreenerVerificationScenarioSelector(String sheetName) { + if (sheetName.contentEquals("screenerScenario1")) { + ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); + ras_screenerSubmissions_stepsImpl.verifying_RAS_Screener_Scenario_1_Data(sheetName); + } + } + + /*** + * THIS METHOD WILL SELECT THE CONSENT FLOW ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE + */ + public void rasConsentScenarioSelector(String sheetName) { + MiscUtils.sleep(20000); + ras_Screener_TestDataManager.dataInitializerRasScreener(sheetName); + ras_screenerSubmissions_stepsImpl.nativeViewConsentFlowProcessScenario1(sheetName); + } + + /*** + * THIS METHOD WILL SELECT THE IIQ SUBMISSION ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE + */ + public void iiqScenarioSelector(String sheetNameIiq) { + if (sheetNameIiq.contentEquals("IIQScenario1")) { + iiq_TestDataManager.dataInitializerIIQ(sheetNameIiq); + ras_screenerSubmissions_stepsImpl.rasScreenerIIQFormScenario1(); + } else if (sheetNameIiq.contentEquals("IIQScenario2")) { + iiq_TestDataManager.dataInitializerIIQ(sheetNameIiq); + rasScenario2StepsImpl.rasScreenerIIQFormScenario2(); + } else if (sheetNameIiq.contentEquals("IIQScenario3")) { + iiq_TestDataManager.dataInitializerIIQ(sheetNameIiq); + rasScenario3StepsImpl.rasScreenerIIQFormScenario3(); + } else if (sheetNameIiq.contentEquals("IIQScenario4")) { + iiq_TestDataManager.dataInitializerIIQ(sheetNameIiq); + rasScenario4StepsImpl.rasScreenerIIQFormScenario4(); + } + } + + /*** + * THIS METHOD WILL SELECT THE SURVEY SUBMISSION ACCORDING TO THE SHEET CHOSEN IN THE FEATURE FILE + */ + public void rasSurveyScenarioSelector(String sheetName) { + if (sheetName.contentEquals("RASSurveyScenario1")) { + ras_Survey_TestDataManager.dataInitializerRasSurvey(sheetName); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartOne(); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartTwo(); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartThree(); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartFour(); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartFive(); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartSix(); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartSeven(); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartEight(); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartNine(); + ras_screenerSubmissions_stepsImpl.rasScreenerSurveyScenario1PartTen(); + } else if (sheetName.contentEquals("RASSurveyScenario2")) { + ras_Survey_TestDataManager.dataInitializerRasSurvey(sheetName); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartOne(); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartTwo(); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartThree(); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartFour(); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartFive(); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartSix(); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartSeven(); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartEight(); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartNine(); + rasScenario2StepsImpl.rasScreenerSurveyScenario2PartTen(); + } else if (sheetName.contentEquals("RASSurveyScenario3")) { + ras_Survey_TestDataManager.dataInitializerRasSurvey(sheetName); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartOne(); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartTwo(); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartThree(); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartFour(); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartFive(); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartSix(); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartSeven(); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartEight(); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartNine(); + rasScenario3StepsImpl.rasScreenerSurveyScenario3PartTen(); + } else if (sheetName.contentEquals("RASSurveyScenario4")) { + ras_Survey_TestDataManager.dataInitializerRasSurvey(sheetName); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartOne(); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartTwo(); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartThree(); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartFour(); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartFive(); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartSix(); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartSeven(); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartEight(); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartNine(); + rasScenario4StepsImpl.rasScreenerSurveyScenario4PartTen(); + } + } + + /*** + * THIS METHOD WILL LOG IN WITH USER NAME AND PASSWORD DEFINED IN FEATURE FILE + */ + public void logsInViaOktaWithUsernameAndPassword(String username, String password) { + + MiscUtils.sleep(1000); + CommonUtils.waitForVisibility(myRASLoginPage.loginToMyRASButton); + CommonUtils.clickOnElement(myRASLoginPage.loginToMyRASButton); + + try { + oktaLoginPage.usernameTxtBox.clear(); + oktaLoginPage.usernameTxtBox.sendKeys(username); + CommonUtils.clickOnElement(oktaLoginPage.nextButton); + MiscUtils.sleep(1000); + oktaLoginPage.passwordTxtBox.sendKeys(password); + MiscUtils.sleep(1000); + CommonUtils.clickOnElement(oktaLoginPage.loginBtn); + MiscUtils.sleep(2000); + CommonUtils.waitForVisibility(myRASHomePage.warningAgreeButton); + CucumberLogUtils.logScreenshot(); + myRASHomePage.warningAgreeButton.click(); + } catch (NoSuchElementException e) { + CommonUtils.sendKeysToElement(oktaLoginPage.passwordTxtBox, password); + MiscUtils.sleep(1000); + CommonUtils.clickOnElement(oktaLoginPage.loginBtn); + MiscUtils.sleep(2000); + CommonUtils.waitForVisibility(myRASHomePage.warningAgreeButton); + CucumberLogUtils.logScreenshot(); + myRASHomePage.warningAgreeButton.click(); + } + } + + /*** + * USE THIS METHOD TO CLICK ON ELIGIBILITY QUESTIONNAIRE + */ + + public void clicksOnEligibilityQuestionnaireToBeginQuestionnaire(String text) { + CommonUtils.waitForVisibility(MyRASHomePage.dynamicModuleLocator(text)); + MyRASHomePage.dynamicModuleLocator(text).click(); + } + + /*** + * USE THIS METHOD TO CLICK ON RAS SURVEY QUESTIONNAIRE + */ + public void clicksOnTheRasSurveyForm() { + CommonUtils.waitForVisibility(myRASHomePage.rasoptathyRasSurveyButton); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyButton); + MiscUtils.sleep(30000); + CucumberLogUtils.logScreenshot(); + CommonUtils.waitForClickability(myRASHomePage.rasoptathyRasSurveyCloseButton); + CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyCloseButton); + CommonUtils.waitForVisibility(myRASHomePage.rasoptathyRasSurveyButton); + CucumberLogUtils.logScreenshot(); + MiscUtils.sleep(5000); + CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyButton); + CommonUtils.waitForClickability(myRASHomePage.rasoptathyRasSurveyGoButton); + MiscUtils.sleep(5000); + } + + /*** + * USE THIS METHOD TO CLICK ON RAS IIQ FORM + */ + public void clicksOnTheIiqForm() { + CommonUtils.waitForVisibility(myRASHomePage.rasoptathyIiqButton); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(myRASHomePage.rasoptathyIiqButton); + MiscUtils.sleep(30000); + CucumberLogUtils.logScreenshot(); + CommonUtils.waitForClickability(myRASHomePage.rasoptathyRasSurveyCloseButton); + CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyCloseButton); + CommonUtils.waitForVisibility(myRASHomePage.rasoptathyIiqButton); + CucumberLogUtils.logScreenshot(); + MiscUtils.sleep(5000); + CommonUtils.clickOnElement(myRASHomePage.rasoptathyIiqButton); + CommonUtils.waitForClickability(myRASHomePage.rasoptathyRasSurveyGoButton); + MiscUtils.sleep(5000); + } + + /*** + * USE THIS METHOD TO ENTER EMAIL AND PIN + */ + public void aParticipantEntersUsernameUndPin(String email) { + CucumberLogUtils.logScreenshot(); + CommonUtils.waitForVisibility(myRASHomePage.rasoptathyRasSurveyPin); + String pin = myRASHomePage.rasoptathyRasSurveyPin.getText(); + CommonUtils.clickOnElement(myRASHomePage.rasoptathyRasSurveyGoButton); + CommonUtils.switchToNextWindow(); + MiscUtils.sleep(3000); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicTextBoxLocator("Email")); + rasopathyQuestionnairePage.dynamicTextBoxLocator("Email").sendKeys(email); + rasopathyQuestionnairePage.pinTextBox.sendKeys(pin); + CucumberLogUtils.logScreenshot(); + MiscUtils.sleep(3000); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + MiscUtils.sleep(3000); + CucumberLogUtils.logScreenshot(); + } + + /*** + * USE THIS METHOD TO ENTER EMAIL AND PIN IN THE IIQ SAMPLE FORM + */ + public void aParticipantEntersUsernameUndPinSample(String email, String pin) { + WebDriverUtils.webDriver.get(CHARMS_Data_File_Path_Constants.IIQ_SAMPLE_FORM); + CucumberLogUtils.logScreenshot(); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicTextBoxLocator("Email")); + rasopathyQuestionnairePage.dynamicTextBoxLocator("Email").sendKeys(email); + rasopathyQuestionnairePage.pinTextBox.sendKeys(pin); + CucumberLogUtils.logScreenshot(); + MiscUtils.sleep(3000); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + MiscUtils.sleep(3000); + CucumberLogUtils.logScreenshot(); + } + + /*** + * USE THIS METHOD TO REWIND THE SURVEY FORM + */ + public void theParticipantWillBeAbleToRewindTheForm() { + MiscUtils.sleep(2000); + while (rasopathyQuestionnairePage.rasSurveyPreviousButton.isDisplayed()) { + ras_screenerSubmissions_stepsImpl.clickOnSurveyPreviousButton(); + } + } + + /*** + * USE THIS METHOD FOR NATIVE VIEW CONSENT FLOW PROCESS SCENARIO 1 + */ + public void nativeViewConsentFlowProcessScenario1(String sheetName) { + ServiceNow_Login_Methods.nativeViewSideDoorLogin(); + MiscUtils.sleep(2000); + NativeView_SideDoor_Dashboard_Page.filterNavigatorTextBox.sendKeys("All Participant Details"); + MiscUtils.sleep(3000); + CommonUtils.clickOnElement(NativeView_SideDoor_Dashboard_Page.allParticipantDetailsLink); + MiscUtils.sleep(3000); + CommonUtils.switchToFrame(NativeView_SideDoor_Dashboard_Page.nativeViewiFrame); + MiscUtils.sleep(2000); + CucumberLogUtils.logScreenshot(); + if (sheetName.contentEquals("screenerScenario1")) { + CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); + } else if (sheetName.contentEquals("screenerScenario2")) { + CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); + } else if (sheetName.contentEquals("screenerScenario3")) { + CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); + } else if (sheetName.contentEquals("screenerScenario4")) { + CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); + } + MiscUtils.sleep(1000); + if (CommonUtils.isElementDisplayed(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton)) { + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); + } + MiscUtils.sleep(2000); + CommonUtils.waitForVisibility(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsSubmitForEligibilityButton); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsSubmitForEligibilityButton); + CommonUtils.waitForVisibility(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsMarkEligibleButton); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsMarkEligibleButton); + CommonUtils.waitForVisibility(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentAddedText); + CucumberLogUtils.logScreenshot(); + CommonUtils.assertEqualsWithMessage(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentAddedText.getText(), CHARMSRASScreenerConstants.CONSENT_ADDED_TEXT, "---- VERIFYING SCREENER RECORD RASOPATHY HISTORY DATA ----"); + + /** + * BEGINNING: CONSENT FLOW PROCESS + */ + JavascriptUtils.scrollIntoView(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentsTab); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentsTab); + CommonUtils.hoverOverElement(participantDetailsPage.consentStatusText); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantDetailsPage.nativeViewPatientDetailsConsentsPreviewButton); + CommonUtils.waitForVisibility(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); + MiscUtils.sleep(500); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); + CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeCalendar); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeCalendar); + CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeAcceptButton); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleDateCalendar); + CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleVerionCalendar); + CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); + CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentResponseTypeDropDown, 2); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentDateCalendar); + CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallScheduleTimeTodayButton); + CommonUtils.sendKeys(nativeViewCHARMSParticipantConsentPage.rasStudyConsentByTextBox, CHARMSRASScreenerConstants.CONSENTED_BY_USER_NAME); + CommonUtils.sendKeys(nativeViewCHARMSParticipantConsentPage.rasStudyConsentByTextBox, Keys.ENTER); + CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCurrentDropDown, 1); + CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentConsentAssentStatusDropDown, 4); + CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureSpecimensAndDataDropDown, 4); + CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureUseCollaboratorsDropDown, 4); + CommonUtils.selectDropDownValue(nativeViewCHARMSParticipantConsentPage.rasStudyConsentFutureIdentifiableUseCollaboratorsDropDown, 4); + MiscUtils.sleep(500); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCallCompleteButton); + MiscUtils.sleep(1000); + CommonUtils.waitForClickability(nativeViewCHARMSParticipantConsentPage.rasStudyConsentAddFileButton); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentAddFileButton); + CucumberLogUtils.logScreenshot(); + MiscUtils.sleep(5000); + JavascriptUtils.uploadFileToHiddenFieldWithInputTag(nativeViewCHARMSParticipantConsentPage.rasStudyConsentChoseFileButton, COVIDConstants.IIQ_STUDY_DOCUMENTATION_PDF_PATH); + MiscUtils.sleep(2000); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentChoseFileCloseButton); + CommonUtils.waitForClickability(nativeViewCHARMSParticipantConsentPage.rasStudyConsentHardCopyReceivedButton); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentHardCopyReceivedButton); + CommonUtils.waitForClickability(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCompletedConsentButton); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantConsentPage.rasStudyConsentCompletedConsentButton); + CommonUtils.waitForVisibility(nativeViewCHARMSParticipantConsentPage.rasStudyConsentParticipantRecordsReadyToProgressMessage); + CommonUtils.assertEqualsWithMessage(nativeViewCHARMSParticipantConsentPage.rasStudyConsentParticipantRecordsReadyToProgressMessage.getText(), CHARMSRASScreenerConstants.PARTICIPANT_READY_TO_PROGRESS_TEXT, "---- VERIFYING PARTICIPANT RECORD READY TO PROGRESS MESSAGE ----"); + CommonUtils.assertEqualsWithMessage(nativeViewCHARMSParticipantConsentPage.rasStudyConsentConsentRecordCompletedMessageMessage.getText(), CHARMSRASScreenerConstants.CONSENT_RECORD_COMPLETED_TEXT, "---- VERIFYING CONSENT RECORD COMPLETED AND FAMILY RECORD IS NOW ACTIVE! MESSAGE ----"); + MiscUtils.sleep(500); + CucumberLogUtils.logScreenshot(); + ServiceNow_Common_Methods.logOutOfNativeView(); + } + + /*** + * USE THIS METHOD WILL COMPLETE THE IIQ FORM SCENARIO 1 + */ + public void rasScreenerIIQFormScenario1() { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(14)); + CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisIsACopyForLowerEnvironmentsText, myRASSurveyPage.dynamicTopText(14).getText(), "-- VERIFYING THIS IS THE COPY FOR LOWER ENVIRONMENTS TEXT --"); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(16)); + CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.someOfThisInformationText, myRASSurveyPage.dynamicTopText(16).getText(), "-- VERIFYING SOME OF THIS INFORMATION TEXT --"); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(35)); + CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisFirstSectionOfTheQuestionnaireText, myRASSurveyPage.dynamicTopText(35).getText(), "-- VERIFYING THIS FIRST QUESTION OF THE QUESTIONNAIRE TEXT --"); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton).click(); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton).click(); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForClickability(myRASIIQFormPage.screenerIiqFormForWhichSexYouIdentifyRadioButton); + myRASIIQFormPage.screenerIiqFormForWhichSexYouIdentifyRadioButton.click(); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + myRASIIQFormPage.screenerIiqFormForWhichSexYouIdentifyRadioButton.click(); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(19)); + CommonUtils.waitForClickability(dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(93)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.areYouOfAshkenazyJewishDescentRadioButton)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(20)); + MiscUtils.sleep(1000); + CommonUtils.clickOnElement(dynamicLocator(iiq_TestDataManager.areYouAdoptedRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.clickOnElement(dynamicLocator(iiq_TestDataManager.areYouAdoptedRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(21)); + MiscUtils.sleep(1000); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.iiqWereYouRaisedNoOption); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + if (!rasopathyQuestionnairePage.calendarYearTextBox.isDisplayed()) { + CommonUtils.clickOnElement(rasopathyQuestionnairePage.iiqWereYouRaisedNoOption); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + try { + rasopathyQuestionnairePage.calendarYearTextBox.clear(); + rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(iiq_TestDataManager.whatIsYourDateOfBirthYearDropDown); + CommonUtils.selectDropDownValue(iiq_TestDataManager.whatIsYourDateOfBirthMonthDropDown, rasopathyQuestionnairePage.calendarMonthDropDown); + rasopathyQuestionnairePage.iIQcalendarDayOption.click(); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + rasopathyQuestionnairePage.calendarYearTextBox.clear(); + rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(iiq_TestDataManager.whatIsYourDateOfBirthYearDropDown); + CommonUtils.selectDropDownValue(iiq_TestDataManager.whatIsYourDateOfBirthMonthDropDown, rasopathyQuestionnairePage.calendarMonthDropDown); + rasopathyQuestionnairePage.iIQcalendarDayOption.click(); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_CITY_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornCityTextBox); + rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_STATE_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornStateTextBox); + rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_COUNTRY_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornCountryTextBox); + rasopathyQuestionnairePage.iIQAddressDontKnowTextBox.sendKeys(iiq_TestDataManager.whereWereYouBornDontKnowTextBox); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_CITY_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornCityTextBox); + rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_STATE_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornStateTextBox); + rasopathyQuestionnairePage.dynamicTextBoxLocator(iiq_Constants.WHERE_WERE_YOU_BORN_COUNTRY_TEXT_BOX_QUESTION).sendKeys(iiq_TestDataManager.whereWereYouBornCountryTextBox); + rasopathyQuestionnairePage.iIQAddressDontKnowTextBox.sendKeys(iiq_TestDataManager.whereWereYouBornDontKnowTextBox); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(27)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1, 2)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(28)); + MiscUtils.sleep(2000); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1, 4)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(29)); + MiscUtils.sleep(500); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsYourFammilysReligiousBackgroundCheckBox)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsYourFammilysReligiousBackgroundCheckBox)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(31)); + MiscUtils.sleep(1000); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsYourMainOccupationRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsYourMainOccupationRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(95)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(33)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormThisSectionAsksDetailedMedicalHistoryText); + CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_ASKS_YOU_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionAsksDetailedMedicalHistoryText.getText(), "-- VERIFYING THIS SECTION ASKS DETAILED MEDICAL HISTORY TEXT --"); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(47)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.wereYouConceivedUsingVitroRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.wereYouConceivedUsingVitroRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(37)); + MiscUtils.sleep(1000); + CommonUtils.clickOnElement(dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + if (!myRASSurveyPage.dynamicTopText(41).isDisplayed()) { + CommonUtils.clickOnElement(dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(41)); + MiscUtils.sleep(1000); + CommonUtils.clickOnElement(dynamicLocator(iiq_TestDataManager.areYourBiologicalParentsBloodRelatedRadioButton)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + if (!myRASSurveyPage.dynamicTopText(43).isDisplayed()) { + CommonUtils.clickOnElement(dynamicLocator(iiq_TestDataManager.areYourBiologicalParentsBloodRelatedRadioButton)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + try { + CommonUtils.waitForClickability(dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormFillOutBirthWeight); + CommonUtils.sendKeysToElement(myRASIIQFormPage.screenerIiqFormFillOutBirthWeight, iiq_TestDataManager.pleaseFillOutBirtWeightNumericTextBox); + MiscUtils.sleep(3000); + CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutBirtWeightUnitDropDown, myRASIIQFormPage.screenerIiqFormFillOutBirthWeightUnitDropDown); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadNumeticTextBox); + CommonUtils.sendKeysToElement(myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadNumeticTextBox, iiq_TestDataManager.pleaseFillOutHeadNumericTextBox); + CommonUtils.sendKeysToElement(myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadCircumferenceNumeticTextBox, iiq_TestDataManager.pleaseFillOutHeadCircumferenceNumericTextBox); + MiscUtils.sleep(3000); + CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutHeadUnitDropDown, myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadUnitDropDown); + CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutHeadCircumferenceUnitDropDown, myRASIIQFormPage.screenerIiqFormFillOutBirthLenghtHeadCircumferenceUnitDropDown); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText); + CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_WILL_ASK_ABOUT_CANCER_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText.getText(), "-- VERIFYING THIS SECTION WILL ASK ABOUT CANCER TEXT --"); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(62)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(67)); + MiscUtils.sleep(1000); + CommonUtils.clickOnElement(dynamicLocator(iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + if (!myRASIIQFormPage.screenerIiqFormFillOutCurrentHeightTextBox.isDisplayed()) { + CommonUtils.clickOnElement(dynamicLocator(iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + } + CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormFillOutCurrentHeightTextBox); + CommonUtils.sendKeysToElement(myRASIIQFormPage.screenerIiqFormFillOutCurrentHeightTextBox, iiq_TestDataManager.pleaseFillTheTableBelowWithHeightNumericTextBox); + MiscUtils.sleep(2000); + CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillTheTableBelowWithHeightUnitDropDown, myRASIIQFormPage.screenerIiqFormFillOutCurrentHeightUnitDropDown); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + MiscUtils.sleep(3000); + CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); + CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option1); + CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option2); + CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option3); + CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option4); + CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 3), iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn1Option5); + CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option1, myRASSurveyPage.dynamicDropDownTwo(1, 6)); + CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option2, myRASSurveyPage.dynamicDropDownTwo(2, 6)); + CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option3, myRASSurveyPage.dynamicDropDownTwo(3, 6)); + CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option4, myRASSurveyPage.dynamicDropDownTwo(4, 6)); + CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseCompleteTheTableBelowIndicatingYourWeightColumn2Option5, myRASSurveyPage.dynamicDropDownTwo(5, 6)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 9)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 9)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 9)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(4, 9)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(5, 9)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 12)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 12)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 12)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(4, 12)); + CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(5, 12)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(78)); + CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(78), iiq_TestDataManager.atWhatAgeWereYouAtTheHighestWeightTextBox); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(154)); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.haveYouSoughtMedicalAdviceRegardingFertilityRadioButton)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(iiq_TestDataManager.haveYouSoughtMedicalAdviceRegardingFertilityRadioButton)); + CucumberLogUtils.logScreenshot(); + } + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormYouAreAlmostDoneText); + CommonUtils.assertEqualsWithMessage(iiq_Constants.YOU_ARE_ALMOST_DONE_TEXT, myRASIIQFormPage.screenerIiqFormYouAreAlmostDoneText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); + CucumberLogUtils.logScreenshot(); + MiscUtils.sleep(3000); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); + MiscUtils.sleep(1000); + CucumberLogUtils.logScreenshot(); + ServiceNow_Common_Methods.logOutOfNativeView(); + } + + /*** + * USE THIS METHOD WILL COMPLETE THE RAS SURVEY SCENARIO 1 + */ + public void rasScreenerSurveyScenario1PartOne() { + CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThankYouForStartingText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thankYouForStartingTheRASSurveyAndFor, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THANK YOU FOR STARTING THE RAS SURVEY AND FOR YOUR TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThisQuestionMayTakeText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THIS QUESTIONNAIRE MAY TAKE YOU SEVERAL HOURS TO COMPLETE TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheFirstBlockText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE FIRST BLOCK OF QUESTIONS WILL COLLECT TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(1)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.toConfirmAreYouCompleting)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(58)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenIncluded)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutBirthAndNeonatalText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutNeonatalHistory, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT BIRTH AND NEONATAL TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalMotherCityTextBox); + int momAgeDropdownIndex = Integer.valueOf(ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalMotherAge) - 11; + int fatherDropDownIndex = Integer.valueOf(ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalFatherAge) - 11; + CommonUtils.sendKeysToElement(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalMotherCityTextBox, ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalMotherCity); + CommonUtils.clickOnElement(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalMotherUnsureRadioButton); + CommonUtils.selectDropDownValue(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalMotherYearsDropDown, momAgeDropdownIndex); + CommonUtils.sendKeysToElement(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalFatherCityTextBox, ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalFatherCity); + CommonUtils.clickOnElement(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalFatherUnsureRadioButton); + CommonUtils.selectDropDownValue(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalFatherYearsDropDown, fatherDropDownIndex); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(9)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(9)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(12)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(12)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(63)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(65)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyVaping)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(67)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(69)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyRecreationalDrugs)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(71)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); + CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancy); + JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 6)); + CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancyFather); + JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.whatIsTheHeightOfYourBiologicalMotherAndFatherText); + CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.whatIsTheHeightOfYourBiologicalMother); + JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 6)); + JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 10)); + CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.whatIsTheHeightOfYourBiologicalFather); + JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); + JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 10)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutHormoneRelatedGrowthText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetHormoneRelatedGrowth, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HORMONE RELATED GROWTH TEXT --"); + CucumberLogUtils.logScreenshot(); + } + + public void rasScreenerSurveyScenario1PartTwo() { + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(76)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(78)); + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutDevelopmentText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutDevelopment, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT DEVELOPMENT TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(84)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToWalkWithoutSupport)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(88)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(90)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(92)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(93)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + try { + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); + CucumberLogUtils.logScreenshot(); + } catch (NoSuchElementException e) { + e.printStackTrace(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); + CucumberLogUtils.logScreenshot(); + } + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + MiscUtils.sleep(2000); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(97)); + MiscUtils.sleep(2000); + } + + public void rasScreenerSurveyScenario1PartThree() { + //*** ATTACHING FILE CAN'T BE AUTOMATED IN QUATRICS. MANUAL TESTING WAS PERFORMED FOR UPLOADING A FILE ******* + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutHeartText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutHeart, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HEART TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(372)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByACardiologist)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(320)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyStructuralHeartIssues)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(100)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(12)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForClickability(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssues)); + CommonUtils.waitForVisibility(myRASSurveyPage.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssueText); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssues)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutRASopathyDiagnosesText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextTwoQuestionsWillAskAboutRASopathyDiagnoses, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT TWO QUESTIONS WILL ASK ABOUT RASOPATHY DIAGNOSES TEXT --"); + CucumberLogUtils.logScreenshot(); + } + + public void rasScreenerSurveyScenario1PartFour() { + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutMedicalHistoryText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGeneralMedicalHistory, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GENERAL MEDICAL HISTORY TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 4)); + JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 4)); + JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 4)); + JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 4)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(108)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnOperationOrBiopsy)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(110)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenHospitalizedForAnyReason)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutGiText); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGi, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GI TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); + CucumberLogUtils.logScreenshot(); + } + + public void rasScreenerSurveyScenario1PartFive() { + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(327)); + CommonUtils.clickOnElement(dynamicLocator(ras_Survey_TestDataManager.areYouToiletTrained)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); + CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyBowelMovementsDoYouHavePerWeek, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.whatIsTheLongestAmountOfTimeThatHasPassedText); + CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.whatIsTheLongestAmountOfTimeThatHasPassedWithout, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(153)); + CommonUtils.clickOnElement(dynamicLocator(ras_Survey_TestDataManager.ifYouAreNotYetAbleToUseTheToilet)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(351)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAProcedureTestOrStudyToEvaluate)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + } + + public void rasScreenerSurveyScenario1PartSix() { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(305)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBreathingAndTheLungs, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BREATHING AND THE LUNGS TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(380)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAPulmonologist)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(162)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadWheezingOrWhistling)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(163)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithReactiveAirwayDisease)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(164)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheEmergencyRoomForABreathing)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(165)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheHospitalForABreathing)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(330)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutOralHealthAndDental, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT ORAL HEALTH AND DENTAL HISTORY TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(166)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouReceiveRegularDentalCare)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(168)); + CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(168), ras_Survey_TestDataManager.whenDidYouLastVisitADentist); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(167)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.whatWasTheReasonForYourLastDentalVisitOption)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(169)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYourGumsBleedRegularlyWithToothBrushing)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(170)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYourTeethOrGumsHurtRegularly)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(171)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHavePeriodontalOrGumDisease)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(172)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouHadDentalSealantsPlaced)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(173)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouCurrentlyHaveCavities)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(174)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouPreviouslyHadAnyDentalFillings)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(175)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doesYourMouthUsuallyFeelDry)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(176)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateTheOverallHealth)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(177)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateYourDentalHygieneRoutine)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(178)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfSmell)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(179)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfTaste)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(180)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveJawOrTemporomandibularJointPain)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(181)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveFrequentHeadaches)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(182)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyOrthodonticTreatment)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(184)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyFacialOrDentalTrauma)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(186)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouHadElectiveJawSurgery)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(189)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(190)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(191)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyNumbnessInOrAroundYourMouth)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(192)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyMouthSores)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(193)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYourTeethFeelSensitiveToHotOrColdFoods)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(194)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveProblemsMovingYourLipsTongueOrMouth)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(195)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + String[] clickingOnOptionInMultiplePages = {ras_Survey_TestDataManager.haveYouHadTroublePronouncingAnyWords, + ras_Survey_TestDataManager.haveYouFeltThatYourSenseOfTasteHasWorsened, + ras_Survey_TestDataManager.haveYouHadPainfulAchingInYourMouth, + ras_Survey_TestDataManager.haveYouFoundItUncomfortableToEatAnyFoods, + ras_Survey_TestDataManager.areYouSelfConsciousBecauseOfYourTeeth, + ras_Survey_TestDataManager.haveYouFeltTenseBecauseOfProblems, + ras_Survey_TestDataManager.hasYourDietBeenUnsatisfactoryBecause, + ras_Survey_TestDataManager.haveYouHadToInterruptMealsBecauseOfProblems, + ras_Survey_TestDataManager.haveYouFoundItDifficultToRelaxBecause, + ras_Survey_TestDataManager.haveYouBeenABitEmbarrassedBecause, + ras_Survey_TestDataManager.haveYouBeenIrritableWithOtherPeopleBecause, + ras_Survey_TestDataManager.haveYouHadDifficultyDoingYourUsualJobs, + ras_Survey_TestDataManager.haveYouFeltThatLifeInGeneralIsLessSatisfying, + ras_Survey_TestDataManager.haveYouFeltThatLifeInGeneralIsLessSatisfying}; + for (int jjj = 196; jjj < 210; jjj++) { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(jjj)); + JavascriptUtils.clickByJS(dynamicLocator(clickingOnOptionInMultiplePages[jjj - 196])); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + } + } + + public void rasScreenerSurveyScenario1PartSeven() { + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(306)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutFluidBalance, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT FLUID BALANCE AND IF ANY FLUID BUILDS TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(331)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithALymphaticSystemIssue)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(332)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutTheKidneys, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT THE KIDNEYS TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(383)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANephrologist)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(329)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAKidneyProblem)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(309)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutHairAndSkinQualities, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT HAIR AND SKIN QUALITIES TEXT --"); + CucumberLogUtils.logScreenshot(); + } + + public void rasScreenerSurveyScenario1PartEight() { + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(385)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByADermatologist)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(4)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(4)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(221)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.isTheTextureOrAmountOfYourHairSimilar)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(223)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(224)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyHemangiomas)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(225)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(310)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutSkeletalConditions, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT SKELETAL CONDITIONS TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(387)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnOrthopaedicSurgeon)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(226)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(6)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(352)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyIssuesWithCurvingOfTheSpine)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(231)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.hasYourNeckBeenDescribedAsShortOrWebbed)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(353)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithJointIssues)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(311)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBloodDisorders, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BLOOD DISORDERS TEXT --"); + CucumberLogUtils.logScreenshot(); + } + + public void rasScreenerSurveyScenario1PartNine() { + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(389)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAHematologist)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(354)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveIssuesWithBleedingOrBruising)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(355)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyKnownBloodDisorders)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(238)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(8)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(356)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfFrequentInfections)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(391)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnImmunologist)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(357)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnAutoimmuneDisorder)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(312)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutNervousSystem, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT NERVOUS SYSTEM TEXT --"); + CucumberLogUtils.logScreenshot(); + } + + public void rasScreenerSurveyScenario1PartTen() { + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(393)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANeurologist)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(358)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAStructuralBrainAbnormality)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(359)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfSeizures)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(395)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAPsychiatrist)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(360)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithABehavioral)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(249)); + CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(249), ras_Survey_TestDataManager.pleaseListAndDescribeAnyAdditionalNeurologicConditions); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(313)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutVisionAndHearing, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT VISION AND HEARING TEXT --"); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(250)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithPtosis)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(361)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyIssuesWithYourVision)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(253)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(254)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedStabismus)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(256)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedNystagmus)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(362)); + JavascriptUtils.clickByJS(dynamicLocator(ras_Survey_TestDataManager.haveYouExperiencedHearingLoss)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(260)); + CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(4)); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(297)); + CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(297), ras_Survey_TestDataManager.ifThereAreAnyOtherHealthIssues); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(298)); + CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.youAreAlmostDoneSurvey, myRASSurveyPage.dynamicTopText(298).getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); + MiscUtils.sleep(1000); + CucumberLogUtils.logScreenshot(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); + MiscUtils.sleep(3000); + CucumberLogUtils.logScreenshot(); + MiscUtils.sleep(1000); + ServiceNow_Common_Methods.logOutOfNativeView(); + } + + /*** + * THIS METHOD VERIFIES RAS SCREENER SCENARIO 1 DATA IN NATIVE VIEW + */ + public void verifying_RAS_Screener_Scenario_1_Data(String sheetName) { + ServiceNow_Login_Methods.nativeViewSideDoorLogin(); + MiscUtils.sleep(2000); + NativeView_SideDoor_Dashboard_Page.filterNavigatorTextBox.sendKeys("All Participant Details"); + MiscUtils.sleep(3000); + CommonUtils.clickOnElement(NativeView_SideDoor_Dashboard_Page.allParticipantDetailsLink); + MiscUtils.sleep(3000); + CommonUtils.switchToFrame(NativeView_SideDoor_Dashboard_Page.nativeViewiFrame); + CommonUtils.waitForVisibility(nativeViewCHARMSDashboardPage.rasStudyParticipantsDetailsMenu); + CucumberLogUtils.logScreenshot(); + if (sheetName.contentEquals("screenerScenario1")) { + CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); + } else if (sheetName.contentEquals("screenerScenario2")) { + CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.firstName + " " + ras_Screener_TestDataManager.lastName)); + } else if (sheetName.contentEquals("screenerScenario3")) { + CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); + } else if (sheetName.contentEquals("screenerScenario4")) { + CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); + CucumberLogUtils.logScreenshot(); + CommonUtils.clickOnElement(NativeViewCHARMSDashboardPage.nativeViewnewScreenerReceivedLocator(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast)); + } + MiscUtils.sleep(1000); + CucumberLogUtils.scenario.log("---- VERIFYING PARTICIPANT RECORD PREVIEW DATA ----"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.firstNameRecordPreviewField), ras_Screener_TestDataManager.firstName, "-- VERIFYING PREVIEW RECORD FIRST NAME --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.lastNameRecordPreviewField), ras_Screener_TestDataManager.lastName, "-- VERIFYING PREVIEW RECORD LAST NAME --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.middleNameRecordPreviewField), ras_Screener_TestDataManager.middleInitial, "-- VERIFYING PREVIEW RECORD MIDDLE NAME --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactHomePhoneRecordPreviewField), ras_Screener_TestDataManager.homePhoneNumber, "-- VERIFYING PREVIEW RECORD CONTACT HOME PHONE NUMBER --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactEmailRecordPreviewField), ras_Screener_TestDataManager.emailAddress, "-- VERIFYING PREVIEW RECORD CONTACT EMAIL ADDRESS --"); + CucumberLogUtils.logScreenshot(); + if (CommonUtils.isElementDisplayed(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton)) { + CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); + } + CucumberLogUtils.scenario.log("---- VERIFYING PARTICIPANT NAME DATA ----"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(webDriver.findElement(By.xpath("//select[@name='x_naci_family_coho_family_history_details.relationship_to_you']"))), "Proband", "-- VERIFYING RELATIONSHIP TO PROBAND --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.nameTextBox), ras_Screener_TestDataManager.firstName + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.lastName, "-- VERIFYING FULL NAME --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.firstNameTextBox), ras_Screener_TestDataManager.firstName, "-- VERIFYING FIRST NAME --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.middleInitialTextBox), ras_Screener_TestDataManager.middleInitial, "-- VERIFYING MIDDLE INITIAL --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.lastNameTextBox), ras_Screener_TestDataManager.lastName, "-- VERIFYING LAST NAME --"); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- VERIFYING PARTICIPANT DEMOGRAPHICS DATA ----"); + CommonUtils.clickOnElement(participantDetailsPage.demographicsTab); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(participantDetailsPage.biologicalGenderDropDown), ras_Screener_TestDataManager.sexAssignedAtBirthOption, "-- VERIFYING BIOLOGICAL GENDER --"); + Hooks.softAssert.assertEquals(participantDetailsPage.participantRacePreferNotToAnswerOption.getText(), ras_Screener_TestDataManager.whatIsYourRace, "-- VERIFYING RACE --"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(participantDetailsPage.ethnicityDropDownOption), ras_Screener_TestDataManager.whatIsYourEthnicity, "-- VERIFYING ETHNICITY --"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(participantDetailsPage.isParticipantAdoptedDropDown), ras_Screener_TestDataManager.areYouAdoptedOption, "-- VERIFYING IF THE PARTICIPANT IS ADOPTED --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.dateOfBirthTextBox), CommonUtils.convertDate(ras_Screener_TestDataManager.whatIsYourDateOfBirth), "-- VERIFYING DATE OF BIRTH --"); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- VERIFYING PARTICIPANT CONTACT INFORMATION DATA ----"); + CommonUtils.clickOnElement(participantDetailsPage.contactInfoTab); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactStreetAddress), ras_Screener_TestDataManager.street + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.street2, "-- VERIFYING CONTACT STREET ADDRESS --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactState), ras_Screener_TestDataManager.state, "-- VERIFYING CONTACT STATE --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactCity), ras_Screener_TestDataManager.city, "- VERIFYING CONTACT CITY --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactZipCode), ras_Screener_TestDataManager.zipcode, "-- VERIFYING ZIP CODE --"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(participantDetailsPage.contactCountryDropDown), ras_Screener_TestDataManager.countryOption, "-- VERIFYING CONTACT COUNTRY --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactEmailAddress), ras_Screener_TestDataManager.emailAddress, "-- VERIFYING CONTACT EMAIL ADDRESS --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactHomePhone), ras_Screener_TestDataManager.homePhoneNumber, "-- VERIFYING CONTACT HOME PHONE --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactCellPhone), ras_Screener_TestDataManager.cellPhoneNumber, "-- VERIFYING CONTACT CELL PHONE --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactWorkPhone), ras_Screener_TestDataManager.workPhoneNumber, "-- VERIFYING CONTACT WORK PHONE --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(participantDetailsPage.contactPreferredPhone), ras_Screener_TestDataManager.cellPhoneNumber, "-- VERIFYING PREFERRED PHONE --"); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- OPENING PARTICIPANT STUDIES RECORD ----"); + JavascriptUtils.scrollIntoView(participantDetailsPage.participantStudiesTab); + CommonUtils.clickOnElement(participantDetailsPage.participantStudiesTab); + CucumberLogUtils.logScreenshot(); + CommonUtils.hoverOverElement(participantDetailsPage.dynamicRecordButtonLocator("Eligible")); + CommonUtils.waitForVisibility(participantDetailsPage.participantStudiesInfoButton); + CommonUtils.clickOnElement(participantDetailsPage.participantStudiesInfoButton); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- NAVIGATING TO RAS SCREENER TABLE ----"); + CommonUtils.waitForClickability(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); + CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); + CucumberLogUtils.logScreenshot(); + CommonUtils.waitForClickability(nativeViewCHARMSParticipantStudyPage.participantStudyScreenerInfoButton); + CommonUtils.clickOnElement(nativeViewCHARMSParticipantStudyPage.participantStudyScreenerInfoButton); + + CucumberLogUtils.scenario.log("---- VERIFYING RAS SCREENER PREVIEW RECORD DATA ----"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.screenerPreviewFamilyMemberRecordField), ras_Screener_TestDataManager.firstName + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.lastName, "-- VERIFYING SCREENER PREVIEW RECORD FAMILY MEMBER RECORD NAME --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.screenerPreviewContactEmailAddressField), ras_Screener_TestDataManager.emailAddress, "-- VERIFYING SCREENER PREVIEW RECORD CONTACT EMAIL ADDRESS FIELD --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.screenerPreviewStudyField), ras_Screener_Constants.RAS_STUDY, "-- VERIFYING SCREENER PREVIEW STUDY FIELD --"); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- NAVIGATING TO RAS SCREENER TABLE ----"); + CommonUtils.waitForClickability(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); + CommonUtils.clickOnElement(nativeViewCHARMSDashboardPage.rasStudyOpenRecordButton); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- VERIFYING SCREENER RECORD NAME AND CONTACT INFORMATION DATA ----"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(participantDetailsPage.vitalStatusYesDropDownOption), "Alive", "-- VERIFYING VITAL STATUS --"); + CommonUtils.clickOnElement(ScreenerRecordTablePage.dynamicTabLocatorUsingExactText("Contact Information")); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.screenerStudyField), ras_Screener_Constants.RAS_STUDY, "-- VERIFYING STUDY FIELD --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.familyMemberRecordField), ras_Screener_TestDataManager.firstName + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.lastName, "-- VERIFYING FAMILY MEMBER RECORD FIELD --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactEmailField), ras_Screener_TestDataManager.emailAddress, "-- VERIFYING CONTACT EMAIL FIELD --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactHomePhoneField), ras_Screener_TestDataManager.homePhoneNumber, "-- VERIFYING CONTACT HOME PHONE NUMBER --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactCellPhoneField), ras_Screener_TestDataManager.cellPhoneNumber, "-- VERIFYING CONTACT CELL PHONE NUMBER --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactWorkPhoneField), ras_Screener_TestDataManager.workPhoneNumber, "-- VERIFYING CONTACT WORK PHONE NUMBER --"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.contactCountryDropDown), ras_Screener_TestDataManager.countryOption, "-- VERIFYING COUNTRY CONTACT FIELD --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactStateField), ras_Screener_TestDataManager.state, "-- VERIFYING STATE --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactStreetAddressField), ras_Screener_TestDataManager.street + ras_Screener_Constants.SPACE + ras_Screener_TestDataManager.street2, "-- VERIFYING CONTACT STREET ADDRESS --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactCityField), ras_Screener_TestDataManager.city, "-- VERIFYING CONTACT CITY --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.contactZipCodeField), ras_Screener_TestDataManager.zipcode, "-- VERIFYING ZIP CODE --"); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- VERIFYING RAS SCREENER TABLE DEMOGRAPHICS INFORMATION DATA ----"); + CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("Demographics")); + Hooks.softAssert.assertEquals(screenerRecordTablePage.demographicsParticipantRacePreferNotToAnswerOption.getText(), ras_Screener_TestDataManager.whatIsYourRace, "-- VERIFYING RACE OF PARTICIPANT --"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.demographicsBiologicalGenderDropDown), ras_Screener_TestDataManager.sexAssignedAtBirthOption, "-- VERIFYING BIOLOGICAL GENDER --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.demographicsDateOfBirthField), ras_Screener_TestDataManager.whatIsYourDateOfBirth, "-- VERIFYING DATE OF BIRTH --"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.demographicsEthnicityDropDown), ras_Screener_TestDataManager.whatIsYourEthnicity, "-- VERIFYING ETHNICITY --"); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- VERIFYING RAS SCREENER TABLE RASOPATHY HISTORY DATA ----"); + CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("RASopathy History")); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.rasopathyHistoryHaveYouBeenDiagnosedWithARasopathyDropDown), ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy, "-- VERIFYING IF PARTICIPANT HAS BEEN DIAGNOSED WITH A RASOPATHY --"); + Hooks.softAssert.assertEquals(screenerRecordTablePage.rasopathyHistoryNeverDiagnosedWithAnyOfTheseConditions.getText(), ras_Screener_TestDataManager.haveYouBeenDiagnosedWithFollowingConditions, "-- VERIFYING IF CANDIDATE HAS BEEN DIAGNOSED WITH ANY CONDITIONS --"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.rasopathyHistoryHaveAnyOfYourBiologicalRelativesBeenDiagnosedWithARasopathyDropDown), ras_Screener_TestDataManager.haveAnyOfYourBiologicalRelativesBeenDiagnosedWithARasopathy, "-- VERIFYING IF ANY OF BIOLOGICAL RELATIVES BEEN DIAGNOSED WITH A RASOPATHY --"); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- VERIFYING RAS SCREENER TABLE CANCER HISTORY ----"); + CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("Cancer History")); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.cancerHistoryHasAPhysicianEverDiagnosedParticipantWithCancerDropDown), ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer, "-- VERIFYING IF PARTICIPANT HAS BEEN DIAGNOSED WITH CANCER --"); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- VERIFYING RAS SCREENER TABLE GENETIC TESTING HISTORY ----"); + CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("Genetic Testing History")); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.geneticTestingHistoryHasTheParticipantEverHadGeneticTestingDropDown), ras_Screener_TestDataManager.haveYouEverHadGeneticTesting, "-- VERIFYING IF PARTICIPANT HAS HAD GENETIC TESTING --"); + CucumberLogUtils.logScreenshot(); + + CucumberLogUtils.scenario.log("---- VERIFYING RAS SCREENER TABLE FINAL INFORMATION ----"); + CommonUtils.clickOnElement(screenerRecordTablePage.dynamicLocatorForTabs("Final Information")); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.finalInformationHowDidYouHearAboutThisStudyDropDown), ras_Screener_TestDataManager.howDidYouHearAboutThisStudy, "-- VERIFYING HOW DID PARTICIPANT HEAR ABOUT THE STUDY --"); + Hooks.softAssert.assertEquals(CommonUtils.getAttributeValueOfValueAttribute(screenerRecordTablePage.finalInformationHowDidYouHearAboutThisStudyPleaseSpecifyTextBox), ras_Screener_TestDataManager.howDidYouHearAboutThisStudyOtherReason, "-- VERIFYING HOW DID YOU PARTICIPANT HEAR ABOUT THE STUDY OTHER REASONS --"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.finalInformationHasParticipantOrAnyFamilyMemberParticipatedInAnyCancerStudyDropDown), ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy, "-- VERIFYING IF PARTICIPANT OR FAMILY MEMBER HAVE PARTICIPATED IN CANCER STUDY --"); + Hooks.softAssert.assertEquals(screenerRecordTablePage.finalInformationMainReasonsForParticipatingInThisStudyOtherOption.getText(), ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy, "-- VERIFYING MAIN REASONS FOR PARTICIPATING IN STUDY --"); + Hooks.softAssert.assertEquals(screenerRecordTablePage.finalInformationMainReasonsForParticipatingInThisStudyOtherReasonsField.getText(), ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudyOtherReason, "-- VERIFYING MAIN REASONS FOR PARTICIPATING IN STUDY FIELD --"); + Hooks.softAssert.assertEquals(CommonUtils.getTextOfSelectedDropDownOption(screenerRecordTablePage.finalInformationAreYouAParticipantInAnyOtherResearchStudyOrRegistryGroupDropDown), ras_Screener_TestDataManager.areYouAParticipantInOtherStudyGroup, "-- VERIFYING IF PARTICIPANT IS PART OF RESEARCH STUDY OR REGISTRY GROUP --"); + CucumberLogUtils.logScreenshot(); + ServiceNow_Common_Methods.logOutOfNativeView(); + } +} \ No newline at end of file diff --git a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario2StepsImpl.java b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario2StepsImpl.java index 592db8732..d5b22f652 100644 --- a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario2StepsImpl.java +++ b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario2StepsImpl.java @@ -25,21 +25,21 @@ public void rasScreenerSubmissionScenario2() { CucumberLogUtils.logScreenshot(); JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.studyNextButton); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); if(!rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.isDisplayed()){ - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouCompletingThisFormForSomeoneElseOrYourself).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouCompletingThisFormForSomeoneElseOrYourself).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(2)); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); @@ -48,17 +48,17 @@ public void rasScreenerSubmissionScenario2() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.middleInitial); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.LAST_NAME).sendKeys(ras_Screener_TestDataManager.lastName); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(106)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.theNextSetOfQuestionsWillCollectBasicInformationAboutTheProband, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL COLLECT BASIC INFORMATION ABOUT THE PROBAND TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(107)); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.calendarYearTextBox); rasopathyQuestionnairePage.calendarYearTextBox.clear(); @@ -67,37 +67,37 @@ public void rasScreenerSubmissionScenario2() { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.calendarDayOption); CommonUtils.clickOnElement(rasopathyQuestionnairePage.calendarDayOption); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); @@ -107,7 +107,7 @@ public void rasScreenerSubmissionScenario2() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.CITY_TEXT).sendKeys(ras_Screener_TestDataManager.city); @@ -115,29 +115,29 @@ public void rasScreenerSubmissionScenario2() { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.ZIP_CODE_TEXT).sendKeys(ras_Screener_TestDataManager.zipcode); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS)); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS)); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); @@ -146,34 +146,34 @@ public void rasScreenerSubmissionScenario2() { CucumberLogUtils.logScreenshot(); } catch (NoSuchFrameException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.WORK_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.workPhoneNumber); rasopathyQuestionnairePage.dynamicPhoneNumberCheckBox(ras_Screener_Constants.CELL_PHONE_NUMBER).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.whatIsYourRace), ras_Screener_TestDataManager.whatIsYourRaceOther); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.whatIsYourRace), ras_Screener_TestDataManager.whatIsYourRaceOther); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption2)); @@ -182,11 +182,11 @@ public void rasScreenerSubmissionScenario2() { CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption2), ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption2Other); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption3), ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption3Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(26)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.toDetermineEligibilityForThisStudy, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING TO DETERMINE ELIGIBILITY FOR THIS STUDY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(116)); for(int z = 1; z < 12 ; z++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(z)); @@ -194,16 +194,16 @@ public void rasScreenerSubmissionScenario2() { JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicEnterTextOnCheckboxesScreener(11)); CommonUtils.sendKeysToElement(rasopathyQuestionnairePage.dynamicEnterTextOnCheckboxesScreener(11), ras_Screener_TestDataManager.haveYouEverBeenDiagnosedWithTheFollowingConditionsOption11Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6)); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.pleaseCompleteTheBoxBelowBySelectingWhichPrimaryCancersColumn1Option1, myRASSurveyPage.selectFromDynamicdropDown(1)); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.pleaseCompleteTheBoxBelowBySelectingWhichPrimaryCancersColumn1Option2, myRASSurveyPage.selectFromDynamicdropDown(2)); @@ -226,60 +226,60 @@ public void rasScreenerSubmissionScenario2() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3,15)); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(4,15)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy)); CommonUtils.clickOnElement(myRASSurveyPage.rasSurveyYesRadioButton); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.forWhichSpecificRASopathy)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.forWhichSpecificRASopathy), ras_Screener_TestDataManager.forWhichSpecificRASopathyOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopTextBox(29)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicTopTextBox(29), ras_Screener_TestDataManager.ageAtDiagnosis); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopTextBox(30)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicTopTextBox(30), ras_Screener_TestDataManager.yearOfDiagnosisRas); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(101)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weKnowThatRASopathiesAreAGroup, myRASSurveyPage.dynamicTopText(101).getText(), "-- VERIFYING WE KNOW THAT RASOPATHIES ARE A GROUP TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(43)); CommonUtils.clickOnElement(myRASSurveyPage.rasSurveyYesRadioButton); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(120)); CommonUtils.clickOnElement(myRASSurveyPage.rasSurveyYesRadioButton); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(102)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.doYouHaveACopyOfTheGenetic).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.doYouHaveACopyOfTheGenetic).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(125)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.howWouldYouLikeToProvideTheGeneticTest).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.howWouldYouLikeToProvideTheGeneticTest).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(41)); //*** ATTACHING FILE CAN'T BE AUTOMATED IN QUATRICS. MANUAL TESTING WAS PERFORMED FOR UPLOADING A FILE ******* CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(69)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weWillNowAskAFewRemainingQuestionsRegarding, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING WE WILL NOW ASK A FEW REMAINING QUESTIONS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(126)); CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); @@ -288,23 +288,23 @@ public void rasScreenerSubmissionScenario2() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); rasopathyQuestionnairePage.dynamicLocatorForHowDidYouHearAboutStudyTextBoxes(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy).sendKeys(ras_Screener_TestDataManager.howDidYouHearAboutThisStudyOtherReason); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(71)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(97)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Screener_TestDataManager.pleaseProvideTheInformationRegardingPreviousParticipationColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), ras_Screener_TestDataManager.pleaseProvideTheInformationRegardingPreviousParticipationColumn2Option1); @@ -331,7 +331,7 @@ public void rasScreenerSubmissionScenario2() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 15), ras_Screener_TestDataManager.pleaseProvideTheInformationRegardingPreviousParticipationColumn5Option4); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 16), ras_Screener_TestDataManager.pleaseProvideTheInformationRegardingPreviousParticipationColumn6Option4); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(81)); for(int b = 1; b < 5 ; b++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(b)); @@ -341,11 +341,11 @@ public void rasScreenerSubmissionScenario2() { CommonUtils.sendKeysToElement(myRASSurveyPage.screenerDynamicOtherTextBox(ras_Screener_TestDataManager.whatAreTheMainReasonsForParticipatingOptin3), ras_Screener_TestDataManager.whatAreTheMainReasonsForParticipatingOptin3Other); CommonUtils.sendKeysToElement(myRASSurveyPage.screenerDynamicOtherTextBox(ras_Screener_TestDataManager.whatAreTheMainReasonsForParticipatingOptin4), ras_Screener_TestDataManager.whatAreTheMainReasonsForParticipatingOptin4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(91)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.youAreAlmostDone, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); CucumberLogUtils.logScreenshot(); ServiceNow_Common_Methods.logOutOfNativeView(); @@ -357,59 +357,59 @@ public void rasScreenerSubmissionScenario2() { public void rasScreenerIIQFormScenario2() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(14)); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisIsACopyForLowerEnvironmentsText, myRASSurveyPage.dynamicTopText(14).getText(), "-- VERIFYING THIS IS THE COPY FOR LOWER ENVIRONMENTS TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(16)); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.someOfThisInformationText, myRASSurveyPage.dynamicTopText(16).getText(), "-- VERIFYING SOME OF THIS INFORMATION TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(35)); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisFirstSectionOfTheQuestionnaireText, myRASSurveyPage.dynamicTopText(35).getText(), "-- VERIFYING THIS FIRST QUESTION OF THE QUESTIONNAIRE TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(92)); MiscUtils.sleep(2000); rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.forWhichSexDoYouIdentifyRadioButton).click(); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); MiscUtils.sleep(2000); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(93)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouOfAshkenazyJewishDescentRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(20)); MiscUtils.sleep(1000); @@ -417,11 +417,11 @@ public void rasScreenerIIQFormScenario2() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouAdoptedRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(21)); MiscUtils.sleep(1000); @@ -429,17 +429,17 @@ public void rasScreenerIIQFormScenario2() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouRaisedPrimarilyRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), iiq_TestDataManager.sinceWasNotPrimarilyRaisedColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), iiq_TestDataManager.sinceWasNotPrimarilyRaisedColumn2); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.calendarYearTextBox); rasopathyQuestionnairePage.calendarYearTextBox.clear(); @@ -449,7 +449,7 @@ public void rasScreenerIIQFormScenario2() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.calendarYearTextBox); rasopathyQuestionnairePage.calendarYearTextBox.clear(); CommonUtils.sendKeysToElement(rasopathyQuestionnairePage.calendarYearTextBox, iiq_TestDataManager.whatIsYourDateOfBirthYearDropDown); @@ -457,7 +457,7 @@ public void rasScreenerIIQFormScenario2() { CommonUtils.clickOnElement(rasopathyQuestionnairePage.iIQcalendarDayOption); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(24)); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1), iiq_TestDataManager.whereWereYouBornCityTextBox); @@ -465,16 +465,16 @@ public void rasScreenerIIQFormScenario2() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3), iiq_TestDataManager.whereWereYouBornCountryTextBox); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(4), iiq_TestDataManager.whereWereYouBornDontKnowTextBox); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(27)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1,2)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(28)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1,4)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(29)); MiscUtils.sleep(500); @@ -482,93 +482,93 @@ public void rasScreenerIIQFormScenario2() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourFammilysReligiousBackgroundCheckBox)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(31)); MiscUtils.sleep(1000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMainOccupationRadioButton)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.whatHasBeenYourUsualJobOther ); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(95)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(33)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(36)); CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_ASKS_YOU_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionAsksDetailedMedicalHistoryText.getText(), "-- VERIFYING THIS SECTION ASKS DETAILED MEDICAL HISTORY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(47)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouConceivedUsingVitroRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wasProbandConceivedThroughADonorEgg)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wasProbandConceivedThroughADonorEgg)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(97)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wasPreimplantationGeneticTesting)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(37)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); if(!myRASSurveyPage.dynamicTopText(38).isDisplayed()) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(38)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatTypeOfBirthWas)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(40)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.InTheTableBelowPleaseGiveTheNamesColumn1Option1); @@ -590,40 +590,40 @@ public void rasScreenerIIQFormScenario2() { CommonUtils.selectDropDownValue(iiq_TestDataManager.InTheTableBelowPleaseGiveTheNamesColumn2Option5,myRASSurveyPage.dynamicDropDownTwo(5,6)); CommonUtils.selectDropDownValue(iiq_TestDataManager.InTheTableBelowPleaseGiveTheNamesColumn2Option6,myRASSurveyPage.dynamicDropDownTwo(6,6)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(41)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYourBiologicalParentsBloodRelatedRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); if(!myRASSurveyPage.dynamicTopText(42).isDisplayed()) { CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(42)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.howAreTheBiologicalParentsBloodRelated)); CommonUtils.sendKeys(myRASSurveyPage.HowAreYourBiologicalTextArea, iiq_TestDataManager.howAreTheBiologicalParentsBloodRelatedOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(98)); MiscUtils.sleep(2000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.pleaseFillOutBirtWeightNumericTextBox); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutBirtWeightUnitDropDown,myRASSurveyPage.dynamicDropDownTwo(1,6)); CommonUtils.clickOnElement(myRASSurveyPage.gaggingRadioButton(1,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(171)); MiscUtils.sleep(3000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.pleaseFillOutHeadNumericTextBox); @@ -633,22 +633,22 @@ public void rasScreenerIIQFormScenario2() { CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutHeadCircumferenceUnitDropDown,myRASSurveyPage.dynamicDropDownTwo(2,6)); CommonUtils.clickOnElement(myRASSurveyPage.gaggingRadioButton(2,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText); CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_WILL_ASK_ABOUT_CANCER_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText.getText(), "-- VERIFYING THIS SECTION WILL ASK ABOUT CANCER TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(62)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); MiscUtils.sleep(2000); for (int k = 1; k < 17; k++) { @@ -660,7 +660,7 @@ public void rasScreenerIIQFormScenario2() { CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(15), iiq_TestDataManager.pleaseSelectOrReportAnyPrimaryTumorsOther15); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(16), iiq_TestDataManager.pleaseSelectOrReportAnyPrimaryTumorsOther16); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(63)); String[] primaryCancerTumor1 = {iiq_TestDataManager.forEachPrimaryCancerOrTumorColumn1Option1, iiq_TestDataManager.forEachPrimaryCancerOrTumorColumn1Option2, @@ -763,18 +763,18 @@ public void rasScreenerIIQFormScenario2() { } } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(67)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicDropDownTwo(1,3)); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseProvideTheDetailsForTheGeneticTestingColumn1Option1,myRASSurveyPage.dynamicDropDownTwo(1,3)); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseProvideTheDetailsForTheGeneticTestingColumn1Option2,myRASSurveyPage.dynamicDropDownTwo(2,3)); @@ -795,28 +795,28 @@ public void rasScreenerIIQFormScenario2() { CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseProvideTheDetailsForTheGeneticTestingColumn6Option2,myRASSurveyPage.dynamicDropDownTwo(2,14)); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseProvideTheDetailsForTheGeneticTestingColumn6Option3,myRASSurveyPage.dynamicDropDownTwo(3,14)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(166)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouHaveACopyOfTheGeneticTestResults)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouHaveACopyOfTheGeneticTestResults)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(101)); MiscUtils.sleep(2000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.pleaseFillTheTableBelowWithHeightNumericTextBox); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillTheTableBelowWithHeightUnitDropDown,myRASSurveyPage.dynamicDropDownTwo(1,6)); CommonUtils.clickOnElement(myRASSurveyPage.gaggingRadioButton(1,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(173)); MiscUtils.sleep(2000); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); @@ -841,51 +841,51 @@ public void rasScreenerIIQFormScenario2() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(4,12)); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(5,12)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(78)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(78), iiq_TestDataManager.atWhatAgeWereYouAtTheHighestWeightTextBox); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(79)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.ageAtFirstMenstrualPeriodOption1Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(80)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.mostRecentMenstrualPeriodOption1Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(81)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.ifAPeriodHasNotOccurredForTheLast12Months)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.ifAPeriodHasNotOccurredForTheLast12Months)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(82)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverBeenPregnant)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverBeenPregnant)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(161)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(161), iiq_TestDataManager.whatWasProbandAgeAtTheirFirstPregnancy); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(159)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(159), iiq_TestDataManager.howManyTimesHasProbandBeenPregnant); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(176)); MiscUtils.sleep(1000); Actions move = new Actions(webDriver); @@ -893,27 +893,27 @@ public void rasScreenerIIQFormScenario2() { move.dragAndDropBy(myRASSurveyPage.dynamicSlider(176,2), 37*Integer.valueOf(iiq_TestDataManager.howManyOfEachPregnancyOutcomesOption2) , 0).build().perform(); move.dragAndDropBy(myRASSurveyPage.dynamicSlider(176,3), 37*Integer.valueOf(iiq_TestDataManager.howManyOfEachPregnancyOutcomesOption3) , 0).build().perform(); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(83)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverTriedToBecomePregnant)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverTriedToBecomePregnant)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(84)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverConsultedADoctorInGettingPregnant)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(85)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(85), iiq_TestDataManager.howOldWasProbandWhenTheyFirstConsultedADoctor); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(10)); MiscUtils.sleep(2000); for (int s = 1; s < 11; s++) { @@ -921,28 +921,28 @@ public void rasScreenerIIQFormScenario2() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(10), iiq_TestDataManager.whatDiagnosisWasMadeToExplainOption10); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(151)); MiscUtils.sleep(2000); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.theNextFewQuestionsAskAboutBeingPrescribedFemaleHormones, myRASSurveyPage.dynamicTopText(151).getText(), "-- VERIFYING THE NEXT FEW QUESTIONS ASK ABOUT BEING PRESCRIBED FEMALE HORMONES TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(152)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverTakenPillsInjections)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverTakenPillsInjections)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(87)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.sometimesWomenAreGivenFemaleHormones)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(88)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); @@ -950,23 +950,23 @@ public void rasScreenerIIQFormScenario2() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.atWhatAgeWasProbandPrescribedFemaleHormones); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(89)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.whatIsTheTotalAmountOfTimeProbandHasTakenHormoneOther1); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(100)); CommonUtils.assertEqualsWithMessage(iiq_Constants.YOU_ARE_ALMOST_DONE_TEXT, myRASIIQFormPage.screenerIiqFormYouAreAlmostDoneText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(3000); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); @@ -980,31 +980,31 @@ public void rasScreenerSurveyScenario2PartOne(){ CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThankYouForStartingText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thankYouForStartingTheRASSurveyAndFor,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THANK YOU FOR STARTING THE RAS SURVEY AND FOR YOUR TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThisQuestionMayTakeText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THIS QUESTIONNAIRE MAY TAKE YOU SEVERAL HOURS TO COMPLETE TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheFirstBlockText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE FIRST BLOCK OF QUESTIONS WILL COLLECT TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.toConfirmAreYouCompleting)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(58)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenIncluded)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyPleaseProvideAnyAdditionalInformationTextBox); CommonUtils.sendKeysToElement(myRASSurveyPage.rasSurveyPleaseProvideAnyAdditionalInformationTextBox, ras_Survey_TestDataManager.pleaseProvideAnyAdditionalInformation); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutBirthAndNeonatalText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutNeonatalHistory,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT BIRTH AND NEONATAL TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalMotherCityTextBox); int momAgeDropdownIndex = Integer.valueOf(ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalMotherAge) - 11; int fatherDropDownIndex = Integer.valueOf(ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalFatherAge) - 11; @@ -1015,19 +1015,19 @@ public void rasScreenerSurveyScenario2PartOne(){ CommonUtils.clickOnElement(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalFatherUnsureRadioButton); CommonUtils.selectDropDownValue(myRASSurveyPage.pleaseCompleteYourBiologicalParentsBiologicalFatherYearsDropDown, fatherDropDownIndex); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption1)); @@ -1040,7 +1040,7 @@ public void rasScreenerSurveyScenario2PartOne(){ CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption2)); @@ -1052,25 +1052,25 @@ public void rasScreenerSurveyScenario2PartOne(){ CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); for(int i = 1;i < 9;i++){ CommonUtils.clickOnElement(myRASSurveyPage.dynamicLocatorRadioButtonNormal("" + i)); } CommonUtils.sendKeysToElement(myRASSurveyPage.pleaseIndicateTheResultsOfThePrenatalTestsOtherTextBox, ras_Survey_TestDataManager.pleaseIndicateTheResultsOfThePrenatalTestsOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wasYourBiologicalMotherDiagnosedOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wasYourBiologicalMotherDiagnosedOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wasYourBiologicalMotherDiagnosedOption2)); @@ -1086,19 +1086,19 @@ public void rasScreenerSurveyScenario2PartOne(){ CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(9), ras_Survey_TestDataManager.wasYourBiologicalMotherDiagnosedOption9PleaseSpecify); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(10), ras_Survey_TestDataManager.wasYourBiologicalMotherDiagnosedOption10PleaseSpecify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager. pleaseSelectAllMedicationsYourMotherTookOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseSelectAllMedicationsYourMotherTookOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseSelectAllMedicationsYourMotherTookOption2)); @@ -1118,7 +1118,7 @@ public void rasScreenerSurveyScenario2PartOne(){ CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(13), ras_Survey_TestDataManager.pleaseSelectAllMedicationsYourMotherTookOption14PleaseSpecify); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(15), ras_Survey_TestDataManager.pleaseSelectAllMedicationsYourMotherTookOption15PleaseSpecify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); MiscUtils.sleep(2000); String[] column1Values = {ras_Survey_TestDataManager.pleaseProvideDetailsOfTheMedicationTakenColumn1Option1, ras_Survey_TestDataManager.pleaseProvideDetailsOfTheMedicationTakenColumn1Option2, @@ -1175,19 +1175,19 @@ public void rasScreenerSurveyScenario2PartOne(){ CommonUtils.selectDropDownValue(dropDownValues[b-1],myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationdropDown(b)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption2)); @@ -1197,19 +1197,19 @@ public void rasScreenerSurveyScenario2PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption6)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption6PleaseSpecify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyVaping)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyVaping)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyVaping)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption2)); @@ -1223,19 +1223,19 @@ public void rasScreenerSurveyScenario2PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption10)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption10PleaseSpecify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption2)); @@ -1244,19 +1244,19 @@ public void rasScreenerSurveyScenario2PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption5)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption5Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyRecreationalDrugs)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyRecreationalDrugs)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyRecreationalDrugs)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatRecreationalDrugOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatRecreationalDrugOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatRecreationalDrugOption2)); @@ -1271,19 +1271,19 @@ public void rasScreenerSurveyScenario2PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatRecreationalDrugOption11)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whatRecreationalDrugOption11Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatProductsWereUsedAroundOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatProductsWereUsedAroundOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatProductsWereUsedAroundOption2)); @@ -1291,14 +1291,14 @@ public void rasScreenerSurveyScenario2PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatProductsWereUsedAroundOption4)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whatProductsWereUsedAroundOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancy); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 6)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3),ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancyFather); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.whatIsTheHeightOfYourBiologicalMotherAndFatherText); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),ras_Survey_TestDataManager.whatIsTheHeightOfYourBiologicalMother); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 6)); @@ -1307,7 +1307,7 @@ public void rasScreenerSurveyScenario2PartOne(){ JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 10)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutHormoneRelatedGrowthText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetHormoneRelatedGrowth,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HORMONE RELATED GROWTH TEXT --"); MiscUtils.sleep(1000); @@ -1316,37 +1316,37 @@ public void rasScreenerSurveyScenario2PartOne(){ } public void rasScreenerSurveyScenario2PartTwo(){ - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1),ras_Survey_TestDataManager.whatIsTheNameOfTheEndocrinologistDoctor); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(2),ras_Survey_TestDataManager.whatIsTheNameOfTheEndocrinologistLocation); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3),ras_Survey_TestDataManager.whatIsTheNameOfTheEndocrinologistHospital); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption2)); @@ -1354,28 +1354,28 @@ public void rasScreenerSurveyScenario2PartTwo(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption4)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWasYourHeightBeforeStartingGrowthHormone)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWasYourHeightBeforeStartingGrowthHormone)); CommonUtils.sendKeysToElement(myRASSurveyPage.whatWasYourHeightBeforeStartingGrowthHormoneHeightTextBox, ras_Survey_TestDataManager.whatWasYourHeightBeforeStartingGrowthHormoneHeight); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.howManyTimesHaveYouReceivedGrowthHormoneTreatmentDropDown); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyTimesHaveYouReceivedGrowthHormoneTreatment,myRASSurveyPage.howManyTimesHaveYouReceivedGrowthHormoneTreatmentDropDown); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),ras_Survey_TestDataManager.pleaseProvideTheDetailsOfGrowthHormoneReplacementAgeStart); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4),ras_Survey_TestDataManager.pleaseProvideTheDetailsOfGrowthHormoneReplacementAgeStopped); @@ -1383,160 +1383,160 @@ public void rasScreenerSurveyScenario2PartTwo(){ CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 8),ras_Survey_TestDataManager.pleaseProvideTheDetailsOfGrowthHormoneReplacementDateStopped); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 11)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutDevelopmentText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutDevelopment,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT DEVELOPMENT TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.atWhatAgeWereYouAbleToWalkWithoutSupportText); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToWalkWithoutSupport)); CucumberLogUtils.logScreenshot(); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption2)); @@ -1544,47 +1544,47 @@ public void rasScreenerSurveyScenario2PartTwo(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption4)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); } public void rasScreenerSurveyScenario2PartThree() { //*** ATTACHING FILE CAN'T BE AUTOMATED IN QUATRICS. MANUAL TESTING WAS PERFORMED FOR UPLOADING A FILE ******* CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutHeartText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutHeart, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HEART TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByACardiologist)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByACardiologist)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByACardiologist)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1), ras_Survey_TestDataManager.whatIsTheNameOfTheCardiologistDoctor); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(2), ras_Survey_TestDataManager.whatIsTheNameOfTheCardiologistLocation); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3), ras_Survey_TestDataManager.whatIsTheNameOfTheCardiologistHospital); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyStructuralHeartIssues)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyStructuralHeartIssues)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyStructuralHeartIssues)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.pulmonaryValveButton); JavascriptUtils.clickByJS(myRASSurveyPage.pulmonaryValveButton); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingStructuralHeartIssuesOption2)); @@ -1594,7 +1594,7 @@ public void rasScreenerSurveyScenario2PartThree() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingStructuralHeartIssuesOption6)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingStructuralHeartIssuesOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption2)); @@ -1608,7 +1608,7 @@ public void rasScreenerSurveyScenario2PartThree() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption10)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption11)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); String[] column1Value = {ras_Survey_TestDataManager.pleaseProvideInformationForTheFIRSTTreatmentColumn1Option1, ras_Survey_TestDataManager.pleaseProvideInformationForTheFIRSTTreatmentColumn1Option2, ras_Survey_TestDataManager.pleaseProvideInformationForTheFIRSTTreatmentColumn1Option3, @@ -1722,19 +1722,19 @@ public void rasScreenerSurveyScenario2PartThree() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(l, 16), column8Value[l - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedTreatmentForHeartProblems)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedTreatmentForHeartProblems)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedTreatmentForHeartProblems)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingTreatmentsForHeartOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingTreatmentsForHeartOption1)); JavascriptUtils.clickByJS(myRASSurveyPage.catheterInterventionTextBox); @@ -1743,7 +1743,7 @@ public void rasScreenerSurveyScenario2PartThree() { CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingTreatmentsForHeartOption4Specify); CommonUtils.sendKeysToElement(myRASSurveyPage.medicationPleaseSpecifyTextBox, ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingTreatmentsForHeartOption1Specify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] column1ValueFirstTreatment = {ras_Survey_TestDataManager.pleaseProvidingInformationForFirstAndMostRecentTreatmentColumn1Option1, ras_Survey_TestDataManager.pleaseProvidingInformationForFirstAndMostRecentTreatmentColumn1Option2, @@ -1802,31 +1802,31 @@ public void rasScreenerSurveyScenario2PartThree() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(t, 16), column8ValueFirstTreatment[t - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouStillOn)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouStillOn)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouStillOn)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssues)); CommonUtils.waitForVisibility(myRASSurveyPage.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssueText); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssues)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.haveYouEverBeenDiagnosedOption1CheckBox); JavascriptUtils.clickByJS(myRASSurveyPage.haveYouEverBeenDiagnosedOption2CheckBox); JavascriptUtils.clickByJS(myRASSurveyPage.haveYouEverBeenDiagnosedOption3CheckBox); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssuesOption4)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssuesOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] column1ValueConditions = {ras_Survey_TestDataManager.pleaseProvideAnyDetailsKnownForTheConditionsColumn1Option1, ras_Survey_TestDataManager.pleaseProvideAnyDetailsKnownForTheConditionsColumn1Option2, @@ -1885,17 +1885,17 @@ public void rasScreenerSurveyScenario2PartThree() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(tt, 16), column8ValueConditions[tt - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutRASopathyDiagnosesText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextTwoQuestionsWillAskAboutRASopathyDiagnoses, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT TWO QUESTIONS WILL ASK ABOUT RASOPATHY DIAGNOSES TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario2PartFour() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption2)); @@ -1908,52 +1908,52 @@ public void rasScreenerSurveyScenario2PartFour() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption9)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption9Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutMedicalHistoryText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGeneralMedicalHistory, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GENERAL MEDICAL HISTORY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1), ras_Survey_TestDataManager.pleaseProvideTheInformationForYourPrimaryCareProviderBelowDoctor); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(2), ras_Survey_TestDataManager.pleaseProvideTheInformationForYourPrimaryCareProviderBelowLocation); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3), ras_Survey_TestDataManager.pleaseProvideTheInformationForYourPrimaryCareProviderBelowHospital); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 3)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.addButton); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteAllMedicationsToWhichYouAreAllergicColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), ras_Survey_TestDataManager.pleaseCompleteAllMedicationsToWhichYouAreAllergicColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.pleaseCompleteTheTableBelowForAllFoodsText); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteAllFoodsToWhichYouAreAllergicColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), ras_Survey_TestDataManager.pleaseCompleteAllFoodsToWhichYouAreAllergicColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.pleaseCompleteTheTableBelowForAllOtherText); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteAllOtherToWhichYouAreAllergicColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), ras_Survey_TestDataManager.pleaseCompleteAllOtherToWhichYouAreAllergicColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnOperationOrBiopsy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnOperationOrBiopsy)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.addButton); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); @@ -1964,11 +1964,11 @@ public void rasScreenerSurveyScenario2PartFour() { CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.pleaseProvideTheInformationForEachBiopsyColumn5, myRASSurveyPage.dynamicDropDownTwo(1, 11)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 14), ras_Survey_TestDataManager.pleaseProvideTheInformationForEachBiopsyColumn6); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenHospitalizedForAnyReason)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenHospitalizedForAnyReason)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.addButton); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); @@ -1978,21 +1978,21 @@ public void rasScreenerSurveyScenario2PartFour() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 8), ras_Survey_TestDataManager.pleaseProvideTheInformationForEachHospitalizationColumn4); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(1, 11), ras_Survey_TestDataManager.pleaseProvideTheInformationForEachHospitalizationColumn5); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutGiText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGi, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GI TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1), ras_Survey_TestDataManager.pleaseProvideTheDetailsForTheGastroenterologistDoctor); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(2), ras_Survey_TestDataManager.pleaseProvideTheDetailsForTheGastroenterologistLocation); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3), ras_Survey_TestDataManager.pleaseProvideTheDetailsForTheGastroenterologistHospital); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption2)); @@ -2002,29 +2002,29 @@ public void rasScreenerSurveyScenario2PartFour() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption6)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheNasogastricOrNasojejunalTubePlaced)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheNasogastricOrNasojejunalTubePlaced)); CommonUtils.sendKeysToElement(myRASSurveyPage.agePleaseSpecifyTextBox, ras_Survey_TestDataManager.atWhatAgeWasTheNasogastricOrNasojejunalTubePlacedAge); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(123)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubePlaced)); CommonUtils.sendKeysToElement(myRASSurveyPage.agePleaseSpecifyTextBox, ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubePlacedAge); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubeRemoved)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubeRemoved)); CommonUtils.sendKeysToElement(myRASSurveyPage.agePleaseSpecifyTextBox, ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubeRemovedAge); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario2PartFive() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption2)); @@ -2048,26 +2048,26 @@ public void rasScreenerSurveyScenario2PartFive() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption20)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption21)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); for (int u = 1; u < 22; u++) { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(u, 3)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.gaggingRadioButton(1, 1)); JavascriptUtils.clickByJS(myRASSurveyPage.gaggingRadioButton(1, 1)); JavascriptUtils.clickByJS(myRASSurveyPage.gaggingRadioButton(2, 1)); JavascriptUtils.clickByJS(myRASSurveyPage.gaggingRadioButton(3, 1)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingHeartburnColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 14), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingHeartburnColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.pleaseCompleteTheTableBelowRegardingNauseaSymptomsText); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); @@ -2075,95 +2075,95 @@ public void rasScreenerSurveyScenario2PartFive() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 18), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingHeartburnColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 19), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingHeartburnColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); MiscUtils.sleep(2000); for (int v = 1; v < 20; v++) { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(v, 3)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(345)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveAnyMedicationsEverBeenTakenForAbdominalPain)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyMedicationsHaveBeenTakenForAbdominalPain, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingTheMedicationsColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingTheMedicationsColumn2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(1, 7), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingTheMedicationsColumn3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.pleaseCompleteTheNextSetOfQuestionsRegardingVomitingText); for (int x = 1; x < 8; x++) { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(x, 3)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(346)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.hasAnyMedicationEverBeenTakenForVomiting)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyMedicationsHaveBeenTakenForVomiting, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheListMedicationsTakenForVomitingColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4), ras_Survey_TestDataManager.pleaseCompleteTheListMedicationsTakenForVomitingColumn1); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.haveAnyOfTheFollowingSymptomsOccurred4Text); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveAnyOfTheFollowingSymptomsOccurred4Option1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveAnyOfTheFollowingSymptomsOccurred4Option2)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveAnyOfTheFollowingSymptomsOccurred4Option3)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseAnswerTheBelowQuestionsRegardingJaundiceTextBox1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseAnswerTheBelowQuestionsRegardingJaundiceTextBox2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouTakeALactoseSupplement)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouTakeALactoseSupplement)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.toWhatFoodsAreYouAverseTextBox); CommonUtils.sendKeysToElement(myRASSurveyPage.toWhatFoodsAreYouAverseTextBox, ras_Survey_TestDataManager.toWhatFoodsAreYouAverse); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 3)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingDiarrheaOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingDiarrheaOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingDiarrheaOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); for (int y = 1; y < 9; y++) { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(y, 3)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingEncopresisOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingEncopresisOption2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.pleaseCompleteTheInformationBelowRegardingBowelText); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingWeightLossOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingWeightLossOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingWeightLossOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); @@ -2171,42 +2171,42 @@ public void rasScreenerSurveyScenario2PartFive() { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 14)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 15)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(327)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouToiletTrained)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.atWhatAgeWereYouToiletTrained, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.pleaseCompleteTheTableBelowRegardingWeightLossText); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 13)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyBowelMovementsDoYouHavePerWeek, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.whatIsTheLongestAmountOfTimeThatHasPassedText); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.whatIsTheLongestAmountOfTimeThatHasPassedWithout, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAProcedureTestOrStudyToEvaluate)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAProcedureTestOrStudyToEvaluate)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption2)); @@ -2217,9 +2217,9 @@ public void rasScreenerSurveyScenario2PartFive() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption7)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption8)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption9)); - CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOtheriPleaseSpecifyTextBox(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption9), ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption90ther); + CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOtherPleaseSpecifyTextBox(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption9), ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption90ther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] column1KindOfProcedure = {ras_Survey_TestDataManager.pleaseProvideAnyDetailsKnownForTheConditionsColumn1Option1, ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForTheFirstProcedureColumn1Option2, @@ -2270,7 +2270,7 @@ public void rasScreenerSurveyScenario2PartFive() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(ddd, 12), column4KindOfProcedure[ddd - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); //*********************** RUN THIS CODE ONLY ON NEW OR RESETTED FORMS ********************************/ CommonUtils.waitForClickability(myRASSurveyPage.pleaseProvideInformationForTheMostRecentProcedureText); String[] column1MostRecentProcedure = {ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForMostRecentProcedureColumn1Option1, @@ -2322,7 +2322,7 @@ public void rasScreenerSurveyScenario2PartFive() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(iii, 12), column4MostRecentProcedure[iii - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); //*********************** RUN THE CODE ABOVE ONLY ON NEW OR RESETTED FORMS ********************************/ } @@ -2330,155 +2330,155 @@ public void rasScreenerSurveyScenario2PartSix() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(305)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBreathingAndTheLungs, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BREATHING AND THE LUNGS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(380)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAPulmonologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForThePulmonologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForThePulmonologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForThePulmonologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(162)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadWheezingOrWhistling)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(163)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithReactiveAirwayDisease)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(164)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheEmergencyRoomForABreathing)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(165)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheHospitalForABreathing)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(330)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutOralHealthAndDental, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT ORAL HEALTH AND DENTAL HISTORY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(166)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouReceiveRegularDentalCare)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForWhereDentalOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForWhereDentalOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForWhereDentalOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(168)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(168), ras_Survey_TestDataManager.whenDidYouLastVisitADentist); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(167)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWasTheReasonForYourLastDentalVisitOption)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(169)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourGumsBleedRegularlyWithToothBrushing)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(170)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourTeethOrGumsHurtRegularly)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(171)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHavePeriodontalOrGumDisease)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(172)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadDentalSealantsPlaced)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(173)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouCurrentlyHaveCavities)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(174)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouPreviouslyHadAnyDentalFillings)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(175)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doesYourMouthUsuallyFeelDry)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(176)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateTheOverallHealth)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(177)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateYourDentalHygieneRoutine)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(178)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfSmell)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(179)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfTaste)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(180)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveJawOrTemporomandibularJointPain)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(181)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveFrequentHeadaches)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(182)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyOrthodonticTreatment)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(183)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAPalatalExpansion)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(184)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyFacialOrDentalTrauma)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(185)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.didTheFacialOrDentalTraumaRequireSurgery), ras_Survey_TestDataManager.didTheFacialOrDentalTraumaRequireSurgeryPlease); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(186)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadElectiveJawSurgery)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(189)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.doYouHaveAHistoryOfCancerInTheMouthOrJaw), ras_Survey_TestDataManager.doYouHaveAHistoryOfCancerInTheMouthOrJawPlease); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(190)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.doYouHaveAFamilyMemberWithAJawAbnormality), ras_Survey_TestDataManager.doYouHaveAFamilyMemberWithAJawAbnormalityPlease); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(191)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyNumbnessInOrAroundYourMouth)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(192)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyMouthSores)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(193)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourTeethFeelSensitiveToHotOrColdFoods)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(194)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveProblemsMovingYourLipsTongueOrMouth)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(195)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.overallIsThereAnythingUnusualAboutYourTeethOrMouth), ras_Survey_TestDataManager.overallIsThereAnythingUnusualAboutYourTeethOrMouthPlease); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); String[] clickingOnOptionInMultiplePages = {ras_Survey_TestDataManager.haveYouHadTroublePronouncingAnyWords, ras_Survey_TestDataManager.haveYouFeltThatYourSenseOfTasteHasWorsened, ras_Survey_TestDataManager.haveYouHadPainfulAchingInYourMouth, @@ -2498,7 +2498,7 @@ public void rasScreenerSurveyScenario2PartSix() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(jjj)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(clickingOnOptionInMultiplePages[jjj-196])); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); } } @@ -2506,11 +2506,11 @@ public void rasScreenerSurveyScenario2PartSeven() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(306)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutFluidBalance, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT FLUID BALANCE AND IF ANY FLUID BUILDS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(331)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithALymphaticSystemIssue)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption2)); @@ -2521,7 +2521,7 @@ public void rasScreenerSurveyScenario2PartSeven() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption7)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption7), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption7Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] abilityOnser1 = {ras_Survey_TestDataManager.pleaseCompleteToTheBestOfYourAbilityAboutTheOnsetColumn1Option1, ras_Survey_TestDataManager.pleaseCompleteToTheBestOfYourAbilityAboutTheOnsetColumn1Option2, @@ -2604,25 +2604,25 @@ public void rasScreenerSurveyScenario2PartSeven() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(ttt , 16), abilityOnser8[ttt - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(332)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutTheKidneys, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT THE KIDNEYS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(383)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANephrologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseListTheInformationBelowForTheNephrologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseListTheInformationBelowForTheNephrologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseListTheInformationBelowForTheNephrologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(329)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANephrologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption2)); @@ -2630,7 +2630,7 @@ public void rasScreenerSurveyScenario2PartSeven() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption4)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption4), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1 , 3), ras_Survey_TestDataManager.pleaseCompleteTheTableRegardingKidneyColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2 , 3), ras_Survey_TestDataManager.pleaseCompleteTheTableRegardingKidneyColumn1Option2); @@ -2665,42 +2665,42 @@ public void rasScreenerSurveyScenario2PartSeven() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3 , 16), ras_Survey_TestDataManager.pleaseCompleteTheTableRegardingKidneyColumn8Option3); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4 , 16), ras_Survey_TestDataManager.pleaseCompleteTheTableRegardingKidneyColumn8Option4); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(309)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutHairAndSkinQualities, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT HAIR AND SKIN QUALITIES TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario2PartEight() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(385)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByADermatologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideDermatologistWhoCompletedYourEvaluationOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideDermatologistWhoCompletedYourEvaluationOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideDermatologistWhoCompletedYourEvaluationOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); for (int a = 1; a < 8; a++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(a)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.pleaseChooseTheBestTermsToDescribeYourHair7), ras_Survey_TestDataManager.pleaseChooseTheBestTermsToDescribeYourHair7Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(221)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.isTheTextureOrAmountOfYourHairSimilar)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); for (int b = 1; b < 6; b++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(b)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithPatchesOfThickenedSkinOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(223)); for (int c = 1; c < 6; c++) { @@ -2708,11 +2708,11 @@ public void rasScreenerSurveyScenario2PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.doYouHaveAnyOfTheFollowingPigmentedSkinFindingsOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(224)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyHemangiomas)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(225)); for (int d = 1; d < 6; d++) { @@ -2720,21 +2720,21 @@ public void rasScreenerSurveyScenario2PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingSkinTumorsOthers); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(310)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutSkeletalConditions, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT SKELETAL CONDITIONS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(387)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.isTheTextureOrAmountOfYourHairSimilar)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheDetailsBelowForTheOrthopaedicOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheDetailsBelowForTheOrthopaedicOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheDetailsBelowForTheOrthopaedicOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(226)); for (int e = 1; e < 5; e++) { @@ -2742,11 +2742,11 @@ public void rasScreenerSurveyScenario2PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.haveYouBeenDiagnosedWithAnyOfTheFollowingSkeletalOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(352)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyIssuesWithCurvingOfTheSpine)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(227)); for (int f = 1; f < 5; f++) { @@ -2754,7 +2754,7 @@ public void rasScreenerSurveyScenario2PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingTypesOfCurvatureOption1Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheSpineIssuesColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheSpineIssuesColumn1Option2); @@ -2785,15 +2785,15 @@ public void rasScreenerSurveyScenario2PartEight() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(3, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheSpineIssuesColumn7Option3); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(4, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheSpineIssuesColumn7Option4); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(231)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.hasYourNeckBeenDescribedAsShortOrWebbed)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(353)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithJointIssues)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(232)); for (int g = 1; g < 7; g++) { @@ -2801,7 +2801,7 @@ public void rasScreenerSurveyScenario2PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(6), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithTheFollowingJointIssues6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheJointIssuesListedColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheJointIssuesListedColumn1Option2); @@ -2846,34 +2846,34 @@ public void rasScreenerSurveyScenario2PartEight() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(5, 13), ras_Survey_TestDataManager.pleaseCompleteTheJointIssuesListedColumn7Option5); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(6, 13), ras_Survey_TestDataManager.pleaseCompleteTheJointIssuesListedColumn7Option6); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(311)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBloodDisorders, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BLOOD DISORDERS TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario2PartNine() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(389)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAHematologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForTheHematologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForTheHematologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForTheHematologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(354)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager. doYouHaveIssuesWithBleedingOrBruising)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(233)); for (int h = 1; h < 5; h++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(h)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.doYouHaveAnyOfTheFollowingIssuesWithBleedingOrBruising4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteBleedingBruisingIssuesListedColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteBleedingBruisingIssuesListedColumn1Option2); @@ -2908,11 +2908,11 @@ public void rasScreenerSurveyScenario2PartNine() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 16), ras_Survey_TestDataManager.pleaseCompleteBleedingBruisingIssuesListedColumn8Option3); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 16), ras_Survey_TestDataManager.pleaseCompleteBleedingBruisingIssuesListedColumn8Option4); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(355)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyKnownBloodDisorders)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(236)); for (int j = 1; j < 9; j++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(j)); @@ -2920,7 +2920,7 @@ public void rasScreenerSurveyScenario2PartNine() { CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(7), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithBloodDisorders7Other); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(8), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithBloodDisorders8Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] blodDisorderColumn1 = {ras_Survey_TestDataManager.pleaseCompleteTheBloodDisordersIssuesListedColumn1Option1, ras_Survey_TestDataManager.pleaseCompleteTheBloodDisordersIssuesListedColumn1Option2, @@ -3011,14 +3011,14 @@ public void rasScreenerSurveyScenario2PartNine() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(r, 16), blodDisorderColumn8[r - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(238)); for (int s = 1; s < 7; s++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(s)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(6), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingTumorsOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheTumorsListedColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheTumorsListedColumn1Option2); @@ -3060,28 +3060,28 @@ public void rasScreenerSurveyScenario2PartNine() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(t, 13)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(356)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfFrequentInfections)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(391)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnImmunologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheNameOfTheImmunologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheNameOfTheImmunologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheNameOfTheImmunologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(240)); for (int u = 1; u < 4; u++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(u)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(3), ras_Survey_TestDataManager.howWouldYouDescribeInfectionFrequencyOption3Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheImmunodeficienciesListedColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheImmunodeficienciesListedColumn1Option2); @@ -3108,11 +3108,11 @@ public void rasScreenerSurveyScenario2PartNine() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 16), ras_Survey_TestDataManager.pleaseCompleteTheImmunodeficienciesListedColumn8Option2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 16), ras_Survey_TestDataManager.pleaseCompleteTheImmunodeficienciesListedColumn8Option3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(357)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnAutoimmuneDisorder)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(242)); for (int v = 1; v < 6; v++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(v)); @@ -3120,7 +3120,7 @@ public void rasScreenerSurveyScenario2PartNine() { CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.withWhatAutoimmuneDisorderHaveYouBeenDiagnosedOption4Other); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.withWhatAutoimmuneDisorderHaveYouBeenDiagnosedOption5Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn1Option2); @@ -3162,34 +3162,34 @@ public void rasScreenerSurveyScenario2PartNine() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 16), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn8Option3); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 16), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn8Option4); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 16), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn8Option5); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(312)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutNervousSystem, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT NERVOUS SYSTEM TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario2PartTen() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(393)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANeurologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationForTheNeurologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationForTheNeurologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationForTheNeurologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(358)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAStructuralBrainAbnormality)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(244)); for (int a = 1; a < 7; a++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(a)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(6), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyBrainOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableForEachOfTheConditionsListedBrainIssuesColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableForEachOfTheConditionsListedBrainIssuesColumn1Option2); @@ -3234,18 +3234,18 @@ public void rasScreenerSurveyScenario2PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableForEachOfTheConditionsListedBrainIssuesColumn7Option5); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(6, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableForEachOfTheConditionsListedBrainIssuesColumn7Option6); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(359)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfSeizures)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(246)); for (int b = 1; b < 6; b++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(b)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.pleaseSelectAllSeizureDisordersOption5Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowSeizureDisordersColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowSeizureDisordersColumn1Option2); @@ -3283,28 +3283,28 @@ public void rasScreenerSurveyScenario2PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowSeizureDisordersColumn7Option4); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowSeizureDisordersColumn7Option5); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(395)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAPsychiatrist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationListedPsychiatristOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationListedPsychiatristOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationListedPsychiatristOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(360)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithABehavioral)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(247)); for (int c = 1; c < 11; c++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(c)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(10), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithABehavioralOption10Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] psychiatricConditionColumn1 = {ras_Survey_TestDataManager.pleaseCompleteTheTableBehavioralAndPsychiatricConditionsColumn1Option1, ras_Survey_TestDataManager.pleaseCompleteTheTableBehavioralAndPsychiatricConditionsColumn1Option2, @@ -3398,34 +3398,34 @@ public void rasScreenerSurveyScenario2PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(j , 13), psychiatricConditionColumn7[j - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(249)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(249), ras_Survey_TestDataManager.pleaseListAndDescribeAnyAdditionalNeurologicConditions); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(313)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutVisionAndHearing, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT VISION AND HEARING TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(250)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithPtosis)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(319)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouRequireTreatmentForPtosis)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(361)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyIssuesWithYourVision)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(253)); for (int k = 1; k < 7; k++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(k)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(6), ras_Survey_TestDataManager.pleaseSelectAllTheVisionEyesightOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableVisionEyesightColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableVisionEyesightColumn1Option2); @@ -3470,11 +3470,11 @@ public void rasScreenerSurveyScenario2PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableVisionEyesightColumn7Option5); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(6, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableVisionEyesightColumn7Option6); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(254)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedStabismus)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingStrabismusColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingStrabismusColumn2); @@ -3484,11 +3484,11 @@ public void rasScreenerSurveyScenario2PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 10), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingStrabismusColumn6); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 13)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(256)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedNystagmus)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingNystagmusColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingNystagmusColumn2); @@ -3499,18 +3499,18 @@ public void rasScreenerSurveyScenario2PartTen() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 13)); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 18)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(362)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouExperiencedHearingLoss)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(259)); for (int l = 1; l < 6; l++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(l)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.haveYouExperiencedAnyTypesOfHearingLossOption5Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableHearingLossColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableHearingLossColumn1Option2); @@ -3546,23 +3546,23 @@ public void rasScreenerSurveyScenario2PartTen() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(m, 13)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(260)); for (int n = 1; n < 4; n++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(n)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(3), ras_Survey_TestDataManager.doYouHaveAnyOfTheFollowingIssuesWithYourEarsOption3Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(297)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(297), ras_Survey_TestDataManager.ifThereAreAnyOtherHealthIssues); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(298)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.youAreAlmostDoneSurvey, myRASSurveyPage.dynamicTopText(298).getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); MiscUtils.sleep(1000); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); MiscUtils.sleep(3000); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); diff --git a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario3StepsImpl.java b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario3StepsImpl.java index 44a70d84c..99182ee46 100644 --- a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario3StepsImpl.java +++ b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario3StepsImpl.java @@ -24,21 +24,21 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.studyNextButton); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); if(!rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.isDisplayed()){ - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouCompletingThisFormForSomeoneElseOrYourself).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouCompletingThisFormForSomeoneElseOrYourself).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyMi); @@ -46,13 +46,13 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyMi); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.LAST_NAME).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(3)); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); @@ -61,39 +61,39 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.middleInitial); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.LAST_NAME).sendKeys(ras_Screener_TestDataManager.lastName); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRelationshipToTheProband)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRelationshipToTheProband).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRelationshipToTheProband).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouTheLegalGuardianOfTheProband)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouTheLegalGuardianOfTheProband).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouTheLegalGuardianOfTheProband).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(83)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.theNextSetOfQuestionsWillCollectBasicInformationAboutTheProband + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast + ". ", myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL COLLECT BASIC INFORMATION ABOUT THE PROBAND TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); @@ -102,34 +102,34 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.dateOfBirthMonth, rasopathyQuestionnairePage.calendarMonthDropDown); rasopathyQuestionnairePage.calendarDayOption.click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(12)); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAlive)); @@ -137,11 +137,11 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAlive).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); @@ -150,24 +150,24 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.dateOfBirthMonth, rasopathyQuestionnairePage.calendarMonthDropDown); rasopathyQuestionnairePage.calendarDayOption.click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); @@ -177,7 +177,7 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.CITY_TEXT).sendKeys(ras_Screener_TestDataManager.city); @@ -185,29 +185,29 @@ public void rasScreenerSubmissionScenario3() { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.ZIP_CODE_TEXT).sendKeys(ras_Screener_TestDataManager.zipcode); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS)); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS)); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); @@ -216,106 +216,106 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchFrameException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.WORK_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.workPhoneNumber); rasopathyQuestionnairePage.dynamicPhoneNumberCheckBox(ras_Screener_Constants.CELL_PHONE_NUMBER).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAParticipantInOtherStudyGroup).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(26)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.toDetermineEligibilityForThisStudy, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING TO DETERMINE ELIGIBILITY FOR THIS STUDY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithFollowingConditions).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithFollowingConditions).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CucumberLogUtils.logScreenshot(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(32)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(27)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(124)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weKnowThatRASopathiesAreAGroup, myRASSurveyPage.dynamicTopText(124).getText(), "-- VERIFYING WE KNOW THAT RASOPATHIES ARE A GROUP TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(123)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveAnyOfYourBiologicalRelativesBeenDiagnosedWithARasopathy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveAnyOfYourBiologicalRelativesBeenDiagnosedWithARasopathy)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(36)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouEverHadGeneticTesting)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouEverHadGeneticTesting)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(69)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weWillNowAskAFewRemainingQuestionsRegarding, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING WE WILL NOW ASK A FEW REMAINING QUESTIONS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(70)); CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); @@ -324,23 +324,23 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); rasopathyQuestionnairePage.dynamicLocatorForHowDidYouHearAboutStudyTextBoxes(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy).sendKeys(ras_Screener_TestDataManager.howDidYouHearAboutThisStudyOtherReason); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(127)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(81)); CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); @@ -350,17 +350,17 @@ public void rasScreenerSubmissionScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy)); rasopathyQuestionnairePage.dynamicLocatorForMainReasonForParticipatingInStudy(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudy).sendKeys(ras_Screener_TestDataManager.whatAreMainReasonsForParticipatingInStudyOtherReason); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(91)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.youAreAlmostDone, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); @@ -373,54 +373,54 @@ public void rasScreenerSubmissionScenario3() { public void rasScreenerIIQFormScenario3() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(14)); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisIsACopyForLowerEnvironmentsText, myRASSurveyPage.dynamicTopText(14).getText(), "-- VERIFYING THIS IS THE COPY FOR LOWER ENVIRONMENTS TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(16)); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.someOfThisInformationText, myRASSurveyPage.dynamicTopText(16).getText(), "-- VERIFYING SOME OF THIS INFORMATION TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(35)); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisFirstSectionOfTheQuestionnaireText, myRASSurveyPage.dynamicTopText(35).getText(), "-- VERIFYING THIS FIRST QUESTION OF THE QUESTIONNAIRE TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(102)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(105)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(105), iiq_TestDataManager.pleaseConfirmTheNameOfThePerson); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(107)); MiscUtils.sleep(2000); rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.forWhichSexDoYouIdentifyRadioButton).click(); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(109)); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); @@ -428,15 +428,15 @@ public void rasScreenerIIQFormScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(110)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouOfAshkenazyJewishDescentRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(111)); MiscUtils.sleep(1000); @@ -444,11 +444,11 @@ public void rasScreenerIIQFormScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouAdoptedRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(112)); MiscUtils.sleep(1000); @@ -456,11 +456,11 @@ public void rasScreenerIIQFormScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouRaisedPrimarilyRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(iiq_TestDataManager.whatIsYourDateOfBirthYearDropDown); @@ -469,14 +469,14 @@ public void rasScreenerIIQFormScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(iiq_TestDataManager.whatIsYourDateOfBirthYearDropDown); CommonUtils.selectDropDownValue(iiq_TestDataManager.whatIsYourDateOfBirthMonthDropDown, rasopathyQuestionnairePage.calendarMonthDropDown); rasopathyQuestionnairePage.iIQcalendarDayOption.click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(158)); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1), iiq_TestDataManager.whereWereYouBornCityTextBox); @@ -484,16 +484,16 @@ public void rasScreenerIIQFormScenario3() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3), iiq_TestDataManager.whereWereYouBornCountryTextBox); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(4), iiq_TestDataManager.whereWereYouBornDontKnowTextBox); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(116)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1,2)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(117)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1,4)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(118)); MiscUtils.sleep(500); @@ -501,87 +501,87 @@ public void rasScreenerIIQFormScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourFammilysReligiousBackgroundCheckBox)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(120)); MiscUtils.sleep(1000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMainOccupationRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(121)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(122)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(36)); CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_ASKS_YOU_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionAsksDetailedMedicalHistoryText.getText(), "-- VERIFYING THIS SECTION ASKS DETAILED MEDICAL HISTORY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(124)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouConceivedUsingVitroRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(127)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); if(!myRASSurveyPage.dynamicTopText(131).isDisplayed()) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(131)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYourBiologicalParentsBloodRelatedRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); if(!rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton).isDisplayed()) { CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); @@ -589,18 +589,18 @@ public void rasScreenerIIQFormScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(133)); MiscUtils.sleep(2000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.pleaseFillOutBirtWeightNumericTextBox); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutBirtWeightUnitDropDown,myRASSurveyPage.dynamicDropDownTwo(1,6)); CommonUtils.clickOnElement(myRASSurveyPage.gaggingRadioButton(1,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(172)); MiscUtils.sleep(3000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.pleaseFillOutHeadNumericTextBox); @@ -610,22 +610,22 @@ public void rasScreenerIIQFormScenario3() { CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutHeadCircumferenceUnitDropDown,myRASSurveyPage.dynamicDropDownTwo(2,6)); CommonUtils.clickOnElement(myRASSurveyPage.gaggingRadioButton(2,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText); CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_WILL_ASK_ABOUT_CANCER_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText.getText(), "-- VERIFYING THIS SECTION WILL ASK ABOUT CANCER TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(134)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(136)); MiscUtils.sleep(2000); @@ -633,18 +633,18 @@ public void rasScreenerIIQFormScenario3() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(140)); MiscUtils.sleep(2000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.pleaseFillTheTableBelowWithHeightNumericTextBox); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillTheTableBelowWithHeightUnitDropDown,myRASSurveyPage.dynamicDropDownTwo(1,6)); CommonUtils.clickOnElement(myRASSurveyPage.gaggingRadioButton(1,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(174)); MiscUtils.sleep(2000); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); @@ -669,27 +669,27 @@ public void rasScreenerIIQFormScenario3() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(4,12)); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(5,12)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(142)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(142), iiq_TestDataManager.atWhatAgeWereYouAtTheHighestWeightTextBox); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(155)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouSoughtMedicalAdviceRegardingFertilityRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouSoughtMedicalAdviceRegardingFertilityRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(100)); CommonUtils.assertEqualsWithMessage(iiq_Constants.YOU_ARE_ALMOST_DONE_TEXT, myRASIIQFormPage.screenerIiqFormYouAreAlmostDoneText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(1000); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); @@ -703,38 +703,38 @@ public void rasScreenerSurveyScenario3PartOne(){ CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThankYouForStartingText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thankYouForStartingTheRASSurveyAndFor,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THANK YOU FOR STARTING THE RAS SURVEY AND FOR YOUR TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThisQuestionMayTakeText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THIS QUESTIONNAIRE MAY TAKE YOU SEVERAL HOURS TO COMPLETE TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheFirstBlockText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE FIRST BLOCK OF QUESTIONS WILL COLLECT TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.toConfirmAreYouCompleting)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyMi); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(55)); MiscUtils.sleep(2000); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.isTheProbandAlive)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(336)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenIncluded)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutBirthAndNeonatalText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutNeonatalHistory,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT BIRTH AND NEONATAL TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(337)); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalMotherCity); @@ -746,102 +746,102 @@ public void rasScreenerSurveyScenario3PartOne(){ CommonUtils.selectDropDownValue(myRASSurveyPage.dynamicDropDownTwo(1,9), momAgeDropdownIndex); CommonUtils.selectDropDownValue(myRASSurveyPage.dynamicDropDownTwo(2,9), fatherDropDownIndex); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(9)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(12)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(12)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(341)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(401)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyVaping)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(403)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(405)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyRecreationalDrugs)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(407)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancy); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 6)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3),ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancyFather); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(410)); MiscUtils.sleep(2000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),ras_Survey_TestDataManager.whatIsTheHeightOfYourBiologicalMother); @@ -851,38 +851,38 @@ public void rasScreenerSurveyScenario3PartOne(){ JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 10)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutHormoneRelatedGrowthText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetHormoneRelatedGrowth,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HORMONE RELATED GROWTH TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario3PartTwo(){ - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(413)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(415)); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); @@ -890,406 +890,406 @@ public void rasScreenerSurveyScenario3PartTwo(){ CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutDevelopmentText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutDevelopment,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT DEVELOPMENT TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(421)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToWalkWithoutSupport)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(424)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(365)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(367)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(368)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); MiscUtils.sleep(1000); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(6)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(6)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); MiscUtils.sleep(1000); } public void rasScreenerSurveyScenario3PartThree() { //*** ATTACHING FILE CAN'T BE AUTOMATED IN QUATRICS. MANUAL TESTING WAS PERFORMED FOR UPLOADING A FILE ******* CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutHeartText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutHeart, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HEART TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(429)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByACardiologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(431)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyStructuralHeartIssues)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(433)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(12)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssues)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssues)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutRASopathyDiagnosesText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextTwoQuestionsWillAskAboutRASopathyDiagnoses, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT TWO QUESTIONS WILL ASK ABOUT RASOPATHY DIAGNOSES TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario3PartFour() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutMedicalHistoryText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGeneralMedicalHistory, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GENERAL MEDICAL HISTORY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 4)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 4)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 4)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 4)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(451)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnOperationOrBiopsy)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(453)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenHospitalizedForAnyReason)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutGiText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGi, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GI TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario3PartFive() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(576)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouToiletTrained)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyBowelMovementsDoYouHavePerWeek, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(579)); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.whatIsTheLongestAmountOfTimeThatHasPassedWithout, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(580)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.ifYouAreNotYetAbleToUseTheToilet)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(581)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAProcedureTestOrStudyToEvaluate)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); } public void rasScreenerSurveyScenario3PartSix() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(305)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBreathingAndTheLungs, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BREATHING AND THE LUNGS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(454)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAPulmonologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(456)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadWheezingOrWhistling)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(457)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithReactiveAirwayDisease)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(458)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheEmergencyRoomForABreathing)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(459)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheHospitalForABreathing)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(330)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutOralHealthAndDental, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT ORAL HEALTH AND DENTAL HISTORY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(529)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouReceiveRegularDentalCare)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(530)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(530), ras_Survey_TestDataManager.whenDidYouLastVisitADentist); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(531)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWasTheReasonForYourLastDentalVisitOption)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(532)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourGumsBleedRegularlyWithToothBrushing)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(533)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourTeethOrGumsHurtRegularly)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(534)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHavePeriodontalOrGumDisease)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(535)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadDentalSealantsPlaced)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(536)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouCurrentlyHaveCavities)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(537)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouPreviouslyHadAnyDentalFillings)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(538)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doesYourMouthUsuallyFeelDry)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(539)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateTheOverallHealth)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(540)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateYourDentalHygieneRoutine)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(541)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfSmell)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(542)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfTaste)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(543)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveJawOrTemporomandibularJointPain)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(544)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveFrequentHeadaches)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(545)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyOrthodonticTreatment)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(547)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyFacialOrDentalTrauma)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(548)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadElectiveJawSurgery)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(549)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(550)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(551)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyNumbnessInOrAroundYourMouth)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(552)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyMouthSores)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(553)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourTeethFeelSensitiveToHotOrColdFoods)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(554)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveProblemsMovingYourLipsTongueOrMouth)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(555)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); String[] clickingOnOptionInMultiplePages = {ras_Survey_TestDataManager.haveYouHadTroublePronouncingAnyWords, ras_Survey_TestDataManager.haveYouFeltThatYourSenseOfTasteHasWorsened, ras_Survey_TestDataManager.haveYouHadPainfulAchingInYourMouth, @@ -1309,7 +1309,7 @@ public void rasScreenerSurveyScenario3PartSix() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(jjj)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(clickingOnOptionInMultiplePages[jjj-556])); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); } } @@ -1317,189 +1317,189 @@ public void rasScreenerSurveyScenario3PartSeven() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(306)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutFluidBalance, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT FLUID BALANCE AND IF ANY FLUID BUILDS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(460)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithALymphaticSystemIssue)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(332)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutTheKidneys, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT THE KIDNEYS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(463)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANephrologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(465)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAKidneyProblem)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(309)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutHairAndSkinQualities, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT HAIR AND SKIN QUALITIES TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario3PartEight() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(468)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByADermatologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(4)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(4)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(471)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.isTheTextureOrAmountOfYourHairSimilar)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(473)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(474)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyHemangiomas)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(475)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(310)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutSkeletalConditions, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT SKELETAL CONDITIONS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(476)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnOrthopaedicSurgeon)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(478)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(6)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(479)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyIssuesWithCurvingOfTheSpine)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(482)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.hasYourNeckBeenDescribedAsShortOrWebbed)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(483)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithJointIssues)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(311)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBloodDisorders, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BLOOD DISORDERS TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario3PartNine() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(486)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAHematologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(488)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager. doYouHaveIssuesWithBleedingOrBruising)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(491)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyKnownBloodDisorders)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(494)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(8)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(496)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfFrequentInfections)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(497)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnImmunologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(501)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnAutoimmuneDisorder)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(312)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutNervousSystem, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT NERVOUS SYSTEM TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario3PartTen() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(504)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANeurologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(506)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAStructuralBrainAbnormality)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(509)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfSeizures)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(512)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAPsychiatrist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(514)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithABehavioral)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(249)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(249), ras_Survey_TestDataManager.pleaseListAndDescribeAnyAdditionalNeurologicConditions); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(313)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutVisionAndHearing, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT VISION AND HEARING TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(517)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithPtosis)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(519)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyIssuesWithYourVision)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(520)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(7)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(522)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedStabismus)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(524)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedNystagmus)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(525)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouExperiencedHearingLoss)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(528)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(4)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(297)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(297), ras_Survey_TestDataManager.ifThereAreAnyOtherHealthIssues); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(298)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.youAreAlmostDoneSurvey, myRASSurveyPage.dynamicTopText(298).getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); MiscUtils.sleep(1000); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); MiscUtils.sleep(1000); CucumberLogUtils.logScreenshot(); ServiceNow_Common_Methods.logOutOfNativeView(); diff --git a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario4StepsImpl.java b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario4StepsImpl.java index 53454a7eb..5173c1d57 100644 --- a/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario4StepsImpl.java +++ b/src/test/java/ServiceNow/CHARMS/StepsImplementation/RASStudy/RasScenario4StepsImpl.java @@ -24,21 +24,21 @@ public void rasScreenerSubmissionScenario4() { CucumberLogUtils.logScreenshot(); JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.studyNextButton); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); if(!rasopathyQuestionnairePage.iAmCompletingThisFormForMyselfOption.isDisplayed()){ - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouCompletingThisFormForSomeoneElseOrYourself).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouCompletingThisFormForSomeoneElseOrYourself).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyMi); @@ -46,13 +46,13 @@ public void rasScreenerSubmissionScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyMi); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.LAST_NAME).sendKeys(ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(3)); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); @@ -61,39 +61,39 @@ public void rasScreenerSubmissionScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.FIRST_NAME).sendKeys(ras_Screener_TestDataManager.firstName); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.MIDDLE_INITIAL).sendKeys(ras_Screener_TestDataManager.middleInitial); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.LAST_NAME).sendKeys(ras_Screener_TestDataManager.lastName); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRelationshipToTheProband)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRelationshipToTheProband).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRelationshipToTheProband).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouTheLegalGuardianOfTheProband)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouTheLegalGuardianOfTheProband).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouTheLegalGuardianOfTheProband).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(83)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.theNextSetOfQuestionsWillCollectBasicInformationAboutTheProband + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst + " " + ras_Screener_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast + ". ", myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL COLLECT BASIC INFORMATION ABOUT THE PROBAND TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); @@ -102,34 +102,34 @@ public void rasScreenerSubmissionScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(ras_Screener_TestDataManager.dateOfBirthYear); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.dateOfBirthMonth, rasopathyQuestionnairePage.calendarMonthDropDown); rasopathyQuestionnairePage.calendarDayOption.click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.sexAssignedAtBirthOption).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.areYouAdoptedOption).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(12)); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAlive)); @@ -137,21 +137,21 @@ public void rasScreenerSubmissionScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAlive).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.countryOption, rasopathyQuestionnairePage.whatCountryDoesParticipantCurrentlyLiveInDropDown); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); @@ -161,7 +161,7 @@ public void rasScreenerSubmissionScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_ADDRESS).sendKeys(ras_Screener_TestDataManager.street); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.STREET_2_ADDRESS).sendKeys(ras_Screener_TestDataManager.street2); rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.CITY_TEXT).sendKeys(ras_Screener_TestDataManager.city); @@ -169,29 +169,29 @@ public void rasScreenerSubmissionScenario4() { rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_Constants.ZIP_CODE_TEXT).sendKeys(ras_Screener_TestDataManager.zipcode); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS)); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddress); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS)); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicEmailAddressTextBox(ras_Screener_Constants.CONFIRM_EMAIL_ADDRESS).sendKeys(ras_Screener_TestDataManager.emailAddressConfirm); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); @@ -200,34 +200,34 @@ public void rasScreenerSubmissionScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchFrameException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.HOME_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.homePhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.CELL_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.cellPhoneNumber); rasopathyQuestionnairePage.dynamicTextBoxLocatorForPhoneNumbers(ras_Screener_Constants.WORK_PHONE_NUMBER).sendKeys(ras_Screener_TestDataManager.workPhoneNumber); rasopathyQuestionnairePage.dynamicPhoneNumberCheckBox(ras_Screener_Constants.CELL_PHONE_NUMBER).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourEthnicity).click(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.whatIsYourRace), ras_Screener_TestDataManager.whatIsYourRaceOther); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.whatIsYourRace).click(); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.whatIsYourRace), ras_Screener_TestDataManager.whatIsYourRaceOther); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption2)); @@ -236,11 +236,11 @@ public void rasScreenerSubmissionScenario4() { CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption2), ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption2Other); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption3), ras_Screener_TestDataManager.isTheProbandAParticipantInAnyOtherResearchStudyOrRegistryGroupOption3Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(26)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.toDetermineEligibilityForThisStudy, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING TO DETERMINE ELIGIBILITY FOR THIS STUDY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(31)); for(int z = 1; z < 12 ; z++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(z)); @@ -248,16 +248,16 @@ public void rasScreenerSubmissionScenario4() { JavascriptUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicEnterTextOnCheckboxesScreener(11)); CommonUtils.sendKeysToElement(rasopathyQuestionnairePage.dynamicEnterTextOnCheckboxesScreener(11), ras_Screener_TestDataManager.haveYouEverBeenDiagnosedWithTheFollowingConditionsOption11Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithCancer).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6)); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.pleaseCompleteTheBoxBelowBySelectingWhichPrimaryCancersColumn1Option1, myRASSurveyPage.selectFromDynamicdropDown(1)); CommonUtils.selectDropDownValue(ras_Screener_TestDataManager.pleaseCompleteTheBoxBelowBySelectingWhichPrimaryCancersColumn1Option2, myRASSurveyPage.selectFromDynamicdropDown(2)); @@ -280,66 +280,66 @@ public void rasScreenerSubmissionScenario4() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3,15)); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(4,15)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouBeenDiagnosedWithARasopathy)); CommonUtils.clickOnElement(myRASSurveyPage.rasSurveyYesRadioButton); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.forWhichSpecificRASopathy)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Screener_TestDataManager.forWhichSpecificRASopathy), ras_Screener_TestDataManager.forWhichSpecificRASopathyOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopTextBox(29)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicTopTextBox(29), ras_Screener_TestDataManager.ageAtDiagnosis); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopTextBox(30)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicTopTextBox(30), ras_Screener_TestDataManager.yearOfDiagnosisRas); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(124)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weKnowThatRASopathiesAreAGroup, myRASSurveyPage.dynamicTopText(124).getText(), "-- VERIFYING WE KNOW THAT RASOPATHIES ARE A GROUP TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(123)); CommonUtils.clickOnElement(myRASSurveyPage.rasSurveyYesRadioButton); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(36)); CommonUtils.clickOnElement(myRASSurveyPage.rasSurveyYesRadioButton); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(102)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.doYouHaveACopyOfTheGenetic).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.doYouHaveACopyOfTheGenetic).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(125)); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.howWouldYouLikeToProvideTheGeneticTest).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.howWouldYouLikeToProvideTheGeneticTest).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(41)); //*** ATTACHING FILE CAN'T BE AUTOMATED IN QUATRICS. MANUAL TESTING WAS PERFORMED FOR UPLOADING A FILE ******* CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(40)); for(int a = 1; a < 9 ; a++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(a)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(69)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.weWillNowAskAFewRemainingQuestionsRegarding, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING WE WILL NOW ASK A FEW REMAINING QUESTIONS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(70)); CommonUtils.scrollIntoView(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); @@ -348,23 +348,23 @@ public void rasScreenerSubmissionScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicTextBoxLocator(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy)); rasopathyQuestionnairePage.dynamicLocatorForHowDidYouHearAboutStudyTextBoxes(ras_Screener_TestDataManager.howDidYouHearAboutThisStudy).sendKeys(ras_Screener_TestDataManager.howDidYouHearAboutThisStudyOtherReason); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(127)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Screener_TestDataManager.haveYouOrOtherFamilyMembersParticipatedInOtherStudy)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(97)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Screener_TestDataManager.pleaseProvideTheInformationRegardingPreviousParticipationColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), ras_Screener_TestDataManager.pleaseProvideTheInformationRegardingPreviousParticipationColumn2Option1); @@ -391,7 +391,7 @@ public void rasScreenerSubmissionScenario4() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 15), ras_Screener_TestDataManager.pleaseProvideTheInformationRegardingPreviousParticipationColumn5Option4); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 16), ras_Screener_TestDataManager.pleaseProvideTheInformationRegardingPreviousParticipationColumn6Option4); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(81)); for(int b = 1; b < 5 ; b++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(b)); @@ -401,11 +401,11 @@ public void rasScreenerSubmissionScenario4() { CommonUtils.sendKeysToElement(myRASSurveyPage.screenerDynamicOtherTextBox(ras_Screener_TestDataManager.whatAreTheMainReasonsForParticipatingOptin3), ras_Screener_TestDataManager.whatAreTheMainReasonsForParticipatingOptin3Other); CommonUtils.sendKeysToElement(myRASSurveyPage.screenerDynamicOtherTextBox(ras_Screener_TestDataManager.whatAreTheMainReasonsForParticipatingOptin4), ras_Screener_TestDataManager.whatAreTheMainReasonsForParticipatingOptin4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(91)); CommonUtils.assertEqualsWithMessage(ras_Screener_TestDataManager.youAreAlmostDone, myRASSurveyPage.rasScreenerText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); CucumberLogUtils.logScreenshot(); ServiceNow_Common_Methods.logOutOfNativeView(); @@ -417,53 +417,53 @@ public void rasScreenerSubmissionScenario4() { public void rasScreenerIIQFormScenario4() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(14)); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisIsACopyForLowerEnvironmentsText, myRASSurveyPage.dynamicTopText(14).getText(), "-- VERIFYING THIS IS THE COPY FOR LOWER ENVIRONMENTS TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(16)); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.someOfThisInformationText, myRASSurveyPage.dynamicTopText(16).getText(), "-- VERIFYING SOME OF THIS INFORMATION TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(35)); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.thisFirstSectionOfTheQuestionnaireText, myRASSurveyPage.dynamicTopText(35).getText(), "-- VERIFYING THIS FIRST QUESTION OF THE QUESTIONNAIRE TEXT --"); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouCompletingThisFormForYourselfRadioButton).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(105)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(105), iiq_TestDataManager.pleaseConfirmTheNameOfThePerson); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourBiologicalSexRadioButton).click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(107)); MiscUtils.sleep(2000); rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.forWhichSexDoYouIdentifyRadioButton).click(); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouConsiderYourselfToBeRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(109)); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); @@ -471,15 +471,15 @@ public void rasScreenerIIQFormScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourRaceCheckBox)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(110)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouOfAshkenazyJewishDescentRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(111)); MiscUtils.sleep(1000); @@ -487,11 +487,11 @@ public void rasScreenerIIQFormScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYouAdoptedRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(112)); MiscUtils.sleep(1000); @@ -499,17 +499,17 @@ public void rasScreenerIIQFormScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouRaisedPrimarilyRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), iiq_TestDataManager.sinceWasNotPrimarilyRaisedColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), iiq_TestDataManager.sinceWasNotPrimarilyRaisedColumn2); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(iiq_TestDataManager.whatIsYourDateOfBirthYearDropDown); @@ -518,14 +518,14 @@ public void rasScreenerIIQFormScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); rasopathyQuestionnairePage.calendarYearTextBox.clear(); rasopathyQuestionnairePage.calendarYearTextBox.sendKeys(iiq_TestDataManager.whatIsYourDateOfBirthYearDropDown); CommonUtils.selectDropDownValue(iiq_TestDataManager.whatIsYourDateOfBirthMonthDropDown, rasopathyQuestionnairePage.calendarMonthDropDown); rasopathyQuestionnairePage.iIQcalendarDayOption.click(); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(158)); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1), iiq_TestDataManager.whereWereYouBornCityTextBox); @@ -533,16 +533,16 @@ public void rasScreenerIIQFormScenario4() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3), iiq_TestDataManager.whereWereYouBornCountryTextBox); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(4), iiq_TestDataManager.whereWereYouBornDontKnowTextBox); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(116)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1,2)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(117)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesIiqTable(1,4)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(118)); MiscUtils.sleep(500); @@ -550,94 +550,94 @@ public void rasScreenerIIQFormScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourFammilysReligiousBackgroundCheckBox)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMaritalStatusCheckBox)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(120)); MiscUtils.sleep(1000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsYourMainOccupationRadioButton)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.whatHasBeenYourUsualJobOther ); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(121)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouCurrentlyHaveHealthInsuranceRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(122)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheTotalCombinedYearlyIncomeRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatIsTheHighestLevelOfSchoolingRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(36)); CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_ASKS_YOU_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionAsksDetailedMedicalHistoryText.getText(), "-- VERIFYING THIS SECTION ASKS DETAILED MEDICAL HISTORY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(124)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouConceivedUsingVitroRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wasProbandConceivedThroughADonorEgg)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wasProbandConceivedThroughADonorEgg)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wasPreimplantationGeneticTesting)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wasPreimplantationGeneticTesting)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(127)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); if(!myRASSurveyPage.dynamicTopText(128).isDisplayed()) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wereYouATwinRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(128)); MiscUtils.sleep(3000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.whatTypeOfBirthWas)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(3000); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(40)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.InTheTableBelowPleaseGiveTheNamesColumn1Option1); @@ -659,40 +659,40 @@ public void rasScreenerIIQFormScenario4() { CommonUtils.selectDropDownValue(iiq_TestDataManager.InTheTableBelowPleaseGiveTheNamesColumn2Option5,myRASSurveyPage.dynamicDropDownTwo(5,6)); CommonUtils.selectDropDownValue(iiq_TestDataManager.InTheTableBelowPleaseGiveTheNamesColumn2Option6,myRASSurveyPage.dynamicDropDownTwo(6,6)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(131)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.areYourBiologicalParentsBloodRelatedRadioButton)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); if(!myRASSurveyPage.dynamicTopText(42).isDisplayed()) { CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); } CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(42)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.howAreTheBiologicalParentsBloodRelated)); CommonUtils.sendKeys(myRASSurveyPage.HowAreYourBiologicalTextArea, iiq_TestDataManager.howAreTheBiologicalParentsBloodRelatedOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.wouldYouSayYouWereBornRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(133)); MiscUtils.sleep(2000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.pleaseFillOutBirtWeightNumericTextBox); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutBirtWeightUnitDropDown,myRASSurveyPage.dynamicDropDownTwo(1,6)); CommonUtils.clickOnElement(myRASSurveyPage.gaggingRadioButton(1,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(172)); MiscUtils.sleep(3000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.pleaseFillOutHeadNumericTextBox); @@ -702,22 +702,22 @@ public void rasScreenerIIQFormScenario4() { CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillOutHeadCircumferenceUnitDropDown,myRASSurveyPage.dynamicDropDownTwo(2,6)); CommonUtils.clickOnElement(myRASSurveyPage.gaggingRadioButton(2,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText); CommonUtils.assertEqualsWithMessage(iiq_Constants.THIS_SECTION_WILL_ASK_ABOUT_CANCER_TEXT, myRASIIQFormPage.screenerIiqFormThisSectionWillAskAboutCancerText.getText(), "-- VERIFYING THIS SECTION WILL ASK ABOUT CANCER TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(134)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverBeenDiagnosedWithAnyCancerRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); MiscUtils.sleep(2000); for (int k = 1; k < 17; k++) { @@ -729,7 +729,7 @@ public void rasScreenerIIQFormScenario4() { CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(15), iiq_TestDataManager.pleaseSelectOrReportAnyPrimaryTumorsOther15); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(16), iiq_TestDataManager.pleaseSelectOrReportAnyPrimaryTumorsOther16); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(63)); String[] primaryCancerTumor1 = {iiq_TestDataManager.forEachPrimaryCancerOrTumorColumn1Option1, iiq_TestDataManager.forEachPrimaryCancerOrTumorColumn1Option2, @@ -832,18 +832,18 @@ public void rasScreenerIIQFormScenario4() { } } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(136)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.haveYouEverHadMedicalGeneticTestingRadioButton)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicDropDownTwo(1,3)); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseProvideTheDetailsForTheGeneticTestingColumn1Option1,myRASSurveyPage.dynamicDropDownTwo(1,3)); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseProvideTheDetailsForTheGeneticTestingColumn1Option2,myRASSurveyPage.dynamicDropDownTwo(2,3)); @@ -864,28 +864,28 @@ public void rasScreenerIIQFormScenario4() { CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseProvideTheDetailsForTheGeneticTestingColumn6Option2,myRASSurveyPage.dynamicDropDownTwo(2,14)); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseProvideTheDetailsForTheGeneticTestingColumn6Option3,myRASSurveyPage.dynamicDropDownTwo(3,14)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(166)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouHaveACopyOfTheGeneticTestResults)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.doYouHaveACopyOfTheGeneticTestResults)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(2000); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(140)); MiscUtils.sleep(2000); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),iiq_TestDataManager.pleaseFillTheTableBelowWithHeightNumericTextBox); CommonUtils.selectDropDownValue(iiq_TestDataManager.pleaseFillTheTableBelowWithHeightUnitDropDown,myRASSurveyPage.dynamicDropDownTwo(1,6)); CommonUtils.clickOnElement(myRASSurveyPage.gaggingRadioButton(1,9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(174)); MiscUtils.sleep(2000); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); @@ -910,71 +910,71 @@ public void rasScreenerIIQFormScenario4() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(4,12)); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(5,12)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(142)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(142), iiq_TestDataManager.atWhatAgeWereYouAtTheHighestWeightTextBox); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(79)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.ageAtFirstMenstrualPeriodOption1Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(80)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.mostRecentMenstrualPeriodOption1Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(81)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.ifAPeriodHasNotOccurredForTheLast12Months)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.ifAPeriodHasNotOccurredForTheLast12Months)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(143)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverBeenPregnant)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverBeenPregnant)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(162)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(162), iiq_TestDataManager.whatWasProbandAgeAtTheirFirstPregnancy); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(160)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(160), iiq_TestDataManager.howManyTimesHasProbandBeenPregnant); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(144)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverTriedToBecomePregnant)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverTriedToBecomePregnant)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(145)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverConsultedADoctorInGettingPregnant)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(146)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(146), iiq_TestDataManager.howOldWasProbandWhenTheyFirstConsultedADoctor); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(10)); MiscUtils.sleep(2000); for (int s = 1; s < 11; s++) { @@ -982,28 +982,28 @@ public void rasScreenerIIQFormScenario4() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(10), iiq_TestDataManager.whatDiagnosisWasMadeToExplainOption10); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(151)); MiscUtils.sleep(2000); CommonUtils.assertEqualsWithMessage(iiq_TestDataManager.theNextFewQuestionsAskAboutBeingPrescribedFemaleHormones, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT FEW QUESTIONS ASK ABOUT BEING PRESCRIBED FEMALE HORMONES TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(153)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverTakenPillsInjections)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.hasProbandEverTakenPillsInjections)); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(147)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(iiq_TestDataManager.sometimesWomenAreGivenFemaleHormones)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(148)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); @@ -1011,23 +1011,23 @@ public void rasScreenerIIQFormScenario4() { CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.atWhatAgeWasProbandPrescribedFemaleHormones); CucumberLogUtils.logScreenshot(); } - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(149)); MiscUtils.sleep(2000); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(1)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), iiq_TestDataManager.whatIsTheTotalAmountOfTimeProbandHasTakenHormoneOther1); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(100)); CommonUtils.assertEqualsWithMessage(iiq_Constants.YOU_ARE_ALMOST_DONE_TEXT, myRASIIQFormPage.screenerIiqFormYouAreAlmostDoneText.getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); - ras_scenario_one_stepsImpl.clickOnScreenerNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnScreenerNextButton(); MiscUtils.sleep(3000); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); @@ -1041,42 +1041,42 @@ public void rasScreenerSurveyScenario4PartOne(){ CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThankYouForStartingText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thankYouForStartingTheRASSurveyAndFor,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THANK YOU FOR STARTING THE RAS SURVEY AND FOR YOUR TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyThisQuestionMayTakeText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THIS QUESTIONNAIRE MAY TAKE YOU SEVERAL HOURS TO COMPLETE TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheFirstBlockText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.thisQuestionnaireMayTakeYouSeveral,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE FIRST BLOCK OF QUESTIONS WILL COLLECT TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.toConfirmAreYouCompleting)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyFirst); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyMi); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.whatIsTheNameOfThePersonWhoMayBeEligibleForThisStudyLast); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(55)); MiscUtils.sleep(2000); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.isTheProbandAlive)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(336)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenIncluded)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyPleaseProvideAnyAdditionalInformationTextBox); CommonUtils.sendKeysToElement(myRASSurveyPage.rasSurveyPleaseProvideAnyAdditionalInformationTextBox, ras_Survey_TestDataManager.pleaseProvideAnyAdditionalInformation); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutBirthAndNeonatalText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutNeonatalHistory,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT BIRTH AND NEONATAL TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalMotherCity); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalFatherCity); @@ -1085,19 +1085,19 @@ public void rasScreenerSurveyScenario4PartOne(){ CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalMotherAge, myRASSurveyPage.dynamicDropDownTwo(1, 9)); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.ras_Survey_TestDataManager.pleaseCompleteYourBiologicalParentsBiologicalFatherAge, myRASSurveyPage.dynamicDropDownTwo(2, 9)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithHypoglycemia)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption1)); @@ -1110,7 +1110,7 @@ public void rasScreenerSurveyScenario4PartOne(){ CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouDiagnosedWithAnyOfTheFollowingDuringPregnancyOption2)); @@ -1122,25 +1122,25 @@ public void rasScreenerSurveyScenario4PartOne(){ CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYou)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); for(int i = 1;i < 9;i++){ CommonUtils.clickOnElement(myRASSurveyPage.dynamicLocatorRadioButtonNormal("" + i)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckWithRadioButtons(8), ras_Survey_TestDataManager.pleaseIndicateTheResultsOfThePrenatalTestsOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(44)); for (int n = 1; n < 11; n++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(n)); @@ -1149,19 +1149,19 @@ public void rasScreenerSurveyScenario4PartOne(){ CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(9), ras_Survey_TestDataManager.wasYourBiologicalMotherDiagnosedOption9PleaseSpecify); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(10), ras_Survey_TestDataManager.wasYourBiologicalMotherDiagnosedOption10PleaseSpecify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.duringHerPregnancyWithYouSupplements)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseSelectAllMedicationsYourMotherTookOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseSelectAllMedicationsYourMotherTookOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseSelectAllMedicationsYourMotherTookOption2)); @@ -1181,7 +1181,7 @@ public void rasScreenerSurveyScenario4PartOne(){ CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(13), ras_Survey_TestDataManager.pleaseSelectAllMedicationsYourMotherTookOption14PleaseSpecify); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(15), ras_Survey_TestDataManager.pleaseSelectAllMedicationsYourMotherTookOption15PleaseSpecify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); MiscUtils.sleep(2000); String[] column1Values = {ras_Survey_TestDataManager.pleaseProvideDetailsOfTheMedicationTakenColumn1Option1, ras_Survey_TestDataManager.pleaseProvideDetailsOfTheMedicationTakenColumn1Option2, @@ -1238,19 +1238,19 @@ public void rasScreenerSurveyScenario4PartOne(){ CommonUtils.selectDropDownValue(dropDownValues[b-1],myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationdropDown(b)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyTobacco)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption2)); @@ -1260,19 +1260,19 @@ public void rasScreenerSurveyScenario4PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption6)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whatTobaccoProductsDidYourBiologicalMotherOption6PleaseSpecify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyVaping)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyVaping)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyVaping)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption2)); @@ -1286,19 +1286,19 @@ public void rasScreenerSurveyScenario4PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption10)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whichVapingProductsDidYourMotherUseOption10PleaseSpecify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherDrink)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption2)); @@ -1307,19 +1307,19 @@ public void rasScreenerSurveyScenario4PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption5)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.WhatAlcoholicBeveragesDidYourMotherDrinkOption5Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyRecreationalDrugs)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyRecreationalDrugs)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherUseAnyRecreationalDrugs)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatRecreationalDrugOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatRecreationalDrugOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatRecreationalDrugOption2)); @@ -1334,19 +1334,19 @@ public void rasScreenerSurveyScenario4PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatRecreationalDrugOption11)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whatRecreationalDrugOption11Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYourBiologicalMotherEverLiveWhereSmokedCigarettes)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatProductsWereUsedAroundOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatProductsWereUsedAroundOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatProductsWereUsedAroundOption2)); @@ -1354,14 +1354,14 @@ public void rasScreenerSurveyScenario4PartOne(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatProductsWereUsedAroundOption4)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whatProductsWereUsedAroundOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancy); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 6)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3),ras_Survey_TestDataManager.biologicalMotherOccupationDuringPregnancyFather); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(410)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),ras_Survey_TestDataManager.whatIsTheHeightOfYourBiologicalMother); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 6)); @@ -1370,44 +1370,44 @@ public void rasScreenerSurveyScenario4PartOne(){ JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 6)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 10)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.rasSurveyTheNextSetOfQuestionsWillAskAboutHormoneRelatedGrowthText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetHormoneRelatedGrowth,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HORMONE RELATED GROWTH TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario4PartTwo(){ - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnEndocrinologist)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1),ras_Survey_TestDataManager.whatIsTheNameOfTheEndocrinologistDoctor); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(2),ras_Survey_TestDataManager.whatIsTheNameOfTheEndocrinologistLocation); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3),ras_Survey_TestDataManager.whatIsTheNameOfTheEndocrinologistHospital); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadGrowthHormoneTesting)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption2)); @@ -1415,26 +1415,26 @@ public void rasScreenerSurveyScenario4PartTwo(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption4)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.whatWereTheResultsOfYourGrowthHormoneOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedGrowthHormoneTreatment)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(416)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), ras_Survey_TestDataManager.whatWasYourHeightBeforeStartingGrowthHormoneHeight); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.howManyTimesHaveYouReceivedGrowthHormoneTreatmentDropDown); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyTimesHaveYouReceivedGrowthHormoneTreatment,myRASSurveyPage.howManyTimesHaveYouReceivedGrowthHormoneTreatmentDropDown); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3),ras_Survey_TestDataManager.pleaseProvideTheDetailsOfGrowthHormoneReplacementAgeStart); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4),ras_Survey_TestDataManager.pleaseProvideTheDetailsOfGrowthHormoneReplacementAgeStopped); @@ -1442,160 +1442,160 @@ public void rasScreenerSurveyScenario4PartTwo(){ CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 8),ras_Survey_TestDataManager.pleaseProvideTheDetailsOfGrowthHormoneReplacementDateStopped); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 11)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutDevelopmentText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutDevelopment,myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT DEVELOPMENT TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.wereYouEverDiagnosedWithHypotoniaAsAnInfantOrChild)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToSitWithoutSupport)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(421)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToWalkWithoutSupport)); CucumberLogUtils.logScreenshot(); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(422)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedPhysicalTherapy)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(423)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWereYouAbleToUseSimpleTwoWordPhrases)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(424)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.howWouldYouDescribeYourCurrentSpeechCapabilities)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedSpeechTherapy)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf3And6YearsOld)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouReceiveOccupationalTherapyBetween3And6YearsOfAge)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf6And10)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.betweenTheAgesOf10And17)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateTheHighestDegree)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatIsYourCurrentEmploymentStatus)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption2)); @@ -1603,54 +1603,54 @@ public void rasScreenerSurveyScenario4PartTwo(){ JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption4)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithLearningDifferencesOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); } public void rasScreenerSurveyScenario4PartThree() { //*** ATTACHING FILE CAN'T BE AUTOMATED IN QUATRICS. MANUAL TESTING WAS PERFORMED FOR UPLOADING A FILE ******* CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextSetOfQuestionsWillAskAboutHeartText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutHeart, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT HEART TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByACardiologist)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByACardiologist)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByACardiologist)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1), ras_Survey_TestDataManager.whatIsTheNameOfTheCardiologistDoctor); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(2), ras_Survey_TestDataManager.whatIsTheNameOfTheCardiologistLocation); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3), ras_Survey_TestDataManager.whatIsTheNameOfTheCardiologistHospital); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyStructuralHeartIssues)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyStructuralHeartIssues)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyStructuralHeartIssues)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(432)); for (int m = 1; m < 7; m++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(m)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(6), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingStructuralHeartIssuesOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption2)); @@ -1664,7 +1664,7 @@ public void rasScreenerSurveyScenario4PartThree() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption10)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingSymptomsOption11)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); String[] column1Value = {ras_Survey_TestDataManager.pleaseProvideInformationForTheFIRSTTreatmentColumn1Option1, ras_Survey_TestDataManager.pleaseProvideInformationForTheFIRSTTreatmentColumn1Option2, ras_Survey_TestDataManager.pleaseProvideInformationForTheFIRSTTreatmentColumn1Option3, @@ -1778,19 +1778,19 @@ public void rasScreenerSurveyScenario4PartThree() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(l, 16), column8Value[l - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedTreatmentForHeartProblems)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedTreatmentForHeartProblems)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverReceivedTreatmentForHeartProblems)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(436)); for (int ll = 1; ll < 5; ll++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(ll)); @@ -1798,7 +1798,7 @@ public void rasScreenerSurveyScenario4PartThree() { CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(1), ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingTreatmentsForHeartOption1Specify); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.haveYouEverHadAnyOfTheFollowingTreatmentsForHeartOption4Specify); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] column1ValueFirstTreatment = {ras_Survey_TestDataManager.pleaseProvidingInformationForFirstAndMostRecentTreatmentColumn1Option1, ras_Survey_TestDataManager.pleaseProvidingInformationForFirstAndMostRecentTreatmentColumn1Option2, @@ -1857,30 +1857,30 @@ public void rasScreenerSurveyScenario4PartThree() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(t, 16), column8ValueFirstTreatment[t - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); try { CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouStillOn)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouStillOn)); CucumberLogUtils.logScreenshot(); } catch (NoSuchElementException e) { e.printStackTrace(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouStillOn)); CucumberLogUtils.logScreenshot(); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(440)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssues)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(441)); for (int mm = 1; mm < 5; mm++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(mm)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyFunctionalHeartIssuesOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] column1ValueConditions = {ras_Survey_TestDataManager.pleaseProvideAnyDetailsKnownForTheConditionsColumn1Option1, ras_Survey_TestDataManager.pleaseProvideAnyDetailsKnownForTheConditionsColumn1Option2, @@ -1939,17 +1939,17 @@ public void rasScreenerSurveyScenario4PartThree() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(tt, 16), column8ValueConditions[tt - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutRASopathyDiagnosesText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextTwoQuestionsWillAskAboutRASopathyDiagnoses, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT TWO QUESTIONS WILL ASK ABOUT RASOPATHY DIAGNOSES TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario4PartFour() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithARASopathy)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption2)); @@ -1962,52 +1962,52 @@ public void rasScreenerSurveyScenario4PartFour() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption9)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.pleaseIndicateIfYouHaveBeenDiagnosedWithRASopathiesOption9Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutMedicalHistoryText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGeneralMedicalHistory, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GENERAL MEDICAL HISTORY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAPrimaryCareProvider)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1), ras_Survey_TestDataManager.pleaseProvideTheInformationForYourPrimaryCareProviderBelowDoctor); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(2), ras_Survey_TestDataManager.pleaseProvideTheInformationForYourPrimaryCareProviderBelowLocation); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3), ras_Survey_TestDataManager.pleaseProvideTheInformationForYourPrimaryCareProviderBelowHospital); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 3)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.addButton); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteAllMedicationsToWhichYouAreAllergicColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), ras_Survey_TestDataManager.pleaseCompleteAllMedicationsToWhichYouAreAllergicColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(449)); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteAllFoodsToWhichYouAreAllergicColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), ras_Survey_TestDataManager.pleaseCompleteAllFoodsToWhichYouAreAllergicColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(450)); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteAllOtherToWhichYouAreAllergicColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 6), ras_Survey_TestDataManager.pleaseCompleteAllOtherToWhichYouAreAllergicColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnOperationOrBiopsy)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnOperationOrBiopsy)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.addButton); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); @@ -2018,11 +2018,11 @@ public void rasScreenerSurveyScenario4PartFour() { CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.pleaseProvideTheInformationForEachBiopsyColumn5, myRASSurveyPage.dynamicDropDownTwo(1, 11)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 14), ras_Survey_TestDataManager.pleaseProvideTheInformationForEachBiopsyColumn6); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenHospitalizedForAnyReason)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenHospitalizedForAnyReason)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.addButton); JavascriptUtils.clickByJS(myRASSurveyPage.addButton); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); @@ -2032,21 +2032,21 @@ public void rasScreenerSurveyScenario4PartFour() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 8), ras_Survey_TestDataManager.pleaseProvideTheInformationForEachHospitalizationColumn4); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(1, 11), ras_Survey_TestDataManager.pleaseProvideTheInformationForEachHospitalizationColumn5); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.theNextTwoQuestionsWillAskAboutGiText); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutGi, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT GI TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAGastroenterologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(1), ras_Survey_TestDataManager.pleaseProvideTheDetailsForTheGastroenterologistDoctor); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(2), ras_Survey_TestDataManager.pleaseProvideTheDetailsForTheGastroenterologistLocation); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInDoctorLocationHospitalTextBox(3), ras_Survey_TestDataManager.pleaseProvideTheDetailsForTheGastroenterologistHospital); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption2)); @@ -2056,29 +2056,29 @@ public void rasScreenerSurveyScenario4PartFour() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption6)); CommonUtils.sendKeysToElement(myRASSurveyPage.otherPleaseSpecifyTextBox, ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingFeedingDifficultiesOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheNasogastricOrNasojejunalTubePlaced)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheNasogastricOrNasojejunalTubePlaced)); CommonUtils.sendKeysToElement(myRASSurveyPage.agePleaseSpecifyTextBox, ras_Survey_TestDataManager.atWhatAgeWasTheNasogastricOrNasojejunalTubePlacedAge); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(123)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubePlaced)); CommonUtils.sendKeysToElement(myRASSurveyPage.agePleaseSpecifyTextBox, ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubePlacedAge); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubeRemoved)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubeRemoved)); CommonUtils.sendKeysToElement(myRASSurveyPage.agePleaseSpecifyTextBox, ras_Survey_TestDataManager.atWhatAgeWasTheGastrostomyGtubeRemovedAge); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.HaveYouEverHadAnyPhysicalSymptoms)); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario4PartFive() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption2)); @@ -2102,26 +2102,26 @@ public void rasScreenerSurveyScenario4PartFive() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption20)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whichOfTheFollowingSymptomsRelatedToTheGIOption21)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); for (int u = 1; u < 22; u++) { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(u, 3)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.gaggingRadioButton(1, 1)); JavascriptUtils.clickByJS(myRASSurveyPage.gaggingRadioButton(1, 1)); JavascriptUtils.clickByJS(myRASSurveyPage.gaggingRadioButton(2, 1)); JavascriptUtils.clickByJS(myRASSurveyPage.gaggingRadioButton(3, 1)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingHeartburnColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 14), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingHeartburnColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.pleaseCompleteTheTableBelowRegardingNauseaSymptomsText); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); @@ -2129,95 +2129,95 @@ public void rasScreenerSurveyScenario4PartFive() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 18), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingHeartburnColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 19), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingHeartburnColumn2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); MiscUtils.sleep(2000); for (int v = 1; v < 20; v++) { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(v, 3)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(345)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveAnyMedicationsEverBeenTakenForAbdominalPain)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyMedicationsHaveBeenTakenForAbdominalPain, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingTheMedicationsColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingTheMedicationsColumn2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(1, 7), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingTheMedicationsColumn3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.pleaseCompleteTheNextSetOfQuestionsRegardingVomitingText); for (int x = 1; x < 8; x++) { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(x, 3)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(346)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.hasAnyMedicationEverBeenTakenForVomiting)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyMedicationsHaveBeenTakenForVomiting, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheListMedicationsTakenForVomitingColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4), ras_Survey_TestDataManager.pleaseCompleteTheListMedicationsTakenForVomitingColumn1); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.haveAnyOfTheFollowingSymptomsOccurred4Text); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveAnyOfTheFollowingSymptomsOccurred4Option1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveAnyOfTheFollowingSymptomsOccurred4Option2)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveAnyOfTheFollowingSymptomsOccurred4Option3)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseAnswerTheBelowQuestionsRegardingJaundiceTextBox1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseAnswerTheBelowQuestionsRegardingJaundiceTextBox2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouTakeALactoseSupplement)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouTakeALactoseSupplement)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(575)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(575), ras_Survey_TestDataManager.toWhatFoodsAreYouAverse); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(2, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(3, 3)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingDiarrheaOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingDiarrheaOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingDiarrheaOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); for (int y = 1; y < 9; y++) { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(y, 3)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingEncopresisOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingEncopresisOption2); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.pleaseCompleteTheInformationBelowRegardingBowelText); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingWeightLossOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingWeightLossOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingWeightLossOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); @@ -2225,42 +2225,42 @@ public void rasScreenerSurveyScenario4PartFive() { JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 14)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 15)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(576)); CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.areYouToiletTrained)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.atWhatAgeWereYouToiletTrained, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.pleaseCompleteTheTableBelowRegardingWeightLossText); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 3)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 8)); JavascriptUtils.clickByJS(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 13)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.howManyBowelMovementsDoYouHavePerWeek, myRASSurveyPage.medicationForAbdominalPainDropDownTwo()); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(579)); CommonUtils.selectDropDownValue(ras_Survey_TestDataManager.whatIsTheLongestAmountOfTimeThatHasPassedWithout,myRASSurveyPage.howManyTimesHaveYouReceivedGrowthHormoneTreatmentDropDown); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseUseTheBristolStoolChart)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAProcedureTestOrStudyToEvaluate)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAProcedureTestOrStudyToEvaluate)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption2)); @@ -2271,9 +2271,9 @@ public void rasScreenerSurveyScenario4PartFive() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption7)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption8)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption9)); - CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOtheriPleaseSpecifyTextBox(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption9), ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption90ther); + CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOtherPleaseSpecifyTextBox(ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption9), ras_Survey_TestDataManager.pleaseIndicateWhichOfTheFollowingProceduresOption90ther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] column1KindOfProcedure = {ras_Survey_TestDataManager.pleaseProvideAnyDetailsKnownForTheConditionsColumn1Option1, ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForTheFirstProcedureColumn1Option2, @@ -2324,7 +2324,7 @@ public void rasScreenerSurveyScenario4PartFive() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(ddd, 12), column4KindOfProcedure[ddd - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); //*********************** RUN THIS CODE ONLY ON NEW OR RESETTED FORMS ********************************/ CommonUtils.waitForClickability(myRASSurveyPage.pleaseProvideInformationForTheMostRecentProcedureText); String[] column1MostRecentProcedure = {ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForMostRecentProcedureColumn1Option1, @@ -2376,7 +2376,7 @@ public void rasScreenerSurveyScenario4PartFive() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(iii, 12), column4MostRecentProcedure[iii - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); //*********************** RUN THE CODE ABOVE ONLY ON NEW OR RESETTED FORMS ********************************/ } @@ -2384,155 +2384,155 @@ public void rasScreenerSurveyScenario4PartSix() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(305)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBreathingAndTheLungs, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BREATHING AND THE LUNGS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(454)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAPulmonologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForThePulmonologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForThePulmonologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForThePulmonologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(456)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadWheezingOrWhistling)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(457)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouBeenDiagnosedWithReactiveAirwayDisease)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(458)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheEmergencyRoomForABreathing)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(459)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenSeenInTheHospitalForABreathing)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(330)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutOralHealthAndDental, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT ORAL HEALTH AND DENTAL HISTORY TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(529)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouReceiveRegularDentalCare)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForWhereDentalOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForWhereDentalOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForWhereDentalOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(530)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(530), ras_Survey_TestDataManager.whenDidYouLastVisitADentist); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(531)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.whatWasTheReasonForYourLastDentalVisitOption)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(532)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourGumsBleedRegularlyWithToothBrushing)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(533)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourTeethOrGumsHurtRegularly)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(534)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHavePeriodontalOrGumDisease)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(535)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadDentalSealantsPlaced)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(536)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouCurrentlyHaveCavities)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(537)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouPreviouslyHadAnyDentalFillings)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(538)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doesYourMouthUsuallyFeelDry)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(539)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateTheOverallHealth)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(540)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.overallHowWouldYouRateYourDentalHygieneRoutine)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(541)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfSmell)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(542)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyChangesInYourSenseOfTaste)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(543)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveJawOrTemporomandibularJointPain)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(544)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveFrequentHeadaches)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(545)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyOrthodonticTreatment)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(546)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAPalatalExpansion)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(547)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadAnyFacialOrDentalTrauma)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(185)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.didTheFacialOrDentalTraumaRequireSurgery), ras_Survey_TestDataManager.didTheFacialOrDentalTraumaRequireSurgeryPlease); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(548)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouHadElectiveJawSurgery)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(549)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.doYouHaveAHistoryOfCancerInTheMouthOrJaw), ras_Survey_TestDataManager.doYouHaveAHistoryOfCancerInTheMouthOrJawPlease); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(550)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.doYouHaveAFamilyMemberWithAJawAbnormality), ras_Survey_TestDataManager.doYouHaveAFamilyMemberWithAJawAbnormalityPlease); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(551)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyNumbnessInOrAroundYourMouth)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(552)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyMouthSores)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(553)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYourTeethFeelSensitiveToHotOrColdFoods)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(554)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveProblemsMovingYourLipsTongueOrMouth)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(555)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.overallIsThereAnythingUnusualAboutYourTeethOrMouth), ras_Survey_TestDataManager.overallIsThereAnythingUnusualAboutYourTeethOrMouthPlease); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); String[] clickingOnOptionInMultiplePages = {ras_Survey_TestDataManager.haveYouHadTroublePronouncingAnyWords, ras_Survey_TestDataManager.haveYouFeltThatYourSenseOfTasteHasWorsened, ras_Survey_TestDataManager.haveYouHadPainfulAchingInYourMouth, @@ -2552,7 +2552,7 @@ public void rasScreenerSurveyScenario4PartSix() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(jjj)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(clickingOnOptionInMultiplePages[jjj-556])); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); } } @@ -2560,11 +2560,11 @@ public void rasScreenerSurveyScenario4PartSeven() { CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(306)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutFluidBalance, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT FLUID BALANCE AND IF ANY FLUID BUILDS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(460)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithALymphaticSystemIssue)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption2)); @@ -2575,7 +2575,7 @@ public void rasScreenerSurveyScenario4PartSeven() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption7)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption7), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingLymphaticOption7Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] abilityOnser1 = {ras_Survey_TestDataManager.pleaseCompleteToTheBestOfYourAbilityAboutTheOnsetColumn1Option1, ras_Survey_TestDataManager.pleaseCompleteToTheBestOfYourAbilityAboutTheOnsetColumn1Option2, @@ -2658,25 +2658,25 @@ public void rasScreenerSurveyScenario4PartSeven() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(ttt , 16), abilityOnser8[ttt - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(332)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsWillAskAboutTheKidneys, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS WILL ASK ABOUT THE KIDNEYS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(463)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANephrologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseListTheInformationBelowForTheNephrologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseListTheInformationBelowForTheNephrologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseListTheInformationBelowForTheNephrologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(465)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANephrologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption2)); @@ -2684,7 +2684,7 @@ public void rasScreenerSurveyScenario4PartSeven() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption4)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption4), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingKidneyProblemsOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1 , 3), ras_Survey_TestDataManager.pleaseCompleteTheTableRegardingKidneyColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2 , 3), ras_Survey_TestDataManager.pleaseCompleteTheTableRegardingKidneyColumn1Option2); @@ -2719,24 +2719,24 @@ public void rasScreenerSurveyScenario4PartSeven() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3 , 16), ras_Survey_TestDataManager.pleaseCompleteTheTableRegardingKidneyColumn8Option3); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4 , 16), ras_Survey_TestDataManager.pleaseCompleteTheTableRegardingKidneyColumn8Option4); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(309)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutHairAndSkinQualities, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT HAIR AND SKIN QUALITIES TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario4PartEight() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(468)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByADermatologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideDermatologistWhoCompletedYourEvaluationOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideDermatologistWhoCompletedYourEvaluationOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideDermatologistWhoCompletedYourEvaluationOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); MiscUtils.sleep(1000); for (int a = 1; a < 8; a++) { @@ -2744,18 +2744,18 @@ public void rasScreenerSurveyScenario4PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicPleaseSpecifyTextBox(ras_Survey_TestDataManager.pleaseChooseTheBestTermsToDescribeYourHair7), ras_Survey_TestDataManager.pleaseChooseTheBestTermsToDescribeYourHair7Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(471)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.isTheTextureOrAmountOfYourHairSimilar)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); for (int b = 1; b < 6; b++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(b)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithPatchesOfThickenedSkinOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(473)); for (int c = 1; c < 6; c++) { @@ -2763,11 +2763,11 @@ public void rasScreenerSurveyScenario4PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.doYouHaveAnyOfTheFollowingPigmentedSkinFindingsOther); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(474)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyHemangiomas)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(5)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(475)); for (int d = 1; d < 6; d++) { @@ -2775,21 +2775,21 @@ public void rasScreenerSurveyScenario4PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingSkinTumorsOthers); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(310)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutSkeletalConditions, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT SKELETAL CONDITIONS TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(476)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.isTheTextureOrAmountOfYourHairSimilar)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheDetailsBelowForTheOrthopaedicOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheDetailsBelowForTheOrthopaedicOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheDetailsBelowForTheOrthopaedicOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(478)); for (int e = 1; e < 5; e++) { @@ -2797,11 +2797,11 @@ public void rasScreenerSurveyScenario4PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.haveYouBeenDiagnosedWithAnyOfTheFollowingSkeletalOption4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(479)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyIssuesWithCurvingOfTheSpine)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(480)); for (int f = 1; f < 5; f++) { @@ -2809,7 +2809,7 @@ public void rasScreenerSurveyScenario4PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingTypesOfCurvatureOption1Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheSpineIssuesColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheSpineIssuesColumn1Option2); @@ -2840,15 +2840,15 @@ public void rasScreenerSurveyScenario4PartEight() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(3, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheSpineIssuesColumn7Option3); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(4, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheSpineIssuesColumn7Option4); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(482)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.hasYourNeckBeenDescribedAsShortOrWebbed)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(483)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithJointIssues)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(2)); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(484)); for (int g = 1; g < 7; g++) { @@ -2856,7 +2856,7 @@ public void rasScreenerSurveyScenario4PartEight() { } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(6), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithTheFollowingJointIssues6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForClickability(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheJointIssuesListedColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheJointIssuesListedColumn1Option2); @@ -2901,27 +2901,27 @@ public void rasScreenerSurveyScenario4PartEight() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(5, 13), ras_Survey_TestDataManager.pleaseCompleteTheJointIssuesListedColumn7Option5); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInTextAreaTextBox(6, 13), ras_Survey_TestDataManager.pleaseCompleteTheJointIssuesListedColumn7Option6); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(311)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutBloodDisorders, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT BLOOD DISORDERS TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario4PartNine() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(486)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnEvaluationByAHematologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForTheHematologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForTheHematologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationBelowForTheHematologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(488)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager. doYouHaveIssuesWithBleedingOrBruising)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(489)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyOfTheFollowingIssuesWithBleedingOrBruising1)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyOfTheFollowingIssuesWithBleedingOrBruising2)); @@ -2929,7 +2929,7 @@ public void rasScreenerSurveyScenario4PartNine() { JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyOfTheFollowingIssuesWithBleedingOrBruising4)); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.doYouHaveAnyOfTheFollowingIssuesWithBleedingOrBruising4Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteBleedingBruisingIssuesListedColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteBleedingBruisingIssuesListedColumn1Option2); @@ -2964,11 +2964,11 @@ public void rasScreenerSurveyScenario4PartNine() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 16), ras_Survey_TestDataManager.pleaseCompleteBleedingBruisingIssuesListedColumn8Option3); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 16), ras_Survey_TestDataManager.pleaseCompleteBleedingBruisingIssuesListedColumn8Option4); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(491)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAnyKnownBloodDisorders)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(492)); for (int j = 1; j < 9; j++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(j)); @@ -2976,7 +2976,7 @@ public void rasScreenerSurveyScenario4PartNine() { CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(7), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithBloodDisorders7Other); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(8), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithBloodDisorders8Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] blodDisorderColumn1 = {ras_Survey_TestDataManager.pleaseCompleteTheBloodDisordersIssuesListedColumn1Option1, ras_Survey_TestDataManager.pleaseCompleteTheBloodDisordersIssuesListedColumn1Option2, @@ -3067,14 +3067,14 @@ public void rasScreenerSurveyScenario4PartNine() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(r, 16), blodDisorderColumn8[r - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(494)); for (int s = 1; s < 7; s++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(s)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(6), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyOfTheFollowingTumorsOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheTumorsListedColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowForEachOfTheTumorsListedColumn1Option2); @@ -3116,28 +3116,28 @@ public void rasScreenerSurveyScenario4PartNine() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(t, 13)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(496)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfFrequentInfections)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(497)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAnImmunologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheNameOfTheImmunologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheNameOfTheImmunologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheNameOfTheImmunologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(499)); for (int u = 1; u < 4; u++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(u)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(3), ras_Survey_TestDataManager.howWouldYouDescribeInfectionFrequencyOption3Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheImmunodeficienciesListedColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheImmunodeficienciesListedColumn1Option2); @@ -3164,11 +3164,11 @@ public void rasScreenerSurveyScenario4PartNine() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 16), ras_Survey_TestDataManager.pleaseCompleteTheImmunodeficienciesListedColumn8Option2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 16), ras_Survey_TestDataManager.pleaseCompleteTheImmunodeficienciesListedColumn8Option3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(501)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnAutoimmuneDisorder)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(502)); for (int v = 1; v < 6; v++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(v)); @@ -3176,7 +3176,7 @@ public void rasScreenerSurveyScenario4PartNine() { CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(4), ras_Survey_TestDataManager.withWhatAutoimmuneDisorderHaveYouBeenDiagnosedOption4Other); CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.withWhatAutoimmuneDisorderHaveYouBeenDiagnosedOption5Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn1Option2); @@ -3218,34 +3218,34 @@ public void rasScreenerSurveyScenario4PartNine() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 16), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn8Option3); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 16), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn8Option4); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 16), ras_Survey_TestDataManager.pleaseCompleteTheAutoimmuneConditionsListedBelowColumn8Option5); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(312)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutNervousSystem, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT NERVOUS SYSTEM TEXT --"); CucumberLogUtils.logScreenshot(); } public void rasScreenerSurveyScenario4PartTen() { - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(504)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByANeurologist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationForTheNeurologistOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationForTheNeurologistOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationForTheNeurologistOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(506)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAStructuralBrainAbnormality)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(507)); for (int a = 1; a < 7; a++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(a)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(6), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithAnyBrainOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableForEachOfTheConditionsListedBrainIssuesColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableForEachOfTheConditionsListedBrainIssuesColumn1Option2); @@ -3290,18 +3290,18 @@ public void rasScreenerSurveyScenario4PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableForEachOfTheConditionsListedBrainIssuesColumn7Option5); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(6, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableForEachOfTheConditionsListedBrainIssuesColumn7Option6); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(509)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.doYouHaveAHistoryOfSeizures)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(510)); for (int b = 1; b < 6; b++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(b)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.pleaseSelectAllSeizureDisordersOption5Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowSeizureDisordersColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowSeizureDisordersColumn1Option2); @@ -3339,28 +3339,28 @@ public void rasScreenerSurveyScenario4PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(4, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowSeizureDisordersColumn7Option4); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowSeizureDisordersColumn7Option5); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(512)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenEvaluatedByAPsychiatrist)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationListedPsychiatristOption1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationListedPsychiatristOption2); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(3, 2), ras_Survey_TestDataManager.pleaseProvideTheInformationListedPsychiatristOption3); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(514)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithABehavioral)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(515)); for (int c = 1; c < 11; c++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(c)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(10), ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithABehavioralOption10Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); String[] psychiatricConditionColumn1 = {ras_Survey_TestDataManager.pleaseCompleteTheTableBehavioralAndPsychiatricConditionsColumn1Option1, ras_Survey_TestDataManager.pleaseCompleteTheTableBehavioralAndPsychiatricConditionsColumn1Option2, @@ -3454,34 +3454,34 @@ public void rasScreenerSurveyScenario4PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(j , 13), psychiatricConditionColumn7[j - 1]); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(249)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(249), ras_Survey_TestDataManager.pleaseListAndDescribeAnyAdditionalNeurologicConditions); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(313)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.theNextSetOfQuestionsAskAboutVisionAndHearing, myRASSurveyPage.rasSurveyText.getText(), "-- VERIFYING THE NEXT SET OF QUESTIONS ASK ABOUT VISION AND HEARING TEXT --"); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(517)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverBeenDiagnosedWithPtosis)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(518)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.didYouRequireTreatmentForPtosis)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(519)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverHadAnyIssuesWithYourVision)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(520)); for (int k = 1; k < 7; k++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(k)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(6), ras_Survey_TestDataManager.pleaseSelectAllTheVisionEyesightOption6Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableVisionEyesightColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableVisionEyesightColumn1Option2); @@ -3526,11 +3526,11 @@ public void rasScreenerSurveyScenario4PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(5, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableVisionEyesightColumn7Option5); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(6, 13), ras_Survey_TestDataManager.pleaseCompleteTheTableVisionEyesightColumn7Option6); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(522)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedStabismus)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingStrabismusColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingStrabismusColumn2); @@ -3540,11 +3540,11 @@ public void rasScreenerSurveyScenario4PartTen() { CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 10), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingStrabismusColumn6); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 13)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(524)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouEverExperiencedNystagmus)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingNystagmusColumn1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 4), ras_Survey_TestDataManager.pleaseCompleteTheTableBelowRegardingNystagmusColumn2); @@ -3555,18 +3555,18 @@ public void rasScreenerSurveyScenario4PartTen() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 13)); CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(1, 18)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(525)); JavascriptUtils.clickByJS(rasopathyQuestionnairePage.dynamicLocator(ras_Survey_TestDataManager.haveYouExperiencedHearingLoss)); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(526)); for (int l = 1; l < 6; l++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(l)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(5), ras_Survey_TestDataManager.haveYouExperiencedAnyTypesOfHearingLossOption5Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3)); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(1, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableHearingLossColumn1Option1); CommonUtils.sendKeysToElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenTextBox(2, 3), ras_Survey_TestDataManager.pleaseCompleteTheTableHearingLossColumn1Option2); @@ -3602,23 +3602,23 @@ public void rasScreenerSurveyScenario4PartTen() { CommonUtils.clickOnElement(myRASSurveyPage.enterTextInPleaseProvideDetailsOnTheNameOfTheMedicationTakenRadioButton(m, 13)); } CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(528)); for (int n = 1; n < 4; n++) { CommonUtils.clickOnElement(rasopathyQuestionnairePage.dynamicClickOnCheckboxesScreener(n)); } CommonUtils.sendKeys(myRASSurveyPage.dynamicallyEnterTextInCheckMarkedTextBox(3), ras_Survey_TestDataManager.doYouHaveAnyOfTheFollowingIssuesWithYourEarsOption3Other); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(297)); CommonUtils.sendKeysToElement(myRASSurveyPage.dynamicOneTextBox(297), ras_Survey_TestDataManager.ifThereAreAnyOtherHealthIssues); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); CommonUtils.waitForVisibility(myRASSurveyPage.dynamicTopText(298)); CommonUtils.assertEqualsWithMessage(ras_Survey_TestDataManager.youAreAlmostDoneSurvey, myRASSurveyPage.dynamicTopText(298).getText(), "-- VERIFYING YOU ARE ALMOST DONE TEXT --"); MiscUtils.sleep(1000); CucumberLogUtils.logScreenshot(); - ras_scenario_one_stepsImpl.clickOnSurveySavAndNextButton(); + ras_screenerSubmissions_stepsImpl.clickOnSurveySavAndNextButton(); MiscUtils.sleep(3000); CucumberLogUtils.logScreenshot(); MiscUtils.sleep(1000); diff --git a/src/test/java/ServiceNow/CHARMS/StepsImplementation/TestAccountResetImpl.java b/src/test/java/ServiceNow/CHARMS/StepsImplementation/TestAccountResetImpl.java index 7a639d2dd..d050e9432 100644 --- a/src/test/java/ServiceNow/CHARMS/StepsImplementation/TestAccountResetImpl.java +++ b/src/test/java/ServiceNow/CHARMS/StepsImplementation/TestAccountResetImpl.java @@ -1,5 +1,7 @@ package ServiceNow.CHARMS.StepsImplementation; +import appsCommon.Pages.NativeView_SideDoor_Dashboard_Page; +import appsCommon.Utils.ServiceNow_Common_Methods; import appsCommon.Utils.ServiceNow_Login_Methods; import com.nci.automation.utils.LocalConfUtils; import com.nci.automation.utils.MiscUtils; @@ -44,4 +46,35 @@ public void resetTestAccount() { MiscUtils.sleep(10000); } } + + /** + * Resets the RASopathy Study Test Account by performing the following steps: + * 1. Calls the nativeViewSideDoorLogin method from ServiceNow_Login_Methods class to log in using the side door test account. + * 2. Navigates to the specified URL (https://service-test.nci.nih.gov/now/nav/ui/classic/params/target/sys_script_fix.do%3Fsys_id%3D6b09648c877fc6507e87a8a60cbb35f2%26sysparm + * _view%3D%26sysparm_domain%3Dnull%26sysparm_domain_scope%3Dnull) in the web driver. + * 3. Sleeps for 2000 milliseconds. + * 4. Waits for the visibility of the nativeViewRunFixScriptButton on the testAccountResetPage. + * 5. Sleeps for 2000 milliseconds. + * 6. Clicks on the nativeViewRunFixScriptButton. + * 7. Sleeps for 1000 milliseconds. + * 8. Waits for the visibility of the nativeViewProceedInBackgroundButton on the testAccountResetPage. + * 9. Clicks on the nativeViewProceedInBackgroundButton. + * 10. Sleeps for 10000 milliseconds. + * 11. Calls the logOutOfNativeView method from ServiceNow_Common_Methods class to log out of native view. + */ + public static void charmsRasOneTestAccountReset(){ + ServiceNow_Login_Methods.nativeViewSideDoorLogin(); + WebDriverUtils.webDriver.get( + "https://service-test.nci.nih.gov/now/nav/ui/classic/params/target/sys_script_fix.do%3Fsys_id%3D6b09648c877fc6507e87a8a60cbb35f2%26sysparm_view%3D%26sysparm_domain%3Dnull%26sysparm_domain_scope%3Dnull"); + MiscUtils.sleep(2000); + CommonUtils.switchToFrame(NativeView_SideDoor_Dashboard_Page.nativeViewiFrame); + CommonUtils.waitForVisibility(testAccountResetPage.nativeViewRunFixScriptButton); + MiscUtils.sleep(2000); + testAccountResetPage.nativeViewRunFixScriptButton.click(); + MiscUtils.sleep(1000); + CommonUtils.waitForVisibility(testAccountResetPage.nativeViewProceedInBackgroundButton); + testAccountResetPage.nativeViewProceedInBackgroundButton.click(); + MiscUtils.sleep(3000); + ServiceNow_Common_Methods.logOutOfNativeView(); + } } diff --git a/src/test/java/ServiceNow/CHARMS/studyQuestions/RAS_Screener_Questions.java b/src/test/java/ServiceNow/CHARMS/studyQuestions/RAS_Screener_Questions.java new file mode 100644 index 000000000..aadc85b7c --- /dev/null +++ b/src/test/java/ServiceNow/CHARMS/studyQuestions/RAS_Screener_Questions.java @@ -0,0 +1,33 @@ +package ServiceNow.CHARMS.studyQuestions; + +public class RAS_Screener_Questions { + + /** + * THIS JAVA CLASS CONTAINS ALL RAS SCREENER QUESTIONS + */ + public static final String ARE_YOU_COMPLETING_THIS_FORM_FOR_SOMEONE_ELSE_OR_FOR_YOURSELF = "Are you completing this form for someone else or for yourself?"; + public static final String WHAT_IS_YOUR_NAME = "What is your name?"; + public static final String THE_NEXT_SET_OF_QUESTIONS_WILL_COLLECT_BASIC_INFORMATION_ABOUT_YOU = "The next set of questions will collect basic information about you."; + public static final String WHAT_IS_YOUR_DATE_OF_BIRTH = "What is your date of birth?"; + public static final String WHAT_WAS_YOUR_SEX_ASSIGNED_AT_BIRTH = "What was your sex assigned at birth?"; + public static final String ARE_YOU_ADOPTED = "Are you adopted?"; + public static final String IN_WHICH_COUNTRY_DO_YOU_CURRENTLY_LIVE = "In which country do you currently live?"; + public static final String PLEASE_PROVIDE_THE_MAILING_ADDRESS_WHERE_STUDY_MATERIALS_CAN_BE_SENT_AS_NEEDED = "Please provide the mailing address where study materials can be sent, as needed."; + public static final String WHAT_IS_YOUR_EMAIL_ADDRESS = "What is your email address?"; + public static final String PLEASE_CONFIRM_YOUR_EMAIL_ADDRESS = "Please confirm your email address"; + public static final String PLEASE_LIST_YOUR_PHONE_NUMBERS_BELOW_PLEASE_ALSO_SELECT_YOUR_PREFERRED_CONTACT_NUMBER = "Please list your phone numbers below. Please also select your preferred contact number. "; + public static final String WHAT_IS_YOUR_ETHNICITY = "What is your ethnicity?"; + public static final String WHAT_IS_YOUR_RACE_PLEASE_SELECT_ALL_THAT_APPLY = "What is your race? Please select all that apply."; + public static final String ARE_YOU_A_PARTICIPANT_IN_ANY_OTHER_RESEARCH_STUDY_OR_REGISTRY_GROUP_PLEASE_SPECIFY = "Are you a participant in any other research study or registry group? Please specify."; + public static final String TO_DETERMINE_ELIGIBILITY_FOR_THIS_STUDY_WE_NEED_TO_COLLECT_INFORMATION_ABOUT_MEDICAL_DIAGNOSES_THESE_QUESTIONS_ASK_ABOUT_GENERAL_MEDICAL_CONDITIONS_CANCER_AND_ANY_PRIOR_DIAGNOSIS_OF_A_RASOPATHY = "To determine eligibility for this study, we need to collect information about medical diagnoses. These questions ask about general medical conditions, cancer and any prior diagnosis of a RASopathy. Please complete this information to the best of your knowledge. "; + public static final String HAVE_YOU_EVER_BEEN_DIAGNOSED_WITH_THE_FOLLOWING_CONDITIONS = "Have you ever been diagnosed with the following conditions? Select all that apply. If you do not see the exact condition diagnosed, please select the closest answer."; + public static final String HAVE_YOU_EVER_BEEN_DIAGNOSED_WITH_CANCER = "Have you ever been diagnosed with cancer?"; + public static final String HAVE_YOU_BEEN_DIAGNOSED_WITH_A_RASOPATHY = "Have you been diagnosed with a RASopathy such as Noonan syndrome, Noonan syndrome with multiple lentigines, Costello syndrome, cardiofaciocutaneous syndrome, Legius syndrome, capillary arteriovenous malformation syndrome, hereditary gingival fibromatosis or SYNGAP1 syndrome?"; + public static final String HAVE_ANY_OF_YOUR_BIOLOGICAL_RELATIVES_BEEN_DIAGNOSED_WITH_A_RASOPATHY = " Have any of your biological relatives been diagnosed with a RASopathy?"; + public static final String HAVE_YOU_EVER_HAD_GENETIC_TESTING = "Have you ever had genetic testing?"; + public static final String WE_WILL_NOW_ASK_A_FEW_REMAINING_QUESTIONS_REGARDING_THIS_STUDY = "We will now ask a few remaining questions regarding this study."; + public static final String HOW_DID_YOU_HEAR_ABOUT_THIS_STUDY = "How did you hear about this study? If a specific health care provider referred you to this study, please include their name in the corresponding text box."; + public static final String HAVE_YOU_OR_OTHER_FAMILY_MEMBERS_EVER_PARTICIPATED_IN_ANOTHER_STUDY_ON_RASOPATHY_AT_ANOTHER_MEDICAL_INSTITUTION_UNIVERSITY_GOVERNMENT_AGENCY_OR_OTHER_SITE = "Have you or other family members ever participated in another study on RASopathy at another medical institution, university, government agency or other site?"; + public static final String WHAT_ARE_THE_MAIN_REASONS_FOR_PARTICIPATING_IN_THIS_STUDY = "What are the main reasons for participating in this study? Select all that apply. Please elaborate on the reason in the corresponding textbox."; + public static final String YOU_ARE_ALMOST_DONE = "You are almost done!"; +} diff --git a/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/Features/Applicant Profile.feature b/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/Features/Applicant Profile.feature index 234189911..5838d68a5 100644 --- a/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/Features/Applicant Profile.feature +++ b/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/Features/Applicant Profile.feature @@ -1,7 +1,7 @@ Feature: Applicant Profile Scenarios Description: This Feature file contains Applicant Profile Scenarios - @juarezds @SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @Regression @playwright + @SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @JUAREZDS @Regression @playwright Scenario Outline: Verifying the Save application functionality Given a test account "" is reset before executing a test When User is on SSJ Landing page and user is "Maria Chaudhry" - PW @@ -11,7 +11,7 @@ Feature: Applicant Profile Scenarios And User inputs "" into last name field - PW And User inputs "" into email field - PW And User inputs "" into phone field - PW - And User inputs "" into business phone field - PW + And User inputs "" into business phone field - PW And selects highest education "" And User confirms being a US Citizen - PW And User inputs "
" into address field - PW @@ -25,25 +25,25 @@ Feature: Applicant Profile Scenarios And verifies that the saved address displays with "
", "", "", "", "", "" And verifies that the saved email address displays as "" And verifies that the saved phone number displays as "" - And verifies that the saved business phone number displays as "" + And verifies that the saved business phone number displays as "" And verifies that the saved highest education displays as "" And verifies that the saved US Citizenship displays as "" And tester navigates to native view to reset account with name "" so that automated test can run again without manual intervention Examples: - | firstName | middleName | lastName | email | phone | businessPhone | highestEducation | US Citizenship | address | aptNumber | city | state | country | zip | - | SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | Yes | 7 Mills | 12378 | Reston | VA | USA | 20453 | - | David | Black | Kristensen | kristen1@nih.gov | 2133212333 | 2902122234 | Bachelors | Yes | 2 Bells | 231 | McLean | VA | USA | 21333 | - | Krista | James | Bernier | bernierkd@nih.gov | 2018211343 | 2123323454 | Masters | Yes | 11 Kolls | 78 | Sterling | VA | USA | 20483 | - | Joe | Donald | Viola | violajc@nih.gov | 2233212333 | 2202122234 | Bachelors | Yes | 11 Bells | 23 | Ashburn | VA | USA | 29233 | - | William | Michel | Violette | violettews@nih.gov | 3018212343 | 2023323454 | Doctorate | Yes | 7 Mills | 13378 | San Diego | CA | USA | 90453 | - | Violeta | Seidell | Lack | seidellvv@nih.gov | 4133212333 | 2902122234 | Bachelors | Yes | 2 Bells | 2313 | Monterey | CA | USA | 94333 | - | Abby | Marianna | Molnar | molnaraj@nih.gov | 7018211343 | 2123323454 | Masters | Yes | 11 Kolls | 6 | Carmel | CA | USA | 97812 | - | Maureen | Jim | Kennedy | mkennedyh@nih.gov | 8233212333 | 2202122234 | Bachelors | Yes | 11 Bells | 39 | San Jose | CA | USA | 95112 | - | Jessica | Marianna | Mollick | mollickja@nih.gov | 7018211343 | 2123323454 | Masters | Yes | 11 Kolls | 6 | Sausalito | CA | USA | 97712 | - | Karen | Elena | Andrew | andrewkl@nih.gov | 8233212333 | 2202122234 | Bachelors | Yes | 11 Bells | 39 | Sacramento | CA | USA | 95512 | + | firstName | middleName | lastName | email | phone | businessPhoneVacancy | highestEducation | US Citizenship | address | aptNumber | city | state | country | zip | + | SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | Yes | 7 Mills | 12378 | Reston | VA | USA | 20453 | + | SSJTest | Black | Kristensen | kristen1@nih.gov | 2133212333 | 2902122234 | Bachelors | Yes | 2 Bells | 231 | McLean | VA | USA | 21333 | + | SSJTest | James | Bernier | bernierkd@nih.gov | 2018211343 | 2123323454 | Masters | Yes | 11 Kolls | 78 | Sterling | VA | USA | 20483 | + | SSJTest | Donald | Viola | violajc@nih.gov | 2233212333 | 2202122234 | Bachelors | Yes | 11 Bells | 23 | Ashburn | VA | USA | 29233 | + | SSJTest | Michel | Violette | violettews@nih.gov | 3018212343 | 2023323454 | Doctorate | Yes | 7 Mills | 13378 | San Diego | CA | USA | 90453 | + | SSJTest | Seidell | Lack | seidellvv@nih.gov | 4133212333 | 2902122234 | Bachelors | Yes | 2 Bells | 2313 | Monterey | CA | USA | 94333 | + | SSJTest | Marianna | Molnar | molnaraj@nih.gov | 7018211343 | 2123323454 | Masters | Yes | 11 Kolls | 6 | Carmel | CA | USA | 97812 | + | SSJTest | Jim | Kennedy | mkennedyh@nih.gov | 8233212333 | 2202122234 | Bachelors | Yes | 11 Bells | 39 | San Jose | CA | USA | 95112 | + | SSJTest | Marianna | Mollick | mollickja@nih.gov | 7018211343 | 2123323454 | Masters | Yes | 11 Kolls | 6 | Sausalito | CA | USA | 97712 | + | SSJTest | Elena | Andrew | andrewkl@nih.gov | 8233212333 | 2202122234 | Bachelors | Yes | 11 Bells | 39 | Sacramento | CA | USA | 95512 | - @juarezds @SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @Regression @playwright @SSJ-712 @Smoke + @SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @SSJ-712 @JUAREZDS @Regression @playwright Scenario Outline: Verifying the Save application functionality Given a test account "" is reset before executing a test When User is on SSJ Landing page and user is "Maria Chaudhry" - PW @@ -86,10 +86,25 @@ Feature: Applicant Profile Scenarios | firstName | middleName | lastName | email | phone | businessPhone | highestEducation | US Citizenship | address | aptNumber | city | state | country | zip | | SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | Yes | 7 Mills | 12378 | Reston | VA | USA | 20453 | + @alenan @SSJ-712 @Bug_Open @JUAREZDS @In_Progress @playwright @Smoke + Scenario: Edit Demographics of Profile + Given a test account "SSJTest" is reset before executing a test + When User is on SSJ Landing page and user is "Maria Chaudhry" - PW + When User is on Profile tab - PW + And User clicks Edit for Demographics section - PW + And User chooses to share demographic details - PW + And User edits sex choice - PW + And User edits ethnicity choice - PW + And User edits race choice - PW + And User edits disability choice - PW + And User saves the updated section - PW + And User clicks Edit for Demographics section - PW + And User chooses not to share demographic details - PW + Then User saves the updated section - PW + @US_APPTRACK-342 @TC_APPTRACK-385 @JUAREZDS @Regression @playwright Scenario Outline: Verifying applicant is able to see "Your Applications" tab and page content after applying to a Vacancy # Given an Okta user "" is on the SSJ home page and logs in - PLEASE LEAVE THIS HERE! NEED TO CONNECT WITH OKTA TEAM - Given a test vacancy "DIEGO TEST" is reset before creating a vacancy When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW And clicks on "Vacancy Dashboard" - PW And clicks on "+ Create Vacancy" - PW @@ -214,15 +229,13 @@ Feature: Applicant Profile Scenarios | SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | Yes | 7 Mills | 12378 | Reston | VA | USA | 20453 | Fred | Trout | Laste | referenceOne@test.com | 7036875816 | Supervisor/Manager | PROJECT MANAGER | TESTING ORGANIZATION FIELD FOR REFERENCE ONE | John | Steven | Vakhutko | referenceTwo@test.com | 7036875816 | Co-worker | TEST AUTOMATION LEAD | TESTING ORGANIZATION FIELD FOR REFERENCE TWO | - @US_APPTRACK-342 @TC_APPTRACK-385 @JUAREZDS @playwright @Regression + @US_APPTRACK-342 @TC_APPTRACK-385 @JUAREZDS @Regression @playwright Scenario: Verifying applicant does not see "Your Applications" tab if applicant has not applied to a Vacancy Given a user who has not applied to a Vacancy before is on the SSJ home page Then Your Applications tab should NOT be displayed - @TC_APPTRACK-145 @JUAREZDS @playwright @Regression + @TC_APPTRACK-145 @JUAREZDS @Regression @playwright Scenario: Verifying Vacancy details - Given the test application "SSJTest" is deleted to re-run automated tests - Given a test vacancy "DIEGO TEST" is reset before creating a vacancy When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW And clicks on "Vacancy Dashboard" - PW And clicks on "+ Create Vacancy" - PW @@ -257,18 +270,254 @@ Feature: Applicant Profile Scenarios And verifies Application Documents text "APPLICATION DOCUMENTS" And verifies required documents with required references needed to apply to this test Vacancy + @TC_APPTRACK-144 @JUAREZDS @Regression @playwright + Scenario: Applying for vacancy as unauthenticated applicant + Given an unauthenticated applicant is on the SSJ homepage "SSJPortalView" + And verifies that the drop drown text is "Login" + And clicks on the first vacancy + And verifies that Sign In and Apply button text is "Sign In and Apply" + And clicks "Sign In and Apply" + And verifies that the pop up header text is "Please log in." + And verifies that the pop up body text is + """ +You must be logged in to apply for a vacancy. +Would you like to log in now or go back to the home page? + """ + And verifies that the text on the buttons is "Create an account" "Log in" "Go Back" + And clicks "Log in" and is redirected to the Okta Login Portal + And verifies that the PIV CAC card button text is "Sign in with PIV / CAC card" + + @TC_APPTRACK-128 @JUAREZDS @Regression @playwright + Scenario Outline: Verification of the Save application functionality + Given a test account "SSJTest" is reset before executing a test + And a test vacancy "DIEGO TEST" is reset before creating a vacancy + And User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW + And clicks on "Vacancy Dashboard" - PW + And clicks on "+ Create Vacancy" - PW + And enters Vacancy Title name "DIEGO TEST" - PW + And enters Vacancy Description "THIS IS A TEST AUTOMATION TEST" - PW + And selects "Yes" for point of contact - PW + And User sets an "Open Date" entry as today's date + And unselects the option for cover letter + And checks "Enable Reference Collection" check box + And selects a Reference Collection Date Ten days from today + And selects "2" for Full Contact Details for References + And selects "Research Fellow" for Position Classification drop down + And selects "HNC" for Organizational Code drop down + And clicks "Save" + And clicks Save for Mandatory Statements + And selects "David Rampulla" for Committee Member with chair role + And selects "Jay Kurani" for Committee Member with Executive Secretary role + And clicks "Save" + And clicks Save for Email Templates + And user is able to see the Review and Finalize section with the vacancy information submitted + And clicks "Save and Finalize" + And clicks "OK" + And clicks "Close" + And OWM Vacancy Manager logs out + When User is on SSJ Landing page and user is "Maria Chaudhry" - PW + And clicks on Vacancy Title "DIEGO TEST" + And clicks "Apply" + And clicks "Finish Profile" + And User inputs "" into first name field - PW + And User inputs "" into middle name field - PW + And User inputs "" into last name field - PW + And User inputs "" into email field - PW + And User inputs "" into phone field - PW + And User inputs "" into business phone field - PW + And selects highest education "" + And User confirms being a US Citizen - PW + And User inputs "
" into address field - PW + And User inputs "" into appNumber field - PW + And User inputs "" into city field - PW + And User inputs "" into state field - PW + And User inputs "" into country field - PW + And User inputs "" into zip field - PW + When User clicks on Save Application button - PW + And navigates to the "Home" tab to be able to apply to a vacancy after creating a profile + And clicks on Vacancy Title "DIEGO TEST" + And clicks "Apply" + And uploads cover letter if cover letter option is displayed + And uploads qualification statement if qualification statement is displayed + And uploads a Curriculum Vitae if Curriculum Vitae option is displayed + And uploads a Vision Statement if Vision Statement option is displayed + And clicks "Next" + And user is on the "References" page + And if reference one is required then user enters Reference One first name "Emily" + And enters Reference One last name "Jones" + And enters Reference One email address "test@test.com" + And User clicks on Save Application button + And verifies that successful save alert is displayed "Application successfully saved Back to Applications Home?x" + And user navigates to Your Applications tab + Then verifies that the application became a draft "Draft" + + Examples: + | firstName | middleName | lastName | email | phone | businessPhone | highestEducation | address | aptNumber | city | state | country | zip | + | SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | 7 Mills | 12378 | Reston | VA | USA | 20453 | + + @TC_APPTRACK-360 @JUAREZDS @Regression @playwright + Scenario Outline: Verification of the Save application functionality + Given a test account "SSJTest" is reset before executing a test + And User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW + And clicks on "Vacancy Dashboard" - PW + And clicks on "+ Create Vacancy" - PW + And enters Vacancy Title name "DIEGO TEST" - PW + And enters Vacancy Description "THIS IS A TEST AUTOMATION TEST" - PW + And selects "Yes" for point of contact - PW + And User sets an "Open Date" entry as today's date + And unselects the option for cover letter + And checks "Enable Reference Collection" check box + And selects a Reference Collection Date Ten days from today + And selects "2" for Full Contact Details for References + And selects "Research Fellow" for Position Classification drop down + And selects "HNC" for Organizational Code drop down + And clicks "Save" + And clicks Save for Mandatory Statements + And selects "David Rampulla" for Committee Member with chair role + And selects "Jay Kurani" for Committee Member with Executive Secretary role + And clicks "Save" + And clicks Save for Email Templates + And user is able to see the Review and Finalize section with the vacancy information submitted + And clicks "Save and Finalize" + And clicks "OK" + And clicks "Close" + And OWM Vacancy Manager logs out + When User is on SSJ Landing page and user is "Maria Chaudhry" - PW + And clicks on Vacancy Title "DIEGO TEST" + And clicks "Apply" + And proceeds with completing profile by clicking "Finish Profile" + And User inputs "" into first name field - PW + And User inputs "" into middle name field - PW + And User inputs "" into last name field - PW + And User inputs "" into email field - PW + And User inputs "" into phone field - PW + And User inputs "" into business phone field - PW + And selects highest education "" + And User confirms being a US Citizen - PW + And User inputs "
" into address field - PW + And User inputs "" into appNumber field - PW + And User inputs "" into city field - PW + And User inputs "" into state field - PW + And User inputs "" into country field - PW + And User inputs "" into zip field - PW + When User clicks on Save Application button - PW + And navigates to the "Home" tab to be able to apply to a vacancy after creating a profile + And clicks on Vacancy Title "DIEGO TEST" + And clicks "Apply" + And uploads cover letter if cover letter option is displayed + And uploads qualification statement if qualification statement is displayed + And uploads a Curriculum Vitae if Curriculum Vitae option is displayed + And uploads a Vision Statement if Vision Statement option is displayed + And clicks "Next" + And user is on the "References" page + Then if reference one is required then user enters Reference One first name "" + And enters Reference One middle name "" + And enters Reference One last name "" + And enters Reference One email address "" + And enters Reference One phone number "" + And selects Reference One relationship as "" + And enters Reference One position title "" + And enters Reference One organization name "" + Then if reference two is required then user enters Reference Two first name "" + And enters Reference Two middle name "" + And enters Reference Two last name "" + And enters Reference Two email address "" + And enters Reference Two phone number "" + And selects Reference Two relationship as Co-worker + And enters Reference Two position title "" + And enters Reference Two organization name "" + And User clicks on Save Application button + And verifies that successful save alert is displayed "Application successfully saved Back to Applications Home?x" + And user navigates to Your Applications tab + Then verifies that the application became a draft "Draft" + And clicks Edit vacancy "DIEGO TEST" + And uploads cover letter if cover letter option is displayed + And uploads qualification statement if qualification statement is displayed + And uploads a Curriculum Vitae if Curriculum Vitae option is displayed + And uploads a Vision Statement if Vision Statement option is displayed + And clicks "Next" + And user is on the "References" page + Then if reference one is required then user enters Reference One first name "" + And enters Reference One middle name "" + And enters Reference One last name "" + And enters Reference One email address "" + And enters Reference One phone number "" + And selects Reference One relationship as "" + And enters Reference One position title "" + And enters Reference One organization name "" + Then if reference two is required then user enters Reference Two first name "" + And enters Reference Two middle name "" + And enters Reference Two last name "" + And enters Reference Two email address "" + And enters Reference Two phone number "" + And enters Reference Two position title "" + And enters Reference Two organization name "" + And clicks " Save Application" + And verifies that successful save alert is displayed "Application successfully saved Back to Applications Home?x" + And user navigates to Your Applications tab + And clicks on Vacancy Title "DIEGO TEST" + And uploads cover letter if cover letter option is displayed + And uploads qualification statement if qualification statement is displayed + And uploads a Curriculum Vitae if Curriculum Vitae option is displayed + And uploads a Vision Statement if Vision Statement option is displayed + And clicks "Next" + And verifies that Reference One "", "", "", "", "", "", "" is updated + And verifies tha Reference Two "", "", "", "", "", "", "" is updated + And clicks " Save Application" + And verifies that successful save alert is displayed "Application successfully saved Back to Applications Home?x" + And user navigates to Your Applications tab + And clicks on Remove button + And "Confirm" that the draft was removed + And verifies that the draft is no longer showing under Your Application tab + And navigates to the "Home" tab to be able to apply to a vacancy after creating a profile + And clicks on Vacancy Title "DIEGO TEST" + And clicks "Apply" + Then user is on the "Application Documents" page + And uploads cover letter if cover letter option is displayed + And uploads qualification statement if qualification statement is displayed + And uploads a Curriculum Vitae if Curriculum Vitae option is displayed + And uploads a Vision Statement if Vision Statement option is displayed + And clicks "Next" + Then user is on the "References" page + Then if reference one is required then user enters Reference One first name "" + And enters Reference One middle name "" + And enters Reference One last name "" + And enters Reference One email address "" + And enters Reference One phone number "" + And selects Reference One relationship as "" + And enters Reference One position title "" + And enters Reference One organization name "" + Then if reference two is required then user enters Reference Two first name "" + And enters Reference Two middle name "" + And enters Reference Two last name "" + And enters Reference Two email address "" + And enters Reference Two phone number "" + And enters Reference Two position title "" + And enters Reference Two organization name "" + And clicks "Next" + Then user is on the "Demographic Information" page + And user agrees to share demographic details and help improve the hiring process. + And selects "Male" for Sex + And selects "Hispanic or Latino" for Ethnicity + And selects "American Indian or Alaska", "Asian", "Black or African-American", "Native Hawaiian or other", "White" for Race + And selects "None of the conditions listed above apply to me." for Disability or Serious Health Condition + And clicks "Next" + Then user is on the "Review" page + And clicks "Submit Application" + And clicks "Ok" + And clicks "Done" + And user navigates to Your Applications tab + And user withdraws the application + And "Confirm" withdrawing the application + Then verifies that the application status is "Withdrawn" + + Examples: + | firstName | middleName | lastName | email | phone | businessPhone | highestEducation | address | aptNumber | city | state | country | zip | referenceOneFirstName | referenceOneMiddleName | referenceOneLastName | referenceOneEmail | referenceOnePhoneNumber | referenceOneRelationship | referenceOnePositionTitle | referenceOneOrganizationName | referenceTwoFirstName | referenceTwoMiddleName | referenceTwoLastName | referenceTwoEmail | referenceTwoPhoneNumber | referenceTwoPositionTitle | referenceTwoOrganizationName | updatedReferenceOneFirstName | updatedReferenceOneMiddleName | updatedReferenceOneLastName | updatedReferenceOneEmail | updatedReferenceOnePhoneNumber | updatedReferenceOneRelationship | updatedReferenceOnePositionTitle | updatedReferenceOneOrganizationName | updatedReferenceTwoFirstName | updatedReferenceTwoMiddleName | updatedReferenceTwoLastName | updatedReferenceTwoEmail | updatedReferenceTwoPhoneNumber | updatedReferenceTwoPositionTitle | updatedReferenceTwoOrganizationName | + | SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | 7 Mills | 12378 | Reston | VA | USA | 20453 | Fred | Trout | Laste | referenceOne@test.com | 7036875816 | Supervisor/Manager | PROJECT MANAGER | TESTING ORGANIZATION FIELD FOR REFERENCE ONE | John | Steven | Vakhutko | referenceTwo@test.com | 7036875816 | TEST AUTOMATION LEAD | TESTING ORGANIZATION FIELD FOR REFERENCE TWO | Elizabeth | Mary | Smith | updatedReferenceOne@test.com | 7036875817 | Colleague | BUSINESS ANALYST | UPDATED TESTING ORGANIZATION FIELD FOR REFERENCE ONE | Adam | Elliot | Washington | updatedReferenceTwo@test.com | 7036875817 | PRODUCT OWNER | UPDATED TESTING ORGANIZATION FIELD FOR REFERENCE TWO | + -#APPTRACK-145 -#APPTRACK-144 -#APPTRACK-827 -#APPTRACK-1158 -#APPTRACK-134 -#APPTRACK-133 -#APPTRACK-370 -#APPTRACK-135 -#APPTRACK-360 -#APPTRACK-129 -#APPTRACK-128 +#APPTRACK-827 - review +#APPTRACK-370 - review #APPTRACK-127 #APPTRACK-928 #APPTRACK-928 diff --git a/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/Steps/ApplicantProfileSteps.java b/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/Steps/ApplicantProfileSteps.java index cd930566f..b16683a52 100644 --- a/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/Steps/ApplicantProfileSteps.java +++ b/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/Steps/ApplicantProfileSteps.java @@ -4,7 +4,6 @@ import ServiceNow.PlatformBusinessApps.SSJ.playwright.StepsImplementation.ApplicantProfileStepsImpl; import ServiceNow.PlatformBusinessApps.SSJ.playwright.StepsImplementation.Reset_Account_StepsImpl; import appsCommon.PlaywrightUtils.Playwright_ServiceNow_Common_Methods; -import com.nci.automation.web.PlaywrightUtils; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; @@ -149,7 +148,7 @@ public void user_clicks_edit_for_demographics_section_pw() { @Then("User clicks Demographics section - PW") public void user_clicks_demographics_section_pw() { - PlaywrightUtils.page.locator(Profile_Tab_Page.demographicsOptionalTab).click(); + page.locator(Profile_Tab_Page.demographicsOptionalTab).click(); } @When("User chooses to share demographic details - PW") @@ -282,6 +281,7 @@ public void selects_for_race(String americanIndianOrAlaska, String asia, String ApplicantProfileStepsImpl.selects_for_race(americanIndianOrAlaska, asia, blackOrAfricanAmerican, nativeHawaiianOrOther, white); } + @Then("selects {string} for Disability or Serious Health Condition") public void selects_for_disability_or_serious_health_condition(String text) { ApplicantProfileStepsImpl.selects_for_disability_or_serious_health_condition(text); @@ -606,4 +606,124 @@ public void verifies_application_documents_text(String expectedText) { public void verifies_required_documents_with_required_references_needed_to_apply_to_this_test_vacancy() { ApplicantProfileStepsImpl.verifies_required_documents_with_required_references_needed_to_apply_to_this_test_vacancy(); } -} \ No newline at end of file + + @Given("an unauthenticated applicant is on the SSJ homepage {string}") + public void an_unauthenticated_applicant_is_on_the_ssj_homepage(String ssjHomePage) { + ApplicantProfileStepsImpl.an_unauthenticated_applicant_is_on_the_ssj_homepage(ssjHomePage); + } + + @Given("verifies that the drop drown text is {string}") + public void verifies_that_the_drop_drown_text_is(String expectedDropDownText) { + ApplicantProfileStepsImpl.verifies_that_the_drop_drown_text_is(expectedDropDownText); + } + + @Given("clicks on the first vacancy") + public void clicks_on_the_first_vacancy() { + ApplicantProfileStepsImpl.clicks_on_the_first_vacancy(); + } + + @Given("verifies that Sign In and Apply button text is {string}") + public void verifies_that_sign_in_and_apply_button_text_is(String expectedSignInButtonText) { + ApplicantProfileStepsImpl.verifies_that_sign_in_and_apply_button_text_is(expectedSignInButtonText); + } + + @Given("verifies that the pop up header text is {string}") + public void verifies_that_the_pop_up_header_text_is(String expectedModalHeaderText) { + ApplicantProfileStepsImpl.verifies_that_the_pop_up_header_text_is(expectedModalHeaderText); + } + + @Given("verifies that the pop up body text is") + public void verifies_that_the_pop_up_body_text_is(String expectedModalBodyText) { + ApplicantProfileStepsImpl.verifies_that_the_pop_up_body_text_is(expectedModalBodyText); + } + + @Given("verifies that the text on the buttons is {string} {string} {string}") + public void verifies_that_the_button_text_is(String expectedCreatedAnAccountText, String expectedLogInText, String expectedGoBackText) { + ApplicantProfileStepsImpl.verifies_that_the_button_text_is(expectedCreatedAnAccountText, expectedLogInText, expectedGoBackText); + } + + @Given("clicks {string} and is redirected to the Okta Login Portal") + public void clicks_and_is_redirected_to_the_login_portal(String logInButton) { + ApplicantProfileStepsImpl.clicks_and_is_redirected_to_the_login_portal(logInButton); + } + + @Given("verifies that the PIV CAC card button text is {string}") + public void verifies_that_the_piv_cac_card_button_text_is(String pivCacCardButtonText) { + ApplicantProfileStepsImpl.verifies_that_the_piv_cac_card_button_text_is(pivCacCardButtonText); + } + + @Then("User sees there is no question that reads {string}") + public void user_sees_there_is_no_question_that_reads(String expectedQuestionText) { + ApplicantProfileStepsImpl.user_sees_there_is_no_question_that_reads(expectedQuestionText); + } + + @Then("User sees there is a statement that reads {string} at the top of the screen") + public void user_sees_there_is_a_statement_that_reads_at_the_top_of_the_screen(String expectedStatementText) { + ApplicantProfileStepsImpl.user_sees_there_is_a_statement_that_reads_at_the_top_of_the_screen(expectedStatementText); + } + + @When("User clicks on Save Application button") + public void user_clicks_on_save_application_button() { + ApplicantProfileStepsImpl.user_clicks_on_save_application_button(); + } + + @When("verifies that successful save alert is displayed {string}") + public void verifies_that_successful_save_alert_is_displayed(String expectedSuccessfulText) { + ApplicantProfileStepsImpl.verifies_that_successful_save_alert_is_displayed(expectedSuccessfulText); + } + + @Then("verifies that the application became a draft {string}") + public void verifies_that_the_application_became_a_draft(String expectedDraftText) { + ApplicantProfileStepsImpl.verifies_that_the_application_became_a_draft(expectedDraftText); + } + + @Then("clicks the application {string}") + public void clicks_the_application(String vacancyTitle) { + ApplicantProfileStepsImpl.clicks_the_application(vacancyTitle); + } + + @Then("clicks Edit vacancy {string}") + public void clicks_edit_vacancy(String applicationName) { + ApplicantProfileStepsImpl.clicks_edit_vacancy(applicationName); + } + + @Then("verifies that Reference One {string}, {string}, {string}, {string}, {string}, {string}, {string} is updated") + public void verifies_that_reference_one_is_updated(String expectedUpdatedReferenceOneFirstName, String expectedUpdatedReferenceOneMiddleName, String expectedUpdatedReferenceOneLastName, String expectedUpdatedReferenceOneEmail, String expectedUpdatedReferenceOnePhoneNumber, String expectedUpdatedReferenceOnePositionTitle, String expectedUpdatedReferenceOneOrganizationName) { + ApplicantProfileStepsImpl.verifies_that_reference_one_is_updated(expectedUpdatedReferenceOneFirstName, expectedUpdatedReferenceOneMiddleName, expectedUpdatedReferenceOneLastName, expectedUpdatedReferenceOneEmail, expectedUpdatedReferenceOnePhoneNumber, expectedUpdatedReferenceOnePositionTitle, expectedUpdatedReferenceOneOrganizationName); + } + + @Then("verifies tha Reference Two {string}, {string}, {string}, {string}, {string}, {string}, {string} is updated") + public void verifies_tha_reference_two_is_updated(String expectedUpdatedReferenceTwoFirstName, String expectedUpdatedReferenceTwoMiddleName, String expectedUpdatedReferenceTwoLastName, String expectedUpdatedReferenceTwoEmail, String expectedUpdatedReferenceTwoPhoneNumber, String expectedUpdatedReferenceTwoPositionTitle, String expectedUpdatedReferenceTwoOrganizationName) { + ApplicantProfileStepsImpl.verifies_tha_reference_two_is_updated(expectedUpdatedReferenceTwoFirstName, expectedUpdatedReferenceTwoMiddleName, expectedUpdatedReferenceTwoLastName, expectedUpdatedReferenceTwoEmail, expectedUpdatedReferenceTwoPhoneNumber, expectedUpdatedReferenceTwoPositionTitle, expectedUpdatedReferenceTwoOrganizationName); + } + + @Then("clicks on Remove button") + public void clicks_on_remove_button() { + ApplicantProfileStepsImpl.clicks_on_remove_button(); + } + + @Then("{string} that the draft was removed") + public void that_the_draft_was_removed(String confirm) { + ApplicantProfileStepsImpl.that_the_draft_was_removed(confirm); + } + + @Then("verifies that the draft is no longer showing under Your Application tab") + public void verifies_that_the_draft_is_no_longer_showing_under_your_application_tab() { + ApplicantProfileStepsImpl.verifies_that_the_draft_is_no_longer_showing_under_your_application_tab(); + } + + @Then("user withdraws the application") + public void user_withdraws_the_application() { + ApplicantProfileStepsImpl.user_withdraws_the_application(); + } + + @Then("{string} withdrawing the application") + public void withdrawing_the_application(String withdraw) { + ApplicantProfileStepsImpl.withdrawing_the_application(withdraw); + } + + @Then("verifies that the application status is {string}") + public void verifies_that_the_application_status_is(String withdrawnText) { + ApplicantProfileStepsImpl.verifies_that_the_application_status_is(withdrawnText); + } +} diff --git a/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/StepsImplementation/ApplicantProfileStepsImpl.java b/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/StepsImplementation/ApplicantProfileStepsImpl.java index ab8f08120..3cafe6adf 100644 --- a/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/StepsImplementation/ApplicantProfileStepsImpl.java +++ b/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/StepsImplementation/ApplicantProfileStepsImpl.java @@ -9,10 +9,7 @@ import appsCommon.Pages.Playwright_Common_Locators; import appsCommon.PlaywrightUtils.Playwright_Common_Utils; import appsCommon.PlaywrightUtils.Playwright_ServiceNow_Common_Methods; -import com.microsoft.playwright.ElementHandle; -import com.microsoft.playwright.FrameLocator; -import com.microsoft.playwright.Locator; -import com.microsoft.playwright.Page; +import com.microsoft.playwright.*; import com.microsoft.playwright.options.AriaRole; import com.microsoft.playwright.options.LoadState; import com.nci.automation.utils.CucumberLogUtils; @@ -22,6 +19,8 @@ import com.nci.automation.web.PlaywrightUtils; import org.testng.Assert; import java.nio.file.Paths; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -30,6 +29,9 @@ public class ApplicantProfileStepsImpl { + public static Page newPage; + public static String timestamp; + /*** * THIS METHOD LOGS INTO SSJ WITH AN IMPERSONATED USER * @param user @@ -183,7 +185,7 @@ public static void a_test_vacancy_is_reset_before_creating_a_vacancy(String text page.frameLocator("iframe[name='gsft_main']").getByLabel("Open record: " + text).click(); CucumberLogUtils.playwrightScreenshot(page); page.waitForLoadState(); - MiscUtils.sleep(1000); + MiscUtils.sleep(2000); page.reload(); MiscUtils.sleep(1000); page.frameLocator("iframe[name=\"gsft_main\"]").locator("#sysverb_delete").click(); @@ -232,7 +234,10 @@ public static void clicks_on_pw(String text) { * @param vacancyName The name of the vacancy title to enter. */ public static void enters_vacancy_title_name_pw(String vacancyName) { - page.getByPlaceholder("Please enter").fill(vacancyName); + DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMddHHmmss"); + LocalDateTime now = LocalDateTime.now(); + timestamp = dtf.format(now); + page.getByPlaceholder("Please enter").fill(vacancyName + " " + timestamp); CucumberLogUtils.playwrightScreenshot(page); } @@ -417,7 +422,7 @@ public static void user_is_able_to_see_the_review_and_finalize_section_with_the_ * @param vacancyTitle The vacancy title to verify. */ public static void verifies_vacancy_title(String vacancyTitle) { - Hooks.softAssert.assertEquals(page.locator("((//div[@class='SectionContent'])[1]/div[1]/div/p)[1]").innerText(), vacancyTitle); + Hooks.softAssert.assertEquals(page.locator("((//div[@class='SectionContent'])[1]/div[1]/div/p)[1]").innerText(), vacancyTitle + " " + timestamp); CucumberLogUtils.playwrightScreenshot(page); } @@ -651,8 +656,15 @@ public static void verifies_email_templates(String valueOne, String valueTwo, St * @param vacancyTitle The title of the vacancy to be clicked. */ public static void clicks_on_vacancy_title(String vacancyTitle) { - Playwright_Common_Utils.scrollIntoView(Playwright_Common_Locators.dynamicTextLocator(vacancyTitle)); - page.locator(Playwright_Common_Locators.dynamicTextLocator(vacancyTitle)).click(); + List pagination = page.querySelectorAll("//a[@rel='nofollow']"); + for (ElementHandle itemPage : pagination) { + if (page.querySelector("//a[normalize-space()='" + vacancyTitle + " " + timestamp + "']") != null) { + page.locator("//a[normalize-space()='" + vacancyTitle + " " + timestamp + "']").click(); + break; + } else { + itemPage.click(); + } + } CucumberLogUtils.playwrightScreenshot(page); } @@ -1455,7 +1467,6 @@ public static void user_verifies_address_information(String address, String aptN * 1. Logs in using a side door test account. * 2. Navigates to the SSJ portal view. * 3. Takes a screenshot of the page using Playwright. - * */ public static void a_user_who_has_not_applied_to_a_vacancy_before_is_on_the_ssj_home_page() { Playwright_ServiceNow_Common_Methods.side_Door_Test_Account_Login(); @@ -1480,7 +1491,7 @@ public static void your_applications_tab_should_not_be_displayed() { */ public static void verifies_vacancy_title_is(String expectedVacancyTitle) { CucumberLogUtils.playwrightScreenshot(page); - Hooks.softAssert.assertEquals(page.locator("//div[@class='TitleAndDateContainer']/h1").innerText(), expectedVacancyTitle); + Hooks.softAssert.assertEquals(page.locator("//*[normalize-space()='" + expectedVacancyTitle + " " + timestamp + "']").innerText(), expectedVacancyTitle + " " + timestamp); } /** @@ -1583,4 +1594,251 @@ public static void the_test_application_is_also_deleted_to_re_run_automated_test } Playwright_ServiceNow_Common_Methods.logOutOfNativeView(); } -} \ No newline at end of file + + /** + * Navigates an unauthenticated applicant to the SSJ homepage. + * + * @param ssjHomePage the URL of the SSJ homepage + */ + public static void an_unauthenticated_applicant_is_on_the_ssj_homepage(String ssjHomePage) { + page.navigate(EnvUtils.getApplicationUrl(ssjHomePage)); + CucumberLogUtils.playwrightScreenshot(page); + } + + /** + * Verifies whether the drop down text is as expected. + * + * @param expectedDropDownText The expected text of the drop down + */ + public static void verifies_that_the_drop_drown_text_is(String expectedDropDownText) { + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("//header[@class='Header']//span[2]").innerText(), expectedDropDownText); + } + + /** + * Clicks on the first vacancy from the list of available vacancies. + * It locates the first vacancy on the page and performs a click action on it. + * Additionally, it captures a screenshot of the page using the Playwright framework. + * + * @return void + */ + public static void clicks_on_the_first_vacancy() { + page.locator("(//td[@class='ant-table-cell'])[1]/a").click(); + CucumberLogUtils.playwrightScreenshot(page); + } + + /** + * This method verifies that the sign-in and apply button text is as expected. + * It uses the provided expectedSignInButtonText parameter to compare the actual button text. + * + * @param expectedSignInButtonText The expected text of the sign-in and apply button + */ + public static void verifies_that_sign_in_and_apply_button_text_is(String expectedSignInButtonText) { + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("//button[@class='ant-btn ant-btn-primary']//span").innerText(), expectedSignInButtonText); + } + + /** + * Verifies that the pop-up header text is equal to the expected modal header text. + * + * @param expectedModalHeaderText the expected modal header text + */ + public static void verifies_that_the_pop_up_header_text_is(String expectedModalHeaderText) { + page.waitForSelector("//div[@class='ant-modal-title']"); + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("//div[@class='ant-modal-title']").innerText(), expectedModalHeaderText); + } + + /** + * Verifies that the pop-up body text is equal to the expected modal body text. + * + * @param expectedModalBodyText The expected body text of the pop-up. + */ + public static void verifies_that_the_pop_up_body_text_is(String expectedModalBodyText) { + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("//div[@class='ant-typography']").innerText(), expectedModalBodyText); + } + + /** + * Verifies that the button text is as expected. + * + * @param expectedCreateAnAccountText The expected text for the "Create an account" button. + * @param expectedLogInText The expected text for the "Log in" button. + * @param expectedGoBackText The expected text for the "Go Back" button. + */ + public static void verifies_that_the_button_text_is(String expectedCreateAnAccountText, String expectedLogInText, String expectedGoBackText) { + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("//span[normalize-space()='Create an account']").innerText(), expectedCreateAnAccountText); + Hooks.softAssert.assertEquals(page.locator("//span[normalize-space()='Log in']").innerText(), expectedLogInText); + Hooks.softAssert.assertEquals(page.locator("//span[normalize-space()='Go Back']").innerText(), expectedGoBackText); + } + + /** + * Performs a click action on the specified login button and ensures that the user + * is redirected to the login portal. + * + * @param logInButton the locator of the login button element to click + */ + public static void clicks_and_is_redirected_to_the_login_portal(String logInButton) { + page.locator("//span[normalize-space()='Log in']").click(); + List pages = page.context().pages(); + newPage = pages.get(pages.size() - 1); + Hooks.softAssert.assertEquals(newPage.url(), "https://iam-stage.cancer.gov/app/servicenow_ud/exk13dplx1oy5d1pZ0h8/sso/saml?RelayState=https://specializedscientificjobs-test.nih.gov/nih-ssj.do#/"); + CucumberLogUtils.playwrightScreenshot(page); + } + + /** + * Verifies that the PIV/CAC card button text is equal to the provided value. + * + * @param pivCacCardButtonText the expected text of the PIV/CAC card button + */ + public static void verifies_that_the_piv_cac_card_button_text_is(String pivCacCardButtonText) { + newPage.waitForSelector("(//a[@class='piv-button link-button'])[1]"); + CucumberLogUtils.playwrightScreenshot(newPage); + Hooks.softAssert.assertEquals(newPage.locator("(//a[@class='piv-button link-button'])[1]").innerText(), pivCacCardButtonText); + } + + /** + * Takes a string expectedQuestionText as a parameter and validates that there is no question in the page content that matches the expectedQuestionText. + * If a matching question is found, a screenshot is taken using the Playwright framework and an assertion failure is triggered using the Hooks.softAssert class. + * + * @param expectedQuestionText the text of the question that is expected to be absent in the page content + */ + public static void user_sees_there_is_no_question_that_reads(String expectedQuestionText) { + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertFalse(page.content().contains(expectedQuestionText)); + } + + /** + * Confirms that the user sees a statement at the top of the screen with the expected text. + * + * @param expectedStatementText The expected text of the statement. + */ + public static void user_sees_there_is_a_statement_that_reads_at_the_top_of_the_screen(String expectedStatementText) { + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("//*[text()='Any reference provided can be contacted at any point in the recruitment process.']").innerText(), expectedStatementText); + } + + public static void user_clicks_on_save_application_button() { + Playwright_Common_Utils.scrollIntoView("(//span[normalize-space()='Save Application'])[1]"); + page.locator("//span[normalize-space()='Save Application']").click(); + CucumberLogUtils.playwrightScreenshot(page); + } + + public static void verifies_that_successful_save_alert_is_displayed(String expectedSuccessfulText) { + CucumberLogUtils.playwrightScreenshot(page); + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("//*[text()='Application successfully saved ']").textContent(), expectedSuccessfulText); + } + + public static void verifies_that_the_application_became_a_draft(String expectedDraftText) { + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("//*[text()='" + "DIEGO TEST" + " " + timestamp + "']/parent::td/following-sibling::td/span").innerText(), expectedDraftText); + } + + public static void clicks_the_application(String vacancyTitle) { + if (timestamp == null) { + Playwright_Common_Utils.scrollIntoView(Playwright_Common_Locators.dynamicTextLocator(vacancyTitle)); + page.locator(Playwright_Common_Locators.dynamicTextLocator(vacancyTitle)).click(); + } else { + Playwright_Common_Utils.scrollIntoView(Playwright_Common_Locators.dynamicTextLocator(vacancyTitle + " " + timestamp)); + page.locator(Playwright_Common_Locators.dynamicTextLocator(vacancyTitle + " " + timestamp)).click(); + } + CucumberLogUtils.playwrightScreenshot(page); + } + + public static void clicks_edit_vacancy(String applicationName) { + Playwright_Common_Utils.scrollIntoView("(//a[@rel='nofollow'])[1]"); + List pagination = page.querySelectorAll("//a[@rel='nofollow']"); + for (ElementHandle itemPage : pagination) { + if (page.querySelector("//a[normalize-space()='" + applicationName + " " + timestamp + "']") != null) { + page.locator("//td[normalize-space()='" + applicationName + " " + timestamp + "']/following-sibling::td//button/span[text()=' Edit']").click(); + break; + } else { + itemPage.click(); + } + } + CucumberLogUtils.playwrightScreenshot(page); + } + + public static void verifies_that_reference_one_is_updated(String expectedUpdatedReferenceOneFirstName, String expectedUpdatedReferenceOneMiddleName, String expectedUpdatedReferenceOneLastName, String expectedUpdatedReferenceOneEmail, String expectedUpdatedReferenceOnePhoneNumber, String expectedUpdatedReferenceOnePositionTitle, String expectedUpdatedReferenceOneOrganizationName) { + page.locator("#references_0_firstName"); + page.locator("#references_0_middleName"); + page.locator("#references_0_lastName"); + page.locator("#references_0_email"); + page.locator("#references_0_phoneNumber"); + page.locator("#references_0_title"); + page.locator("#references_0_organization"); + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("#references_0_firstName").inputValue(), expectedUpdatedReferenceOneFirstName); + Hooks.softAssert.assertEquals(page.locator("#references_0_middleName").inputValue(), expectedUpdatedReferenceOneMiddleName); + Hooks.softAssert.assertEquals(page.locator("#references_0_lastName").inputValue(), expectedUpdatedReferenceOneLastName); + Hooks.softAssert.assertEquals(page.locator("#references_0_email").inputValue(), expectedUpdatedReferenceOneEmail); + Hooks.softAssert.assertEquals(page.locator("#references_0_phoneNumber").inputValue(), expectedUpdatedReferenceOnePhoneNumber); + Hooks.softAssert.assertEquals(page.locator("#references_0_title").inputValue(), expectedUpdatedReferenceOnePositionTitle); + Hooks.softAssert.assertEquals(page.locator("#references_0_organization").inputValue(), expectedUpdatedReferenceOneOrganizationName); + } + + public static void verifies_tha_reference_two_is_updated(String expectedUpdatedReferenceTwoFirstName, String expectedUpdatedReferenceTwoMiddleName, String expectedUpdatedReferenceTwoLastName, String expectedUpdatedReferenceTwoEmail, String expectedUpdatedReferenceTwoPhoneNumber, String expectedUpdatedReferenceTwoPositionTitle, String expectedUpdatedReferenceTwoOrganizationName) { + page.locator("#references_1_firstName"); + page.locator("#references_1_middleName"); + page.locator("#references_1_lastName"); + page.locator("#references_1_email"); + page.locator("#references_1_phoneNumber"); + page.locator("#references_1_title"); + page.locator("#references_1_title"); + page.locator("#references_1_organization"); + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(page.locator("#references_1_firstName").inputValue(), expectedUpdatedReferenceTwoFirstName); + Hooks.softAssert.assertEquals(page.locator("#references_1_middleName").inputValue(), expectedUpdatedReferenceTwoMiddleName); + Hooks.softAssert.assertEquals(page.locator("#references_1_lastName").inputValue(), expectedUpdatedReferenceTwoLastName); + Hooks.softAssert.assertEquals(page.locator("#references_1_email").inputValue(), expectedUpdatedReferenceTwoEmail); + Hooks.softAssert.assertEquals(page.locator("#references_1_phoneNumber").inputValue(), expectedUpdatedReferenceTwoPhoneNumber); + Hooks.softAssert.assertEquals(page.locator("#references_1_title").inputValue(), expectedUpdatedReferenceTwoPositionTitle); + Hooks.softAssert.assertEquals(page.locator("#references_1_organization").inputValue(), expectedUpdatedReferenceTwoOrganizationName); + } + + public static void clicks_on_remove_button() { + page.locator("//td[normalize-space()='" + "DIEGO TEST" + " " + timestamp + "']/following-sibling::td//div/button/span[text()=' Remove']").click(); + CucumberLogUtils.playwrightScreenshot(page); + } + + public static void that_the_draft_was_removed(String Confirm) { + Playwright_Common_Utils.scrollIntoView(Playwright_Common_Locators.dynamicTextLocator(Confirm)); + page.locator(Playwright_Common_Locators.dynamicTextLocator(Confirm)).click(); + CucumberLogUtils.playwrightScreenshot(page); + } + + public static void verifies_that_the_draft_is_no_longer_showing_under_your_application_tab() { + boolean isFound = false; + Playwright_Common_Utils.scrollIntoView("(//a[@rel='nofollow'])[1]"); + List pagination = page.querySelectorAll("//a[@rel='nofollow']"); + for (ElementHandle itemPage : pagination) { + if (page.querySelector("//a[normalize-space()='" + "DIEGO TEST" + " " + timestamp + "']") != null) { + isFound = true; + break; + } else { + itemPage.click(); + } + } + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertFalse(isFound); + } + + public static void user_withdraws_the_application() { + page.locator("//td[normalize-space()='" + "DIEGO TEST" + " " + timestamp + "']/following-sibling::td//div/button/span[text()='Withdraw']").click(); + CucumberLogUtils.playwrightScreenshot(page); + } + + public static void withdrawing_the_application(String Withdraw) { + Playwright_Common_Utils.scrollIntoView(Playwright_Common_Locators.dynamicTextLocator(Withdraw)); + page.locator(Playwright_Common_Locators.dynamicTextLocator(Withdraw)).click(); + CucumberLogUtils.playwrightScreenshot(page); + } + + public static void verifies_that_the_application_status_is(String expectedWithdrawnText) { + String actualWithdrawnText = page.locator("//td[normalize-space()='" + "DIEGO TEST" + " " + timestamp + "']/following-sibling::td/span[text()='withdrawn']").innerText(); + CucumberLogUtils.playwrightScreenshot(page); + Hooks.softAssert.assertEquals(actualWithdrawnText, expectedWithdrawnText); + } +} diff --git a/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/StepsImplementation/OWM_Vacancy_Manager_StepsImpl.java b/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/StepsImplementation/OWM_Vacancy_Manager_StepsImpl.java index d1e88a6ea..8cf849ea1 100644 --- a/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/StepsImplementation/OWM_Vacancy_Manager_StepsImpl.java +++ b/src/test/java/ServiceNow/PlatformBusinessApps/SSJ/playwright/StepsImplementation/OWM_Vacancy_Manager_StepsImpl.java @@ -150,7 +150,7 @@ public static void user_sets_an_entry_as_today_s_date(String text) { public static void user_sets_a_entry_a_month_from_the_open_date(String text) { Playwright_Common_Utils.scrollIntoView(Playwright_Common_Locators.dynamicTextLocator(text)); page.locator(Vacancy_Dashboard_Page.closeDateCalendar).click(); - page.locator(Vacancy_Dashboard_Page.closeDateCalendar).fill(CommonUtils.getOneMonthFromTodayDatein_DD_MM_YYY_format()); + page.locator(Vacancy_Dashboard_Page.closeDateCalendar).fill(CommonUtils.getOneMonthFromTodayDate_In_DD_MM_YYY_format()); List list = page.querySelectorAll(Vacancy_Dashboard_Page.closeDateCalendarOptions); for (ElementHandle day : list) { if (day.getAttribute("title").trim().equals(CommonUtils.getDateOneMonthFromNowIn_YYYY_MM_DD_format().trim())) { @@ -168,7 +168,7 @@ public static void user_sets_a_entry_a_month_from_the_open_date(String text) { */ public static void user_sets_entry(String text) { page.getByLabel(text).click(); - page.locator(Vacancy_Dashboard_Page.scoringDueByDateCalendar).fill(CommonUtils.getOneMonthFromTodayDatein_DD_MM_YYY_format()); + page.locator(Vacancy_Dashboard_Page.scoringDueByDateCalendar).fill(CommonUtils.getOneMonthFromTodayDate_In_DD_MM_YYY_format()); List list = page.querySelectorAll(Vacancy_Dashboard_Page.calendarOptions); for (ElementHandle day : list) { if (day.getAttribute("title").trim().equals(CommonUtils.getDateOneMonthFromNowIn_YYYY_MM_DD_format().trim())) { diff --git a/src/test/java/appsCommon/PageInitializers/PageInitializer.java b/src/test/java/appsCommon/PageInitializers/PageInitializer.java index 91fa17a8e..0a3114fd5 100644 --- a/src/test/java/appsCommon/PageInitializers/PageInitializer.java +++ b/src/test/java/appsCommon/PageInitializers/PageInitializer.java @@ -127,9 +127,9 @@ public class PageInitializer extends WebDriverUtils { public static ProbandScreenerPage probandScreenerPage; public static MyRASLoginPage myRASLoginPage; public static MyRASHomePage myRASHomePage; - public static RASopathyQuestionnairePage rasopathyQuestionnairePage; + public static RAS_Screener_Page rasopathyQuestionnairePage; public static MyRASIIQFormPage myRASIIQFormPage; - public static RAS_Scenario_One_StepsImpl ras_scenario_one_stepsImpl; + public static RAS_Screener_Submissions_StepsImpl ras_screenerSubmissions_stepsImpl; public static RasScenario2StepsImpl rasScenario2StepsImpl; public static RasScenario3StepsImpl rasScenario3StepsImpl; public static RasScenario4StepsImpl rasScenario4StepsImpl; @@ -201,7 +201,6 @@ public class PageInitializer extends WebDriverUtils { public static UnauthenticatedApplicantPage unauthenticatedApplicantPage; public static StadtmanVacancyPage stadtmanVacancyPage; public static ApplicantFlowPage applicantFlowPage; - public static StadtmanVacancyStepsImplementation stadtmanVacancyStepsImplementation; public static OWMVacancyStepsImplementation oWMVacancyStepsImplementation; public static SSJLoginStepsImplementation sSJLoginStepsImplementation; @@ -410,12 +409,12 @@ public static void initializeAllPages() { probandScreenerPage = new ProbandScreenerPage(); myRASLoginPage = new MyRASLoginPage(); myRASHomePage = new MyRASHomePage(); - ras_scenario_one_stepsImpl = new RAS_Scenario_One_StepsImpl(); + ras_screenerSubmissions_stepsImpl = new RAS_Screener_Submissions_StepsImpl(); rasScenario2StepsImpl = new RasScenario2StepsImpl(); rasScenario3StepsImpl = new RasScenario3StepsImpl(); rasScenario4StepsImpl = new RasScenario4StepsImpl(); ras_scenario_five_stepsImpl = new RAS_Scenario_Five_StepsImpl(); - rasopathyQuestionnairePage = new RASopathyQuestionnairePage(); + rasopathyQuestionnairePage = new RAS_Screener_Page(); ras_Screener_Constants = new RAS_Screener_Constants(); ras_Survey_Constants = new RAS_Survey_Constants(); iiq_Constants = new IIQ_Constants(); diff --git a/src/test/java/appsCommon/Pages/NativeView_SideDoor_Dashboard_Page.java b/src/test/java/appsCommon/Pages/NativeView_SideDoor_Dashboard_Page.java index d4e2c232a..4b0e3b0b7 100644 --- a/src/test/java/appsCommon/Pages/NativeView_SideDoor_Dashboard_Page.java +++ b/src/test/java/appsCommon/Pages/NativeView_SideDoor_Dashboard_Page.java @@ -9,7 +9,6 @@ import io.github.sukgu.support.ElementFieldDecorator; import io.github.sukgu.support.FindElementBy; -/*THIS CLASS CONTAINS NATIVE VIEW DASHBOARD ELEMENTS*/ public class NativeView_SideDoor_Dashboard_Page { public static Shadow shadow = new Shadow(WebDriverUtils.webDriver); /* ALL TAB */ @@ -17,17 +16,9 @@ public class NativeView_SideDoor_Dashboard_Page { public static WebElement allTab; /* FILTER NAVIGATOR TEXT BOX */ - @FindElementBy(xpath = "//*[@class='sn-polaris-nav-header-filter can-animate']//child::input") + @FindElementBy(xpath = "//*[@class='sn-polaris-nav-header-filter can-animate']/input") public static WebElement filterNavigatorTextBox; - - /* FILTER NAVIGATOR TEXT BOX */ - @FindBy(css = ".super-filter-header.all-results-toggle.no-interaction") - public static WebElement filterNavigatorResultsTextBox; - - /* PIN */ - @FindElementBy(xpath = "//*[@class='sn-polaris-nav-header-controls pin']//child::button") - public static WebElement sideMenuPin; - + /* iFrame */ @FindElementBy(css = "iframe[title='Main Content']") public static WebElement nativeViewiFrame; @@ -56,18 +47,10 @@ public class NativeView_SideDoor_Dashboard_Page { @FindElementBy(xpath = "//div[@class='now-modal-footer']/now-button[2]") public static WebElement impersonateUserWindowButton; - /* NV POP UP CANCEL BUTTON */ - @FindElementBy(xpath = "//div[@class='now-button -primary -md']") - public static WebElement NVPopUpDiscardCancelButton; - /* FILTER NAVIGATION EMAILS BUTTON */ @FindElementBy(xpath = "//div[@class='sn-polaris-nav-body']/sn-collapsible-list[2]") public static WebElement filterNavigationEmailsButton; - /* FILTER NAVIGATION NOTIFICATIONS BUTTON */ - @FindElementBy(xpath = "//div[@class='sn-polaris-nav-body']/sn-collapsible-list[2]/div/div/ul/li[2]/span") - public static WebElement filterNavigationNotificationButton; - /* FILTER NAVIGATION MEMBERS OF CONGRESS */ @FindElementBy(xpath = "//span[@class='menu-item-row highlighted-menu-item-row']") public static WebElement filterNavigationMembersOfCongress; @@ -75,10 +58,14 @@ public class NativeView_SideDoor_Dashboard_Page { /* ASSETS MENU BUTTON */ @FindElementBy(xpath = "//*[text()='Assets'][1]") public static WebElement assetsMenuButton; - + + /* ALL PARTICIPANT DETAILS */ + @FindElementBy(xpath = "//*[text()='All Participant Details'][1]") + public static WebElement allParticipantDetailsLink; + /* NV: FHQ Patients Menu Link In NV Navigator */ @FindBy(css = "a[class='nested-item item-label keyboard-navigatable highlighted-item']") - public static WebElement nVFHQFilterMatchLink; + public static WebElement nVFHQFilterMatchLink; /* USE THIS METHOD TO SEARCH ANY TEXT USING THE NATIVE VIEW FILTER NAVIGATOR @param text @return */ public static WebElement dynamicFilterNavigatorTextSearch(String text) { diff --git a/src/test/java/appsCommon/PlaywrightUtils/Playwright_ServiceNow_Common_Methods.java b/src/test/java/appsCommon/PlaywrightUtils/Playwright_ServiceNow_Common_Methods.java index 61f65f64c..7eff8a42c 100644 --- a/src/test/java/appsCommon/PlaywrightUtils/Playwright_ServiceNow_Common_Methods.java +++ b/src/test/java/appsCommon/PlaywrightUtils/Playwright_ServiceNow_Common_Methods.java @@ -44,7 +44,7 @@ public static void side_Door_Test_Account_Login_Impersonate(String name){ page.getByRole(AriaRole.COMBOBOX, new Page.GetByRoleOptions().setName(Playwright_NativeView_Dashboard_Page.impersonateUserDropDown)).fill(name); page.waitForLoadState(); MiscUtils.sleep(3000); - page.locator(Playwright_NativeView_Dashboard_Page.impersonateDropDownOption).getByRole(AriaRole.OPTION, new Locator.GetByRoleOptions().setName(name + " " + name)).click(); + page.locator(Playwright_NativeView_Dashboard_Page.impersonateDropDownOption).getByRole(AriaRole.OPTION, new Locator.GetByRoleOptions().setName(name)).click(); page.getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName(Playwright_NativeView_Dashboard_Page.impersonateUserButton)).click(); } @@ -75,4 +75,4 @@ public static void logOutOfNativeView(){ page.locator(Playwright_ServiceNow_NCISP_Page.profileAccountButton).click(); page.getByRole(AriaRole.MENUITEM, new Page.GetByRoleOptions().setName(Playwright_ServiceNow_NCISP_Page.logOutLink)).click(); } -} +} \ No newline at end of file