Bird
0
0

A use case test step reads:

medium📝 Debug Q6 of 15
Testing Fundamentals - Functional Testing Techniques
A use case test step reads:
User selects item from dropdown and clicks 'Add'
But the test fails because the dropdown locator is incorrect. What is the best fix?
AUpdate the dropdown locator to match the actual element
BRemove the dropdown step from the test
CIgnore the failure and continue testing
DChange the button label to 'Submit'
Step-by-Step Solution
Solution:
  1. Step 1: Identify cause of failure

    The failure is due to an incorrect locator for the dropdown element.
  2. Step 2: Choose the appropriate fix

    Correcting the locator to match the actual element will fix the test step.
  3. Final Answer:

    Update the dropdown locator to match the actual element -> Option A
  4. Quick Check:

    Fix locator to fix test failure [OK]
Quick Trick: Correct locators fix element not found errors [OK]
Common Mistakes:
  • Removing necessary test steps
  • Ignoring failures without fixing
  • Changing unrelated UI labels

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes