Unable to create log file of IEDriverServer.exe

927 views
Skip to first unread message

testingzeal

unread,
Apr 29, 2014, 6:50:00 PM4/29/14
to webd...@googlegroups.com

I am launching the node using this command which is successful, but not generating logs.

FYI- I created the folder "C:\webdriver\IE.log" on the node,but it is not generating log as the log file is @0kb. 

Please suggest how to launch the node that generates log file.


java -jar selenium-server-standalone-2.39.0.jar -Xms=256m -role node -Dwebdriver.chrome.driver="C:\Chromedriver\chromedriver.exe" -Dwebdriver.ie.driver="C:\IEdriver\IEDriverServer.exe" --log-level=TRACE --log-file="C:\webdriver\IE.log" -nodeConfig nodeConfig.json -Xmx=512m


Reason i am doing this is - I am getting this error  "internet explorer has stopped working" on Windows 7 and IE11.0 and 2.39.0 of webdriver with 32 bit IEserver of 2.39.0 


1.I tried resetting the browser with default settings that didn't work and other browser setttings ,but no luck. 


Please help

Jim Evans

unread,
Apr 29, 2014, 7:57:46 PM4/29/14
to webd...@googlegroups.com
What you really want is this:

java -jar selenium-server-standalone-2.39.0.jar -Xms=256m -role node -Dwebdriver.chrome.driver="C:\Chromedriver\chromedriver.exe" -Dwebdriver.ie.driver="C:\IEdriver\IEDriverServer.exe" -Dwebdriver.ie.driver.loglevel=TRACE -Dwebdriver.ie.driver.logfile="C:\webdriver\IE.log" -nodeConfig nodeConfig.json -Xmx=512m

This information can be found in the project wiki at https://code.google.com/p/selenium/wiki/InternetExplorerDriver.

Let me caution you, however. If you're considering opening an issue in the tracker, having only the logs to share (and not a sample website to repro the issue against), your issue report will get no attention, aside from asking for a repro case.

testingzeal

unread,
Apr 29, 2014, 9:09:26 PM4/29/14
to webd...@googlegroups.com
Thanks Jim. 

I tried several browser settings and rebooted my machine several times that was suggested in google search. But nothing works.

When i execute a single script, that works fine but while running a group using maven command, i get this error.

This is occurs while clicking a link /entering data on text field etc...

Is there a way to suppress this error?

 "internet explorer has stopped working" on Windows 7 and IE11.0 and 2.39.0 of webdriver with 32 bit IEserver of 2.39.0 

Thanks in advance!

testingzeal

unread,
Apr 29, 2014, 9:45:03 PM4/29/14
to webd...@googlegroups.com
More details of the issue- 

Detailed steps to reproduce this issue -

1.When clicked on a link, it opens a new tab -yes , that is application functionality  -that is where it is throwing this "command line server for IE has stopped working" 

Here is code i have to click the link and setting the focus to the child window and filling the form.Do you see anything wrong in my code?


driver.switchTo().frame("content");
WebDriverWait wait=new WebDriverWait(driver, timeout);
wait.until(ExpectedConditions.presenceOfElementLocated(By.linkText("Start a Request")));
driver.findElement(By.linkText("Start a Request")).click();// Consistently i see error here
driver.switchTo().defaultContent();
Set<String> windowids = driver.getWindowHandles();
do {
windowids = driver.getWindowHandles();
Thread.sleep(1000);
} while (!(windowids.size() >= 2));
Iterator<String> iter= windowids.iterator();
windowids = driver.getWindowHandles();
iter= windowids.iterator();
String mainWindowId=iter.next();
String tabbedWindowId=iter.next();
System.out.println(mainWindowId);
System.out.println(tabbedWindowId);
driver.switchTo().window(tabbedWindowId);
driver.manage().window().maximize();
Thread.sleep(1000);
WebDriverWait wt = new WebDriverWait(driver, timeout);
driver.manage().window().maximize();
wt.until(ExpectedConditions.presenceOfElementLocated(By
.cssSelector("input[name='zipCode']")));
driver.findElement(By.cssSelector("input[name='zipCode']")).sendKeys(Keys.TAB);
driver.findElement(By.cssSelector("input[name='zipCode']")).sendKeys(
zip);
driver.findElement(
By.cssSelector("input[value='Submit Project Information']"))
.click();

Thanks!

Krishnan Mahadevan

unread,
Apr 30, 2014, 3:31:26 AM4/30/14
to webdriver
None of what you shared so far answers what Jim is asking for.

A reproducible case involves a simple standalone test which when run can reproduce the problem.

The test can choose to run against a publicly available web page, or you could create a simple webpage that can be used to reproduce the problem and have your test load that page using the file:// protocol in your standalone test.



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.

testingzeal

unread,
May 5, 2014, 3:52:47 PM5/5/14
to webd...@googlegroups.com
Okay. I have created simple html pages and on executing script on those pages reproduces the issue.
Attached are the files.
++++++++++++++++++++

Erromsg.png - is the pop up that freezes IE 11 browser.
Simple.zip - has page1.html and page2.html
IE.log - IEdriverserver log file
testscriptfiles.zip - actual test scripts that hits page1 and page2 .html files

++++++++++++++++++++++++++++++++

Error I got is - IE command line server has stopped working pop up.

Test scenario is - Page 1.html has a link called "Click Me" , Clicking that link opens the page2.html in another tab in IE11.0 and that's when that pop up appears.


While executing one script at a time, i can't see this pop -up. So i have created 2 classes which does the same and executing those tests with maven command as a group will trigger this error pop -up.

web driver 2.39.0 , 2.39.0 / 32 bit IEdriverserver.exe ,Windows 7 ,IE 11

Please help me in resolving the issue. 

Let me know if you need anything else.
Errormsg.png
simple.zip
IE.log
testscriptfiles.zip

Jim Evans

unread,
May 5, 2014, 4:56:51 PM5/5/14
to webd...@googlegroups.com
Three followup questions.

1. Are you attempting to run these tests in parallel?

2. You failed to provide the code for getDriverByBrowserType(). It's unclear whether you're attempting to create new instances of IE, or using an existing one, and without the code for that method, it's impossible to tell what might happen. Do you see how that might be significant?

3. You're using 'file://' URLs in your example. It is a known limitation that the IE driver has challenges with 'file://' URLs due to the security restrictions IE places on JavaScript running on pages opened with them. What happens when you use these same files actually hosted by a web server and accessed via an http:// URL?

testingzeal

unread,
May 5, 2014, 5:43:10 PM5/5/14
to webd...@googlegroups.com
Jim ,

1. Not Parallel, Sequentially - Here in my nodeConfig of IE 

   {
          "browserName": "internet explorer",
           "version" :"xx",
          "maxInstances": 1,
          "seleniumProtocol": "WebDriver"
        }

2.Sorry about that. Attached the code.txt 
3.I am really not sure how to host the files on webserver. Infact my test scenario is clicking on a link opens new tab and throwing the pop-up.

Thanks!
code.txt

testingzeal

unread,
May 7, 2014, 2:44:26 PM5/7/14
to webd...@googlegroups.com
Jim- Did you get a chance to look into this issue?
Thanks!

Jim Evans

unread,
May 7, 2014, 8:06:57 PM5/7/14
to webd...@googlegroups.com
I know the root cause of the issue. It is already being tracked in the Selenium issue tracker as issue 7210[1]. I have noted the current status there.

--Jim

[1] https://code.google.com/p/selenium/issues/detail?id=7021#c10

Jim Evans

unread,
May 8, 2014, 1:47:29 PM5/8/14
to webd...@googlegroups.com
You can now try 2.41.0.1 of IEDriverServer.exe[1], which should contain a fix for this issue. There is a slight hiccup, which is that you may see the driver hesitate for a few seconds during the click which opens the new window. It's waiting for an instance of iexplore.exe to gracefully exit before proceeding. You should certainly no longer see the crash.

--Jim

[1] Can be downloaded at http://selenium.googlecode.com/git/cpp/prebuilt/Win32/Release/

testingzeal

unread,
May 9, 2014, 8:10:46 AM5/9/14
to webd...@googlegroups.com
Much Thanks,Jim.

testingzeal

unread,
May 9, 2014, 8:12:11 AM5/9/14
to webd...@googlegroups.com
I have webdriver 2.39.0, Can i use 2.41 for IEDriverServer.exe?
or Do i have to upgrade webdriver also?

Krishnan Mahadevan

unread,
May 9, 2014, 8:38:25 AM5/9/14
to webdriver
No. You dont need to.

The whole point of de-coupling the server component from the selenium libraries was to ensure that they work independently. So you dont need to bump up your selenium libraries and can still use 2.41. version of IEDriverServer

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/


--

testingzeal

unread,
May 9, 2014, 12:11:41 PM5/9/14
to webd...@googlegroups.com
Jim- While downloading the .exe from the location using chrome I get this error " Failed-Server problem". Can you please a take a look?

Thanks!


On Thursday, May 8, 2014 11:47:29 AM UTC-6, Jim Evans wrote:

Krishnan Mahadevan

unread,
May 9, 2014, 12:21:29 PM5/9/14
to webd...@googlegroups.com
Try using https and see if that helps. 

~ Krishnan

iSent. iPhone. iReget.iTypos!
--

testingzeal

unread,
May 9, 2014, 12:57:39 PM5/9/14
to webd...@googlegroups.com
No luck Krishnan, actually i could get to the page and save the link and while it is downloading i get this error on "Show all downloads" bar as "Failed-Server problem"

Thanks!

Jim Evans

unread,
May 9, 2014, 9:07:20 PM5/9/14
to webd...@googlegroups.com
I really have no insight into the hosting of Git and downloading binaries from Google Code. I'm sorry I can't be of more assistance. You may just have to wait until the generally available 2.42.0. And before you ask, no, I do not have a timeline for such a release.

testingzeal

unread,
May 9, 2014, 9:17:25 PM5/9/14
to webd...@googlegroups.com
Thanks Jim, Is it possible to share it in google drive? 
I can give my gmail id.

testingzeal

unread,
Jun 2, 2014, 7:24:05 PM6/2/14
to webd...@googlegroups.com
Jim,

I have downloaded 2.42 IEDriverserver.exe and started the node and executed the tests with visible browser. 


But seeing 2 issues. 

1.Still some times i am seeing the "Internet explorer has stopped working" , but better than earlier.(frequency of this error has reduced from previous version)
2. I am not able to execute tests headless thru Jenkins,as it throwing this error.

Please help. Let me know if i am missing out on anything.



org.openqa.selenium.WebDriverException: Error communicating with the remote browser. It may have died.
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15'

testingzeal

unread,
Jun 2, 2014, 7:50:27 PM6/2/14
to webd...@googlegroups.com
Jim,

I have downloaded 2.42 IEDriverserver.exe and started the node and executed the tests successfully with visible browser. 


But having 2 issues. 

1.Still some times i am seeing the "Internet explorer has stopped working" , but better than earlier.(frequency of this error has reduced from previous version)
2. I am not able to execute tests headless thru Jenkins,as it throwing this error.

Please help. Let me know if i am missing out on anything. Attached is the IEdriver.log

FYI - I am running one test at a time serially.



org.openqa.selenium.WebDriverException: Error communicating with the remote browser. It may have died.
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15'


IEdriver_log.txt

testingzeal

unread,
Jun 28, 2014, 1:26:29 PM6/28/14
to webd...@googlegroups.com
I opened an issue with webdriver explaining the issue but haven't seen any update.
Jim or others - Could you please help me on this issue?

Thanks!

Jim Evans

unread,
Jun 29, 2014, 9:31:46 AM6/29/14
to webd...@googlegroups.com
What issue did you open? Does that issue report contain a page (or a link to a publicly accessible URL) that reproduces the issue? If the answer to that last question is, "No," then my answer to your question is, "No, neither I nor anyone else is likely to be able to help you with your issue."

Here's the thing: the HTML DOM is a very complex thing. The same WebDriver code can produce vastly different results for differently structures pages, so the log alone, while helpful, is insufficient for accurate diagnosis. And there are nearly infinite edge cases, so it's frankly unrealistic to expect the WebDriver team to be able to a priori anticipate them all. So a test page is absolutely critical to resolving any issue of this type.

Note that so-called "intermittent" test failures can often be reproduced by running a test case in a loop for, say, 100 times. If you are unwilling to provide a test page[1], there's very little that can be done to resolve the issue.

--Jim

[1] Yes, I used the word "unwilling" on purpose. Those who claim to be "unable" to provide a test page usually invoke one of the Evans Bogus Reasons for not doing so. See http://jimevansmusic.blogspot.com/2012/12/not-providing-html-page-is-bogus.html if this attitude seems excessively strident to you.

testingzeal

unread,
Aug 1, 2014, 1:46:03 PM8/1/14
to webd...@googlegroups.com
Jim,

With 2.42 IEDriverServer.exe , IE11 still hangs on switching between windows and focus in not on child browser and thus tests are failing.Attached is the IEDriverlog.txt.

Using webdriver 2.39.0
Windows 7 and IE 11 browser.

Attached files above in the thread are still valid and will reproduce the issue.

Please let me know if you have any more questions!
Thanks for the help!
IEDriverlog.txt
Reply all
Reply to author
Forward
0 new messages