Saturday, March 23, 2013

To make the Selenium WebDriver click on an element as soon as it is clickable,instead of loading the entire page

To make the Selenium WebDriver click on an element as soon as it is clickable,instead of loading the entire page, you can change the profile settings in case of FireFoxDriver  to make it not wait for the full page to load.


        FirefoxProfile profile = new FirefoxProfile();
        profile.SetPreference("webdriver.load.strategy", "unstable");

No comments:

Post a Comment