It might be worth weakening this assumption:

    return "code search" in self.browser.title.lower()

In case GitHub changes their page title scheme.