xebia/Xebium — Issue #32: verifySelectOptions/getSelectOptions function is not working
Author: cwortel
Created: 2012-01-05 16:31:42+00:00
State: open
Labels: bug

When trying to retrieve the select options from a dropdown using verifySelectOptions (getSelectOptions) an error occurs, an incorrect value is retrieved:

INFO com.xebia.incubator.xebium.SeleniumDriverFixture - Command 'getSelectOptions' returned '[Ljava.lang.String;@bf1d3b' => not ok, expected 'Alle artikelen,Nederlandse boeken,Engelse boeken,etc.'

This simple test reproduces the problem, the value stored in the variable makes the problem explicit.

| script | selenium driver fixture |
| start browser | firefox | on url | http://www.bol.com |
| ensure | do | open | on | /nl/index.html |
| $blabla= | is | getSelectOptions | on | product_select |
| ensure | do | verifySelectOptions | on | product_select | with | Alle artikelen,Nederlandse boeken,Engelse boeken,Alle boeken,Muziek,Dvd,Speelgoed,Games,Elektronica,Computer |
| stop browser |