public static void ShouldIncludeAtLeastOneLicense( RemoteWebDriver driver, AuthenticatingNavigator navigator )
{
using ( driver.FinallyQuitGuard() ) // TODO improve this using http://xunit.codeplex.com/workitem/9798 ( WAS: http://xunit.codeplex.com/discussions/362097 )
{
navigator.NavigateWithAuthenticate( driver, "license" );
// Even when cold, 5 seconds is a long time to wait
WebDriverWait wait = new WebDriverWait( driver, TimeSpan.FromSeconds( 5 ) );
wait.Until( d => driver.FindElementsByCssSelector( "#licenses tr" ).Count > 0 );
}
}