A QA team needs to test a single-page application where the URL doesn't change on navigation. Which Selenium strategy best handles verifying page transitions?
-
A
Check document.title via JavaScript executor after each action
-
B
Use driver.getCurrentUrl() after every click
-
C
Call driver.navigate().back() to confirm history
-
D
Assert on the HTTP response code via WebDriver