Set capability on already running selenium webdriver

Viewed 8355

In selenium test step (like a button click) i want to prevent the selenium waiting for page finish loading. I cant throw the load Exception because then i cant work with the page anymore. Its possible to do a simmilar thing like this:

DesiredCapabilities dr = DesiredCapabilities.chrome();
dr.setCapability("pageLoadStrategy", "none");
WebDriver driver = new RemoteWebDriver(new URL("...."), dr);

What I want is like "dr.setCapability("pageLoadStrategy", "none");" but just for one specifique step.

Does anyone know a way to do this?

2 Answers
Related