Answer the question
In order to leave comments, you need to log in
Does XHR make Selenium requests?
Let's say on some page, by means of it setInterval
performs some xhr request with some periodicity. Will Selenium execute these same requests while the page code is loaded into it?
Answer the question
In order to leave comments, you need to log in
well, actually, it should. JS, whether it will work or not work at all.
Just in case, if it still doesn't work, you can always force the driver to execute your script.
WebDriver driver = new ChromeDriver();
if (driver instanceof JavascriptExecutor) {
((JavascriptExecutor) driver).executeScript("alert('hello world');");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question