Additional wait for citest

This commit is contained in:
Martin Stockhammer 2017-06-10 20:46:30 +02:00
parent f255732969
commit 6470118db0
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@ public class WebDriverBrowseTest
// wait until topbar-menu-container is feeded // wait until topbar-menu-container is feeded
await().atMost( 5, TimeUnit.SECONDS ).untilPredicate( ( fl ) -> $( "#topbar-menu" ).present() ); await().atMost( 5, TimeUnit.SECONDS ).untilPredicate( ( fl ) -> $( "#topbar-menu" ).present() );
await().atMost( 10, TimeUnit.SECONDS).untilPredicate( (fl) -> el("#create-admin-link-a").conditions().clickable() ||
el("#login-link-a").conditions().clickable()
);
FluentList<FluentWebElement> elements = find( "#create-admin-link-a" ); FluentList<FluentWebElement> elements = find( "#create-admin-link-a" );
if ( !elements.isEmpty() && elements.get( 0 ).displayed() ) if ( !elements.isEmpty() && elements.get( 0 ).displayed() )