Setup Menus in Admin Panel

Selenium webdriver code not working on IE but it does in Chrome..need help to fix error | Selenium Automation | Discussions |

Forum usage guidelines

  1. Search First.: If you don’t find a similar post, start a new topic. If you find a similar thread and still have a question, reply to that topic. Duplicate threads will be ignored/deleted without warning.
  2. Proper Subject: Ensure you choose a very appropriate topic name. Else it will be tough to get support from other members.
  3. Patience, please: Our Tech team or other members will usually try to respond within 24 hours on weekdays and max within 48 hours on weekends. Sometimes sooner.
  4. Share opinions: Please feel free to reply, add or comment on any ongoing topics. Collective learning will be of great benefit to all.

ITeLearn reviews from participants.

Please consider registering

Log In

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Selenium webdriver code not working on IE but it does in Chrome..need help to fix error
March 15, 2017
2:02 pm
Madhumathi Podaralla
New Member
Forum Posts: 1
Member Since:
January 31, 2017

with help Karthik basic videos I was able to run tests successfully for anyaut -signup page using Chrome browser.
But when I try to execute the same code on IE browser getting error.
steps followed:
Changed the driver,Imported the IE browser libraries… details.
Get rid off all syntax errors.
when executing , AnyAUT login page is launching then failing by throwing below error:

seeing the below info in the console:
This is my before annotation.
Started InternetExplorerDriver server (64-bit)
Listening on port 1535
Only local connections are allowed
Mar 15, 2017 4:57:27 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
This is my test annotation
This is my After annotation
org.openqa.selenium.NoSuchWindowException: Unable to find element on closed window (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 64 milliseconds
Build info: version: ‘3.2.0’, revision: ‘8c03df6’, time: ‘2017-03-02 09:34:51 -0800’
System info: host: ‘DESKTOP-II82FVB’, ip: ‘’, ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info:
Capabilities [{browserAttachTimeout=0, ie.enableFullPageScreenshot=true, enablePersistentHover=true, ie.forceCreateProcessApi=false, ie.forceShellWindowsApi=false, pageLoadStrategy=normal, ignoreZoomSetting=false, ie.fileUploadDialogTimeout=3000, version=11, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=http://localhost:28358/, javascriptEnabled=true, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss}]
Session ID: 3f07f045-cd54-477d-9145-b45b537422ab
*** Element info: {Using=link text, value=User Sign Up}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(
at org.openqa.selenium.remote.RemoteWebDriver.execute(
at org.openqa.selenium.remote.RemoteWebDriver.findElement(
at org.openqa.selenium.remote.RemoteWebDriver.findElementByLinkText(
at org.openqa.selenium.By$ByLinkText.findElement(
at org.openqa.selenium.remote.RemoteWebDriver.findElement(
at project2.anyAUT_IE.myTest(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
at org.junit.runners.model.FrameworkMethod.invokeExplosively(
at org.junit.internal.runners.statements.InvokeMethod.evaluate(
at org.junit.internal.runners.statements.RunBefores.evaluate(
at org.junit.internal.runners.statements.RunAfters.evaluate(
at org.junit.runners.ParentRunner.runLeaf(
at org.junit.runners.BlockJUnit4ClassRunner.runChild(
at org.junit.runners.BlockJUnit4ClassRunner.runChild(
at org.junit.runners.ParentRunner$
at org.junit.runners.ParentRunner$1.schedule(
at org.junit.runners.ParentRunner.runChildren(
at org.junit.runners.ParentRunner.access$000(
at org.junit.runners.ParentRunner$2.evaluate(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
My Code:
package project2;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class anyAUT_IE {
WebDriver myDriver;
String autURL;
public void myBefore() throws InterruptedException{
System.out.println(“This is my before annotation.”);
System.setProperty(“”, “C:/Users/spoda/Desktop/selelium training//Drivers/IEDriverServer.exe”);
myDriver= new InternetExplorerDriver();
myDriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
public void myTest() throws InterruptedException {
System.out.println(“This is my test annotation”);
myDriver.get(autURL + “/ANAUv1/app/”);
myDriver.findElement(By.linkText(“User Sign Up”)).click();


public void myAfter() {
System.out.println(“This is my After annotation”);

March 24, 2017
10:40 am
Forum Posts: 1959
Member Since:
October 26, 2012

Try going to Internet Options –> Security –> “Enable Protected Mode” on ALL zones should either be checked or ALL unchecked.

Forum Timezone: UTC -8

Most Users Ever Online: 70

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Techhelp: 1959

Manu: 114

Shan Nathan: 80

Palanki sai charan: 67

Userone: 59

Vishal Anand: 53

Archana Sapre: 51

Geetha Reddy: 44

useL: 38

Kavya Vangala: 37

Member Stats:

Guest Posters: 19

Members: 8190

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 22

Topics: 2137

Posts: 5868

Newest Members: Shakthi Kumar, Manisha Bhole, Anand Peddakotla, Ambica Karra, Puja Sharma, Nabin Bhusal, Mostafa Khaled, Mahesh Dhaigude Zensar, Swati R, Maruf Murshed

Administrators: Karthik eLearn (Admin): 49

0 Responses on Discussions"

Main Menu