separated selenium code