search loop of selenium scraping mode improved
removed some newly introduced bugs in http mode