]> source.dussan.org Git - sonarqube.git/commitdiff
try to fix selenium FP
authorStas Vilchik <vilchiks@gmail.com>
Fri, 18 Sep 2015 14:01:40 +0000 (16:01 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 18 Sep 2015 14:02:48 +0000 (16:02 +0200)
server/sonar-web/test/helpers/test-page.js

index 1679f4d1733c3a4ba6bebcfb3457e4d8a77bcfec..aaa5e5b56ddfbef42e664d7f4d1aa4511a2596a5 100644 (file)
@@ -93,6 +93,8 @@ define(function (require) {
   Command.prototype.clickElement = function (selector) {
     return new this.constructor(this, function () {
       return this.parent
+          .checkElementExist(selector)
+          .sleep(250)
           .findByCssSelector(selector)
           .click()
           .end()