Setup Menus in Admin Panel

ITeLearn.com

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

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
guest

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
Offline

Hi
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)
3.2.0.0
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: ‘192.168.0.21’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
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(ErrorHandler.java:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:638)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:371)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByLinkText(RemoteWebDriver.java:428)
at org.openqa.selenium.By$ByLinkText.findElement(By.java:246)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
at project2.anyAUT_IE.myTest(anyAUT_IE.java:36)
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(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
————————————————–
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;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.support.ui.Select;

public class anyAUT_IE {
WebDriver myDriver;
String autURL;
@Before
public void myBefore() throws InterruptedException{
System.out.println(“This is my before annotation.”);
System.setProperty(“webdriver.ie.driver”, “C:/Users/spoda/Desktop/selelium training//Drivers/IEDriverServer.exe”);
myDriver= new InternetExplorerDriver();
Thread.sleep(5000);
autURL=”http://dev.atomic77.in”;
myDriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
@Test
public void myTest() throws InterruptedException {
System.out.println(“This is my test annotation”);
Thread.sleep(5000);
myDriver.get(autURL + “/ANAUv1/app/”);
Thread.sleep(5000);
myDriver.findElement(By.linkText(“User Sign Up”)).click();
myDriver.findElement(By.xpath(“//input[@id=’register_firstname’]”)).clear();
myDriver.findElement(By.xpath(“//input[@id=’register_firstname’]”)).sendKeys(“M”);

}

@After
public void myAfter() {
System.out.println(“This is my After annotation”);
//myDriver.close();
}
}

March 24, 2017
10:40 am
Techhelp
Member
Forum Posts: 1866
Member Since:
October 26, 2012
Offline

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:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Techhelp: 1866

Manu: 114

Shan Nathan: 80

Palanki sai charan: 67

Userone: 59

Vishal Anand: 53

Archana Sapre: 51

Geetha Reddy: 44

useL: 38

Priyanka Perumalla: 36

Member Stats:

Guest Posters: 19

Members: 7792

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 22

Topics: 2040

Posts: 5634

Newest Members: Hetal Patel, Nitasha Chandiramani, Durgarani Yegireddy, Anoop Gopalakrishnapillai, Ali Kassam, Babitha Indla, Nadeem Delhiwala, Abhinaya Abhinaya, Fuad Khan, Chandrasekhar Medi

Administrators: Karthik eLearn (Admin): 49

0 Responses on Discussions"

Main Menu