For example, if the user has a gift card, we want to assert that gift card section comes first:
<section id="gift-card-section"> ... </section>
<section id="credit-card-section"> ... </section>
Otherwise, we want to assert that the credit card section comes first. How can this be done in Magellan / Nightwatch?
My thinking is just to get the N
in the N-th child
... and assert that N1
< N2
or the other way around. How is this done in Magellan / Nightwatch?