Wait for a specific text to appear in an element using a custom ExpectedCondition
Preconditions (2)
Step 1: Locate the element with id 'status-message'
Step 2: Wait up to 10 seconds for the element's text to become exactly 'Completed'
Step 3: Verify that the element's text is 'Completed'
✅ Expected Result: The wait completes successfully when the element's text is 'Completed', and the assertion confirms the text matches