write selenium code