admin管理员组

文章数量:1122846

I'm writing some Selenium tests (in C#) for a React app.

I need to have ChromeDriver wait until all GraphQL requests are finished. I have method that waits till all jQuery requests are finished:

WebDriverWait.Until(d => (bool)((IJavaScriptExecutor)Driver).ExecuteScript("return window.jQuery != undefined && jQuery.active == 0"))

but I need to rewrite this query for GraphQL requests.

Thank you in advance.

本文标签: javascriptLet Selenium driver wait till all GraphQL requests are finishedStack Overflow