Created
August 19, 2019 18:02
-
-
Save atshane253/d9fb76ddc838a8e6f85e1db403918ae9 to your computer and use it in GitHub Desktop.
Selenium WebDriver Wait for updatepanel postback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void WaitForUpdatePanel(this IWebDriver driver) => | |
new WebDriverWait(driver, WAIT).Until(d=> | |
!(bool)(driver as IJavaScriptExecutor).ExecuteScript("return Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment