Selenium IDE 2.9.1: [error] Unexpected Exception

966 views
Skip to first unread message

Kenneth Johnson

unread,
Jan 27, 2017, 11:23:37 AM1/27/17
to Selenium Users
I have successfully used the Selenium IDE with Mozilla Firefox for Windows for about four years to perform simple tests of a small corporate website after software upgrades. My procedure has been to apply the upgrades to my test environment, then run a Selenium test suite. If it passes, repeat both steps for the live site. Most of the tests are 'Open a page, verify limited content'; a few require very limited input from the operator.

This week it happened that some software upgrades dropped shortly after a successful run of the tests against the live site. I applied the upgrades to the test environment, and ran the test suite. There were several unexpected errors. I tried running the test suite against the live site (no changes since last pass), and that failed too.

My current Firefox is 51.0 (32-bit). It seems quite possible that version has changed since the last successful run of the tests against the live site. In the past, this process has kept working through many Firefox updates.

Here's the error text:

"[error] Unexpected Exception: Error: cross-process JS call failed"

For background, here's the simplest test case I have found that reproduces this error:

Start Firefox with one tab open the the Mozilla Firefox Start Page.

Select Selenium IDE from the Tools Menu.

Open the script shown below.

Run the script.

I request advice from Selenium users more advanced/experienced than I. If there is a known easy fix, point me at it. If not, I request pointers for how I might use other parts of the Selenium toolkit (which I have not previously explored) to get a similar job done. I am competent in Python if that helps.

Thanks,

Ken

====
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="https://www.google.com/" />
<title>Google Search</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Google Search</td></tr>
</thead><tbody>
<!-- Simple test case-->
<tr>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>prompt(&quot;Enter your search term&quot;)</td>
<td>searchTerm</td>
</tr>
<tr>
<td>type</td>
<td>name=q</td>
<td>${searchTerm}</td>
</tr>
</tbody></table>
</body>
</html>

Kenneth Johnson

unread,
Jan 27, 2017, 4:45:41 PM1/27/17
to Selenium Users
Whoops.  My browser hung the first time I submitted this, and I missed seeing it before I resubmitted.  Sorry.

Matt Dragon

unread,
Jan 28, 2017, 10:49:54 AM1/28/17
to Selenium Users
Just started seeing this too.  Was also on 51.0, upgrading to 51.1 doesn't fix it.  Selenium IDE doesn't seem to have been updated in forever, so it would seem to be a Firefox update that broke it but I have no idea what version I was running previously.  It's basically any form input that blows up with the "cross-process JS call failed."

I guess I'll try downgrading Firefox if such things are even possible.

Matt

Matt Dragon

unread,
Jan 28, 2017, 10:49:54 AM1/28/17
to Selenium Users
51.0.1 upgrade doesn't fix it.  But downgrading to 50.1.0 gets all my tests working again.

Older download was available here: https://ftp.mozilla.org/pub/firefox/releases/50.0.1/

Don't forget to set Firefox to not auto-update after installing a downlevel version.


On Friday, January 27, 2017 at 11:23:37 AM UTC-5, Kenneth Johnson wrote:

Kenneth Johnson

unread,
Jan 30, 2017, 4:09:26 PM1/30/17
to Selenium Users

Installing the Selenium IDE Flow Control addon fixed my problem.  (Suggested on the other copy of this thread.)

Daniel Yan

unread,
Jan 30, 2017, 9:39:21 PM1/30/17
to Selenium Users
Firefox is constantly releasing upgrades, and it seems that last one (26/01/2017) is messing with Selenium functionalities...

I will follow Matt advice to downgrade FF version to 50.0.1 with auto-update disabled.

Romulus Barabas

unread,
Feb 26, 2017, 9:55:59 PM2/26/17
to Selenium Users
I tried installing Flow Control for Selenium IDE and FireFox 51.0.1 but didn't work for me.

I confirm that downgrading to Firefox 50.0.2 fixed this issue. Also disabled automatic updates.

Jo-Anne Brandes

unread,
May 9, 2017, 12:37:52 PM5/9/17
to Selenium Users
I am getting this same error and have tried downgrading to Firefox 50.0.1 with updates disabled and have installed the Selenium IDE: Flow Control add-on and neither have helped.  Research seems to point to both of these being the fix though I am having no luck.  Does anyone have any other ideas?

Thanks

Matt Dragon

unread,
May 9, 2017, 1:14:46 PM5/9/17
to seleniu...@googlegroups.com
Sorry, I don't have any further advice other than I'm on 53.0 with Flow Control installed and it's working for me.  I seem to remember there might have been a few other issues that had a similar error?  Does every existing test you have not work and they stopped working seemingly randomly?  If it's more isolated than that, then it might be a different issue.

Matt


Matt Dragon | Senior Software Engineer 
CHARITY NAVIGATOR | Your Guide to Intelligent Giving 
201.818.1288 x 100 | www.CHARITYNAVIGATOR.org |   

--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/4Jz6hIjjxNk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b6a9b9b8-4252-49b8-912c-259825ad79c8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages