ensure driver is in desired context to check for stale elements