weber.st.michael
New member
Hi! Our team is struggling with flaky tests in React. Class names are dynamic, and IDs are often missing. I'm thinking of switching back to a heavy XPath in Selenium (https://testomat.io/blog/xpath-in-selenium/) strategy because of its flexibility with axes and text-based locators.
Michael Bodnarchuk from testomat.io mentions that "Choosing the right XPath is crucial for test case stability," especially for dynamic content.
How are you guys handling this? Is XPath still your "Swiss Army Knife" for complex UIs, or have you found a better way to deal with missing IDs? Also, do you use any tools to track which locators break most often?
Looking forward to your experience!
Michael Bodnarchuk from testomat.io mentions that "Choosing the right XPath is crucial for test case stability," especially for dynamic content.
How are you guys handling this? Is XPath still your "Swiss Army Knife" for complex UIs, or have you found a better way to deal with missing IDs? Also, do you use any tools to track which locators break most often?
Looking forward to your experience!