I'm currently tackling an assignment in my web applications testing class that involves creating a test script to evaluate the functionality of a search engine and then capturing and displaying the number of search results. The search bar that I'm testing is prominently positioned on Yahoo Finance's website at .
For my positive test script, I selected a search term that typically yields results. However, I encountered a challenge with the xPath generation as it seems to be dynamic. Despite researching a comprehensive tutorial on obtaining the CSS path via Firebug, the code segment I implemented doesn't seem to pass the test.
Could there be a more effective approach to capturing and handling the number of search results? This is a vital aspect of the assignment that needs to be addressed.
Thank you for taking the time to review this. Your assistance is greatly appreciated.
RS