xebia/Xebium — Issue #25: Using storeEval with javascript causes error on Windows
Author: cwortel
Created: 2011-11-22 14:04:55+00:00
State: open

When I use getEval with javastript I do not get the expected output and a unclear error in my logging.

Here's a small example of a random test causing the error (be aware the javascript might be invalid):
| script | selenium driver fixture |
| start browser | firefox | on url | http://www.bol.com/ |
| ensure | do | open | on | /nl/index.html |
| ensure | do | click | on | id=searchfor |
| ensure | do | type | on | id=searchfor | with | Agile Testing |
| ensure | do | clickAndWait | on | id=java_search_button_small |
| ensure | do | clickAndWait | on | link=Agile Testing |
| $descriptiontext= | is | getText | on | css=div.product_description > p |
| $filteredoutput= | is | getEval | on | regexp:/widespread.*\.exec('$descriptiontext')[1] |
| stop browser |

The logfile states the following error:
21734 [Thread-3] INFO com.xebia.incubator.xebium.SeleniumDriverFixture - Storing result from | getEval | regexp:/widespread.*\.exec('Testing is a key component of agile development. The widespread adoption of agile methods has brought the need for effective testing into the limelight, and agile projects have transformed the role of testers. Much of a tester's function, however, remains largely misunderstood. What is the true role of a tester? Do agile teams actually need members with QA backgrounds? What does it really mean to be an "agile tester?"')[1] |
21796 [Thread-3] ERROR com.xebia.incubator.xebium.SeleniumDriverFixture - Execution of command failed: null (WARNING: The server did not provide any stacktrace information); duration or timeout: 16 milliseconds
Build info: version: '2.7.0', revision: '13926', time: '2011-09-23 15:09:51'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1 build 2600 Service Pack 3', java.version: '1.6.0'
Driver info: driver.version: RemoteWebDriver
23265 [Thread-3] INFO com.xebia.incubator.xebium.SeleniumDriverFixture - Command processor stopped