Abstracted the runner out of the bin

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>
Fixed issue when test didn't end if no browsers were connected

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>