selenium: Replace regex matching with includes()