Xpath is widely used in Selenium for web automation testing. We all have gone through challenges to find perfect XPath for that web element yet due to time constrain or ease to get and XPath via default browser finder or some chrome plugin makes leads to a very poor XPath selection for web element identification.
Well, nobody is perfect! Even if you have selected a poor XPath, we can always go back and refactor our web element’s XPath and find a better alternative for it. Below are the mistakes I have seen on various test frameworks. If we fix these mistakes it will lead to better clarity of the test scenario and less maintenance for the regression suite.
Xpath is widely used in Selenium for web automation testing. We all have gone through challenges to find perfect XPath for that web element yet due to time constrain or ease to get and XPath via default browser finder or some chrome plugin makes leads to a very poor XPath selection for web element identification.
Well, nobody is perfect! Even if you have selected a poor XPath, we can always go back and refactor our web element’s XPath and find a better alternative for it. Below are the mistakes I have seen on various test frameworks. If we fix these mistakes it will lead to better clarity of the test scenario and less maintenance for the regression suite.&nbs […]