Cascading Dropdown Listboxes with Selenium

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-06-07T16:09:21Z Indexed on 2010/06/07 16:12 UTC
Read the original article Hit count: 200

Filed under:

I am having great difficultly testing cascading dropdown boxes with Selenium. I would like to know what the standard approach is for this. I'm a bit unclear as to which commands to use i.e. ClickAndWait, WaitForTextPresent etc. It seems a little bit of a hack to try and get this to work.

Has anyone got selenium to correctly test this out? An example scenario would be to have 3 listboxes which have Car Make, Model and Colour. Each one is populated in turn by the other. Selenium needs to somehow wait for the next listbox to populate before preceeding with the test.

© Stack Overflow or respective owner

Related posts about selenium