None of the options provided seem to be working. Are there any alternative approaches that can be utilized in Selenium using C# or JavaScript?
I attempted the following statements without success:
driver.findElement(By.tagName("body")).sendKeys("Keys.ESCAPE");
and
driver.execute_script("window.stop();")
driver.findElement(By.tagName("body")).sendKeys("Keys.ESCAPE");
and
driver.execute_script("window.stop();")
I am looking for a way to prevent a web page from reloading.