evalJavaScript throws com.thoughtworks.selenium.SeleniumException

Bug #627479 reported by Oliver Raileanu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TestPlan
Fix Committed
High
edA-qa

Bug Description

Call of evalJavaScript 345.5; in a test unit shows the followng error:

####20100831174152:13:684aa38de33144398ceddde4a6cf2260:16886931:CMDDONE ( true )
####20100831174152:14:684aa38de33144398ceddde4a6cf2260:16886931:CMDINIT ( [getString, getEval, function evalAndEncode() { result = window.eval('345.5;');resultType = typeof result;return resultType + ':' + result;} evalAndEncode();] )
####20100831174152:15:684aa38de33144398ceddde4a6cf2260:16886931:CMDERROR ( [getString, getEval, function evalAndEncode() { result = window.eval('345.5;');resultType = typeof result;return resultType + ':' + result;} evalAndEncode();], com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: function eval must be called directly, and not by way of a function of another name,

Related branches

Revision history for this message
Removed by request (removed303009) wrote : Re: [Bug 627479] [NEW] evalJavaScript throws com.thoughtworks.selenium.SeleniumException

eda qa can do the fix from home, he s familiar with the problem.

Sent from my iPhone

On Aug 31, 2010, at 17:47, Oliver Raileanu <email address hidden> wrote:

> Public bug reported:
>
> Call of evalJavaScript 345.5; in a test unit shows the followng error:
>
> ####20100831174152:13:684aa38de33144398ceddde4a6cf2260:16886931:CMDDONE ( true )
> ####20100831174152:14:684aa38de33144398ceddde4a6cf2260:16886931:CMDINIT ( [getString, getEval, function evalAndEncode() { result = window.eval('345.5;');resultType = typeof result;return resultType + ':' + result;} evalAndEncode();] )
> ####20100831174152:15:684aa38de33144398ceddde4a6cf2260:16886931:CMDERROR ( [getString, getEval, function evalAndEncode() { result = window.eval('345.5;');resultType = typeof result;return resultType + ':' + result;} evalAndEncode();], com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: function eval must be called directly, and not by way of a function of another name,
>
> ** Affects: testplan
> Importance: Undecided
> Status: New
>
> --
> evalJavaScript throws com.thoughtworks.selenium.SeleniumException
> https://bugs.launchpad.net/bugs/627479
> You received this bug notification because you are a member of TestPlan
> Team, which is subscribed to TestPlan.

Revision history for this message
edA-qa (eda-qa) wrote :

This error has come back again it seems. To fix problems with Firefox I've upgraded Selenium in the package and will address this error with the newest selenium.

Changed in testplan:
assignee: nobody → edA-qa (eda-qa)
importance: Undecided → High
milestone: none → testplan-1-0-r6
status: New → Triaged
Revision history for this message
edA-qa (eda-qa) wrote :

Fun, it appears that FireFox 3 specifically introduced such a limitation to be "standards compliant".

Revision history for this message
edA-qa (eda-qa) wrote :

Nah, it appears that Selenium is breaking something, all the JavaScript code works correctly when run in the browser itself. Just have to figure out how it is breaking it now.

Revision history for this message
edA-qa (eda-qa) wrote :

Try enough permutations of javascript and eventually it works. There is about a 10% chance this works with MSIE however...

Selenium-server has also been upgraded, main selenium not. This allows it to work with FireFox 3.5+.

Changed in testplan:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.