I have a nightwatch test which requires me to click an element, perform another action and then go back to click on the same element and trigger a cancel action.
For clicking i use a page objects command which receives the html id of the to be clicked element as a parameter. (#idOfElement)
The first click works. The second click (same page objects command) does not.
If i duplicate the command AND enhance the css selector for the element I'm trying to click, it works. (tr#idOfElement)
I have no explanation for this and have been googling this for a week.
Is there possibly a caching issue here? Am i doing something entirely wrong?
Code sample can be added if needed. I'm currently on my phone.
Thx in advance for any help and sry if this is duplicate, i searched but couldn't find any solution.
Aucun commentaire:
Enregistrer un commentaire