Form field not found when executing feature file in Behat with Selenium -


i'm running behat feature file try select option in form field

when select "lisa hayes" "settings_custom[counselor][]" 

where "lisa hayes" 1 of values in form name "settings_custom[counselor][]". element details follows:

<select id="settings_customcounselor" name="settings_custom[counselor][]" multiple="multiple" size="4" class="valid"> <option value="" selected="">(does not matter)</option> <option value="685572">lisa hayes</option> <option value="685573">ricky hunter</option> <option value="685574">max sterling</option></select> 

i error when execute feature file on command line

form field id|name|label|value "settings_custom[counselor][]" not found.

my default driver selenium2 (i have selenium-server-standalone-2.32.0.jar server running in background , browser firefox).

note works when change default driver goutte (headless) selenium (web driver).

i tried search forum , googled specifics , did not find helpful information.

let me know if need more information. thanks!

i solved issue.

the problem not syntax on feature. step before statement

when select "lisa hayes" "settings_custom[counselor][]" 

was reason not loading correct page. step definition not find element.

i tried replace statement go directly page form , implemented wait statement ensure elements load

and on "some url" , wait "2000" when select "lisa hayes" "settings_custom[counselor][]" ... 

this works.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -