Running scripts on IE11 and windows 10

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Running scripts on IE11 and windows 10

ankit garg-2
Hi,

Can some one please help me on how to run scripts on IE-11.

String driverPath = "C:\\Softwares\\Drivers\\IEDriverServer_Win32_3.12.0\\";
System.setProperty("webdriver.ie.driver", driverPath + "IEDriverServer.exe");
DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
caps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
caps.setCapability("ignoreZoomSetting", true);
driver = new InternetExplorerDriver(caps);
//driver = new InternetExplorerDriver();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
System.out.println("After navigation");
/*

For me browser is opening but it's not navigating to the url.

Thanks,
Ankit

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKOTObPcnLKKs5Zf-%2BxwcV4TpaxC8MQRo6VtiiPYsPj8%2B31a6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running scripts on IE11 and windows 10

c-sponnusamy
Try cleaning the cache before launching .
Local:

    var options = new InternetExplorerOptions();
    options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
    //Clean the session before launching the browser
    options.EnsureCleanSession = true;
Remote:

    capabilities = DesiredCapabilities.InternetExplorer();
    capabilities.SetCapability("ie.ensureCleanSession", true);

To Launch the browser ie11:

    var dc = DesiredCapabilities.internetExplorer()
    dc.setJavascriptEnabled(true)
    dc.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true)
    dc.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true)
    dc.setCapability(InternetExplorerDriver.ENABLE_ELEMENT_CACHE_CLEANUP, true)

    dc.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);

    remote = new RemoteWebDriver(new URL("https://www.guru99.com/desired-capabilities-selenium.html"), dc);

On Thursday, June 28, 2018 at 11:51:48 PM UTC-7, ankit garg wrote:
Hi,

Can some one please help me on how to run scripts on IE-11.

String driverPath = "C:\\Softwares\\Drivers\\IEDriverServer_Win32_3.12.0\\";
System.setProperty("webdriver.ie.driver", driverPath + "IEDriverServer.exe");
DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
caps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
caps.setCapability("ignoreZoomSetting", true);
driver = new InternetExplorerDriver(caps);
//driver = new InternetExplorerDriver();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.get("<a href="https://www.guru99.com/desired-capabilities-selenium.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.guru99.com%2Fdesired-capabilities-selenium.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhVNmJwZZ303lTJYKVa3-yoBPKMQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.guru99.com%2Fdesired-capabilities-selenium.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhVNmJwZZ303lTJYKVa3-yoBPKMQ&#39;;return true;">https://www.guru99.com/desired-capabilities-selenium.html");
System.out.println("After navigation");
/*

For me browser is opening but it's not navigating to the url.

Thanks,
Ankit

This email may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use, distribution or disclosure is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and delete all copies of this message.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/96550614-3939-4062-84a2-a318862ba5a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running scripts on IE11 and windows 10

ankit garg-2

Thanks above solution worked.

Regards,
Ankit

On Fri, Jun 29, 2018 at 8:58 PM, <[hidden email]> wrote:
Try cleaning the cache before launching .
Local:

    var options = new InternetExplorerOptions();
    options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
    //Clean the session before launching the browser
    options.EnsureCleanSession = true;
Remote:

    capabilities = DesiredCapabilities.InternetExplorer();
    capabilities.SetCapability("ie.ensureCleanSession", true);

To Launch the browser ie11:

    var dc = DesiredCapabilities.internetExplorer()
    dc.setJavascriptEnabled(true)
    dc.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true)
    dc.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true)
    dc.setCapability(InternetExplorerDriver.ENABLE_ELEMENT_CACHE_CLEANUP, true)

    dc.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);

    remote = new RemoteWebDriver(new URL("https://www.guru99.com/desired-capabilities-selenium.html"), dc);

On Thursday, June 28, 2018 at 11:51:48 PM UTC-7, ankit garg wrote:
Hi,

Can some one please help me on how to run scripts on IE-11.

String driverPath = "C:\\Softwares\\Drivers\\IEDriverServer_Win32_3.12.0\\";
System.setProperty("webdriver.ie.driver", driverPath + "IEDriverServer.exe");
DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
caps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
caps.setCapability("ignoreZoomSetting", true);
driver = new InternetExplorerDriver(caps);
//driver = new InternetExplorerDriver();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
System.out.println("After navigation");
/*

For me browser is opening but it's not navigating to the url.

Thanks,
Ankit

This email may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use, distribution or disclosure is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and delete all copies of this message.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/96550614-3939-4062-84a2-a318862ba5a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKOTObMYGDf9RRsgMOa6pYWqdeXkgXe%3DQT%2BEihOwzM35%2BoSHBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Running scripts on IE11 and windows 10

dev.perera
Hi Ankit,

Just replace,
with

....................
Thanks
Dev Chaminda Perera

On 2 July 2018 at 06:26, ankit garg <[hidden email]> wrote:

Thanks above solution worked.

Regards,
Ankit

On Fri, Jun 29, 2018 at 8:58 PM, <[hidden email]> wrote:
Try cleaning the cache before launching .
Local:

    var options = new InternetExplorerOptions();
    options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
    //Clean the session before launching the browser
    options.EnsureCleanSession = true;
Remote:

    capabilities = DesiredCapabilities.InternetExplorer();
    capabilities.SetCapability("ie.ensureCleanSession", true);

To Launch the browser ie11:

    var dc = DesiredCapabilities.internetExplorer()
    dc.setJavascriptEnabled(true)
    dc.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true)
    dc.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true)
    dc.setCapability(InternetExplorerDriver.ENABLE_ELEMENT_CACHE_CLEANUP, true)

    dc.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);

    remote = new RemoteWebDriver(new URL("https://www.guru99.com/desired-capabilities-selenium.html"), dc);

On Thursday, June 28, 2018 at 11:51:48 PM UTC-7, ankit garg wrote:
Hi,

Can some one please help me on how to run scripts on IE-11.

String driverPath = "C:\\Softwares\\Drivers\\IEDriverServer_Win32_3.12.0\\";
System.setProperty("webdriver.ie.driver", driverPath + "IEDriverServer.exe");
DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
caps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
caps.setCapability("ignoreZoomSetting", true);
driver = new InternetExplorerDriver(caps);
//driver = new InternetExplorerDriver();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
System.out.println("After navigation");
/*

For me browser is opening but it's not navigating to the url.

Thanks,
Ankit

This email may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use, distribution or disclosure is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and delete all copies of this message.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/96550614-3939-4062-84a2-a318862ba5a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKOTObMYGDf9RRsgMOa6pYWqdeXkgXe%3DQT%2BEihOwzM35%2BoSHBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKvVmYqDo%2BM-aW035TR0fnE%3DsnwE_GR2Xh0iOktewX-Q%2BVrs8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.