Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrodjpl committed Apr 15, 2024
1 parent dd65c66 commit 863464c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand Down Expand Up @@ -210,13 +215,15 @@ 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);

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;
Expand Down

0 comments on commit 863464c

Please sign in to comment.