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

no-jira: try to fix selenium test for LTI course element

parent 4296228d
No related branches found
No related tags found
No related merge requests found
...@@ -52,12 +52,15 @@ public class LTIPage { ...@@ -52,12 +52,15 @@ public class LTIPage {
By iframeBy = By.cssSelector(".o_iframedisplay iframe"); By iframeBy = By.cssSelector(".o_iframedisplay iframe");
OOGraphene.waitElement(iframeBy, browser); OOGraphene.waitElement(iframeBy, browser);
OOGraphene.waitingALittleLonger();
List<WebElement> iframes = browser.findElements(iframeBy); WebElement iframe = browser.findElement(iframeBy);
browser = browser.switchTo().frame(iframes.get(0)); WebDriver iframeBrowser = browser.switchTo().frame(iframe);
By launchedBy = By.xpath("//p[contains(text(),'Launch Validated.')]"); By launchedBy = By.xpath("//p[contains(text(),'Launch Validated.')]");
OOGraphene.waitElement(launchedBy, browser); OOGraphene.waitElement(launchedBy, browser);
iframeBrowser.switchTo().defaultContent();
} catch (Exception e) { } catch (Exception e) {
OOGraphene.takeScreenshot("LTIPage_start", browser); OOGraphene.takeScreenshot("LTIPage_start", browser);
throw e; throw e;
......
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