I am trying to create a test case for a website that includes a form with three whole selections. The first selection is populated by default when the webpage loads. If any parameter is selected from the first selection, then the second selection is filled through an ajax call. Similarly, when an option is selected on the second selected, the third selection is populated through an ajax call. Finally, when the option is selected in the third selection, the html table is populated with the information I need to check.
Three interconnected choices have this structure.
<select id="s1" name="s1"> <option value="1">Option1</option> <option value="2">Option2</option> <option value="3">Option3</option> </select> <select id="s2" name="s2"></select> <select id="s3" name="s3"></select>
I know for sure that the website uses jQuery to make an ajax call. Does anyone know or know how to create this case with casperJs?
javascript jquery ajax html-select casperjs
Hemerson varela
source share