Updated selenium screenshot capture rule