diff --git a/cws-test/src/test/java/jpl/cws/test/integration/ui/InitiatorsTestIT.java b/cws-test/src/test/java/jpl/cws/test/integration/ui/InitiatorsTestIT.java index 8156dacf..46e7706f 100644 --- a/cws-test/src/test/java/jpl/cws/test/integration/ui/InitiatorsTestIT.java +++ b/cws-test/src/test/java/jpl/cws/test/integration/ui/InitiatorsTestIT.java @@ -178,7 +178,12 @@ public void runStartInitiatorTest() throws IOException { String color = driver.findElement(By.className("progress-bar-success")).getCssValue("background-color"); log.info(color); - if (color.equals("rgba(92, 184, 92, 1)")) { //color = green + WebElement progressBar = driver.findElement(By.className("progress-bar-success")); + js.executeScript("arguments[0].scrollIntoViewIfNeeded();", progressBar); + sleep(1000); + screenShot("InitiatorTestIT-runStartInitiatorTestColor"); + + if (color.equals("rgba(13, 110, 253, 1)")) { //color = green scriptPass = true; testCasesCompleted++; } @@ -210,6 +215,7 @@ public void runVariableProcTest() throws IOException { waitForElementID("processes-table"); log.info("Clicking on Test Initiators Page history."); + sleep(5000); WebElement historyButton = findElByXPath("//a[contains(text(),'History')]"); waitForElement(historyButton); historyButton.sendKeys(Keys.RETURN); @@ -217,6 +223,7 @@ public void runVariableProcTest() throws IOException { findOnPage("CWS - History"); log.info("Looking for 'variable1 = foo' and 'variable2 = bar'"); + if (findOnPage("Setting (string) variable1 = foo") && findOnPage("Setting (string) variable2 = bar")) { scriptPass = true;