Skip to content

Commit

Permalink
Avoid iframes without title
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono committed Jul 22, 2016
1 parent add37dd commit ddd1fb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/scala/computerdatabase/SakaiSimulation.scala
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ class SakaiSimulation extends Simulation {
.check(css("title").transform( (x,session) => {
x.replace(" : My Workspace : "," : Home : ").indexOf(sakaiInstanceName+" : " + session("site").as[(String,String)]._1 + " : " + session("tool").as[(String,String)]._1)
}).greaterThan(-1))
.check(css("iframe","src").findAll.optional.saveAs("frameUrls"))
.check(css("iframe","title").findAll.optional.saveAs("frameNames")))
.check(css("iframe[title]","src").findAll.optional.saveAs("frameUrls"))
.check(css("iframe[title]","title").findAll.optional.saveAs("frameNames")))
.pause(pauseMin,pauseMax)
/** Take care of all iframed tools */
.doIf("${frameUrls.exists()}") {
Expand Down

0 comments on commit ddd1fb5

Please sign in to comment.