add optional filename support to seleniumHelper