Allow turning on screenshots for failures or selenium errors individually

Remvoe unused require

Pause while taking screenshot