More refactoring selenium actions to do_selenium_action function. (WIP + WORKING)