Execute JavaScript to change page title and verify
Preconditions (2)
Step 1: Open the browser and navigate to https://example.com
Step 2: Use JavaScript to change the page title to 'New Title'
Step 3: Retrieve the page title using WebDriver
Step 4: Verify that the page title is 'New Title'
✅ Expected Result: The page title changes to 'New Title' and the verification passes