extract selenium management command into a library