Hi, I find out some buttons xpath might be changed everytime. like this time it is /html/body/div/div/div/nz-modal/div/div/div/div/div/div/div/button. but next time i run the test case, it will become /html/body/div/div/div/nz-modal/div/div/div/div/div/div/div/button, then the button cant be triggered.
Could I locate the element by attribute (e.g. class=“ant-btn ng-star-inserted ant-btn-primary”), or the name shown in frontend? Could is there any step that i could place a ‘click’ on a fixed position on the web, instead of an element? Thank you so much