WebDriverException and UnhandledAlertException while executing the Script

43 views
Skip to first unread message

Raveendar Reddy

unread,
Mar 23, 2015, 2:07:42 PM3/23/15
to webd...@googlegroups.com

Hai All,
I am unable to find solution for the following issues .These issues are causing the failures for remaining cases as the browser is not responding or may be stopped.
Please can anyone sort out this issue.

1——>
org.openqa.selenium.WebDriverException: [JavaScript Error: “e is null” {file: “file:///C:/Users/SVC-DE~1/AppData/Local/Temp/anonymous3082402930519245195webdriver-profile/extensions/fxdr...@googlecode.com/components/command-processor.js” line: 7854}]'[JavaScript Error: “e is null” {file: “file:///C:/Users/SVC-DE~1/AppData/Local/Temp/anonymous3082402930519245195webdriver-profile/extensions/fxdr...@googlecode.com/components/command-processor.js” line: 7854}]’ when calling method: [nsICommandProcessor::execute]
Command duration or timeout: 372.33 seconds

2——>
org.openqa.selenium.UnhandledAlertException: Modal dialog present: A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js:5
Build info: version: ‘2.44.0’, revision: ’76d78cf323ce037c5f92db6c1bba601c2ac43ad8′, time: ‘2014-10-23 13:11:40′

3——->
org.openqa.selenium.WebDriverException: [JavaScript Error: “a.document.getElementsByTagName(…)[0].getButton is not a function” {file: “file:///C:/Users/SVC-DE~1/AppData/Local/Temp/anonymous7123599558312300991webdriver-profile/extensions/fxdr...@googlecode.com/components/command-processor.js” line: 8900}]'[JavaScript Error: “a.document.getElementsByTagName(…)[0].getButton is not a function” {file: “file:///C:/Users/SVC-DE~1/AppData/Local/Temp/anonymous7123599558312300991webdriver-profile/extensions/fxdr...@googlecode.com/components/command-processor.js” line: 8900}]’ when calling method: [nsICommandProcessor::execute]
Command duration or timeout: 353.12 seconds
Build info: version: ‘2.44.0’, revision: ’76d78cf323ce037c5f92db6c1bba601c2ac43ad8′, time: ‘2014-10-23 13:11:40′

Actually my script run for every two hours on server.So I couldn’t able to find what exactly the issue.and even I couldn’t able debug this as the error is not frequent. I am getting these exceptions daily once or twice.
Please help me.

darrell

unread,
Mar 24, 2015, 10:03:24 AM3/24/15
to webd...@googlegroups.com
An UnhandledAlertException occurs when an alert (modal dialog) appears and blocks the execution of your test. I would write an event handler to take a screen capture on exception: http://darrellgrainger.blogspot.com/2011/02/generating-screen-capture-on-exception.html. Then you can look at the screen capture and see what the modal dialog is. Once you know what dialog is appearing you might be able to figure out how to handle it.

For example, I tested one website which popped up a survey 10% of the time. It was configurable so we set it to 0% for test automation or 100% and always assumed it appear.


On Monday, 23 March 2015 13:07:42 UTC-5, Raveendar Reddy wrote:

Hai All,
I am unable to find solution for the following issues .These issues are causing the failures for remaining cases as the browser is not responding or may be stopped.
Please can anyone sort out this issue.

1——>
org.openqa.selenium.WebDriverException: [JavaScript Error: “e is null” {file: “file:///C:/Users/SVC-DE~1/AppData/Local/Temp/anonymous3082402930519245195webdriver-profile/extensions/fxdri...@googlecode.com/components/command-processor.js” line: 7854}]'[JavaScript Error: “e is null” {file: “file:///C:/Users/SVC-DE~1/AppData/Local/Temp/anonymous3082402930519245195webdriver-profile/extensions/fxdri...@googlecode.com/components/command-processor.js” line: 7854}]’ when calling method: [nsICommandProcessor::execute]


Command duration or timeout: 372.33 seconds

2——>
org.openqa.selenium.UnhandledAlertException: Modal dialog present: A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js:5
Build info: version: ‘2.44.0’, revision: ’76d78cf323ce037c5f92db6c1bba601c2ac43ad8′, time: ‘2014-10-23 13:11:40′

3——->
org.openqa.selenium.WebDriverException: [JavaScript Error: “a.document.getElementsByTagName(…)[0].getButton is not a function” {file: “file:///C:/Users/SVC-DE~1/AppData/Local/Temp/anonymous7123599558312300991webdriver-profile/extensions/fxdri...@googlecode.com/components/command-processor.js” line: 8900}]'[JavaScript Error: “a.document.getElementsByTagName(…)[0].getButton is not a function” {file: “file:///C:/Users/SVC-DE~1/AppData/Local/Temp/anonymous7123599558312300991webdriver-profile/extensions/fxdri...@googlecode.com/components/command-processor.js” line: 8900}]’ when calling method: [nsICommandProcessor::execute]


Command duration or timeout: 353.12 seconds
Build info: version: ‘2.44.0’, revision: ’76d78cf323ce037c5f92db6c1bba601c2ac43ad8′, time: ‘2014-10-23 13:11:40′

Reply all
Reply to author
Forward
0 new messages