Now it can also check a specified selector and not only the full page.