Existing selenium tests refactored s that they work with the latest revi...

Please review the code and let me know that whether it needs any further modifications.