selenium and validation