
Untitled
By: a guest on
Aug 7th, 2012 | syntax:
None | size: 0.46 KB | hits: 14 | expires: Never
Best way to find out if jqGrid is loaded and ready with Selenium
private readonly string waitScript;
waitScript = string.Format(script, jqGridId);
public void WaitUntilLoadIconDissappears()
{
driver.WaitUntil(MAXWAIT, Wait);
}
public bool Wait()
{
var executeScript = ((IJavaScriptExecutor) driver).ExecuteScript(waitScript);
bool result;
bool tryParse = bool.TryParse(executeScript.SafeToString(), out result);
return tryParse && result;
}