From e97aaae23c3b35507dadbfe5e564b0998aac1821 Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Wed, 19 Mar 2014 12:37:03 +0100 Subject: [PATCH] OO-1018: fix selenium tests --- .../olat/util/FunctionalEPortfolioUtil.java | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/test/java/org/olat/util/FunctionalEPortfolioUtil.java b/src/test/java/org/olat/util/FunctionalEPortfolioUtil.java index 8b525d79040..5180ce20917 100644 --- a/src/test/java/org/olat/util/FunctionalEPortfolioUtil.java +++ b/src/test/java/org/olat/util/FunctionalEPortfolioUtil.java @@ -1448,7 +1448,7 @@ public class FunctionalEPortfolioUtil { selectTree(browser, binder, page, structure); /* open wizard by clicking link link */ - StringBuffer selectorBuffer = new StringBuffer(); + StringBuilder selectorBuffer = new StringBuilder(); selectorBuffer.append("xpath=//a[contains(@class, '") .append(getAddLinkCss()) .append("')]"); @@ -1464,7 +1464,7 @@ public class FunctionalEPortfolioUtil { functionalUtil.idle(browser); /* click appropriate artefact type */ - selectorBuffer = new StringBuffer(); + selectorBuffer = new StringBuilder(); selectorBuffer.append("xpath=//a[contains(@class, '") .append(alias.getAddLinkCss()) @@ -1496,20 +1496,9 @@ public class FunctionalEPortfolioUtil { } break; } - + functionalUtil.idle(browser); - - /* close dialog */ - selectorBuffer = new StringBuffer(); - - selectorBuffer.append("xpath=//div[contains(@class, 'b_window_header')]//a[contains(@class, '") - .append(functionalUtil.getWindowCloseLinkCss()) - .append("')]"); - - browser.click(selectorBuffer.toString()); - functionalUtil.waitForPageToLoad(browser); - - return(true); + return true; } public FunctionalUtil getFunctionalUtil() { -- GitLab