In the web application you are testing, you need to select each option in several dropdown menus. Which of the following is the BEST approach for making your test scripts maintainable?
A.
Assign IDs for each dropdown and each option
B.
Create a function for clicking on a dropdown then clicking on the option
This will make it easier to identify the elements in the test scripts and make them easier to read and understand. Additionally, it will also make it easier to make changes to the test scripts if needed, as the keywords can be easily identified and replaced.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit