Skip to content

Initial Page Loading (IE/Chrome) takes huge time if launching via Selenium #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
qualityking opened this issue Mar 20, 2015 · 1 comment
Labels
A-needs investigation TLC needs to do discovery D-IE

Comments

@qualityking
Copy link

Hi Folks,
I am trying to open one of my heavy web application using selenium, and facing considerable performance issue.
when i am opening the same application without selenium it works very very fast, not sure why such issue, (please note i am new to this community, i might be missing something here)

I am also forcing browser to cache the contents, but looking into fiddler contents are also not getting cached.. have spent now a complete day with no satisfaction.. please help

PS : Do we have any active community forum where we get answers from active users.

static NewInternetExplorerDriver driver; 

    @BeforeClass
    public static void launchDriver(){
        System.setProperty("webdriver.ie.driver","IEDriverServer32.exe");
        //System.setProperty("webdriver.chrome.driver", "chromedriver32.exe");

        DesiredCapabilities cap = DesiredCapabilities.internetExplorer();  
        cap.setCapability(InternetExplorerDriver.ENABLE_ELEMENT_CACHE_CLEANUP, false);
        cap.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, false);
        cap.setCapability(CapabilityType.SUPPORTS_APPLICATION_CACHE, true);


        Capabilities cap1 = (Capabilities) cap; 

        driver = new NewInternetExplorerDriver(cap1);
        //driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);
        driver.manage().timeouts().implicitlyWait(60,TimeUnit.SECONDS);


    }

    @Test
    public void Step1_LaunchApplication() throws InterruptedException {
        driver.get("http://server23:8086/home");
        System.out.println("Loading Completed"); 
        Thread.sleep(2000); 
    }
@andreastt andreastt added D-IE A-needs investigation TLC needs to do discovery labels Mar 20, 2015
@lukeis
Copy link
Member

lukeis commented Mar 20, 2015

This is a question rather than an issue. Please send questions to the selenium user group

For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect.

See CONTRIBUTING.md

@lukeis lukeis closed this as completed Mar 20, 2015
@lock lock bot locked and limited conversation to collaborators Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-needs investigation TLC needs to do discovery D-IE
Projects
None yet
Development

No branches or pull requests

3 participants