Skip to content
Snippets Groups Projects
Commit 2a35c65b authored by srosse's avatar srosse
Browse files

OO-4934: update selenium test for assessment mode

parent 80b16856
No related branches found
No related tags found
No related merge requests found
...@@ -119,14 +119,6 @@ public class AssessmentModePage { ...@@ -119,14 +119,6 @@ public class AssessmentModePage {
* @return * @return
*/ */
public AssessmentModePage confirmStart() { public AssessmentModePage confirmStart() {
return confirmDialog();
}
/**
* Confirm a standard yes/no dialog
* @return
*/
private AssessmentModePage confirmDialog() {
By confirmButtonBy = By.cssSelector("div.modal-dialog div.modal-footer a"); By confirmButtonBy = By.cssSelector("div.modal-dialog div.modal-footer a");
List<WebElement> buttonsEl = browser.findElements(confirmButtonBy); List<WebElement> buttonsEl = browser.findElements(confirmButtonBy);
buttonsEl.get(0).click(); buttonsEl.get(0).click();
...@@ -149,7 +141,11 @@ public class AssessmentModePage { ...@@ -149,7 +141,11 @@ public class AssessmentModePage {
} }
public AssessmentModePage confirmStop() { public AssessmentModePage confirmStop() {
return confirmDialog(); By confirmButtonBy = By.cssSelector("div.modal-dialog div.modal-body button.btn-primary");
OOGraphene.waitElement(confirmButtonBy, browser);
browser.findElement(confirmButtonBy).click();
OOGraphene.waitBusy(browser);
return this;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment