Get help with testing, discuss unit testing strategies etc.


Post by nuridesengin »

Hello. I've posted a question on stackoverflow with ExtJS tag but actually it's all about Siesta testing but couldn't have a convincing answer. Here is the link for question. https://stackoverflow.com/questions/477 ... ndex-value

I've used Siesta recorder for a robust query:
#main-home #contentPanel #formData combobox[name=...combo] boundlist => :textEquals(The Item Name)
And try to have a similar query for combobox item's root/indexed number value. But with Siesta Recorder just got textEquals syntax. Is there anyway to choose combobox items with root or indexed numerical value?

Post by nickolay »

Hi,

Siesta Recorder will always prefer "textEquals" over numeric index, since that is usually more stable query, so you'll need to manually update the query. To use numeric index you can try "nth-child" selector, something like:

combobox[name=...combo] boundlist => .some-listview div:nth-child(10)

https://developer.mozilla.org/en-US/doc ... Anth-child

Post by nuridesengin »

OK. Then I'll keep try to achieve this query and inform on here again.
Thanks a lot.

Post Reply