mercredi 2 décembre 2015

How to test a drop down select that has a variable in it?

I have a drop down select, most of them look like:

id="person_job_name"

This one has an artifact in it and I am not sure how to have the rails test find the drop down correctly, when I inspect the element on this page it looks like this:

id="person_people_job_attributes_12039485_class_id

the number changes each time.

Aucun commentaire:

Enregistrer un commentaire