[fix]: rm legacy `handlePossibleNavigation()`
Merged
SE
9mo ago+5+5+0123456789-35-35-01234567890123456789
why
- this function was from legacy stagehand which only operated on one page
- presently, it was only being used to produce a log which:
- at best, misinformed users on whether the page had actually navigated, and,
- at worst, resulted in a noisy error log
- the error log would happen if
clickElement()triggered page closure. this means that the frame.evaluate() to get the URL would attempt.evaluate()on a frame that no longer existed
what changed
- removed
handlePossibleNavigation()
test plan
- existing tests are fine here
Summary by cubic
Removed the legacy handlePossibleNavigation() that tried to detect navigation by URL and produced misleading logs. This also prevents errors when clicks close the page and evaluate runs on a non-existent frame, reducing log noise.