Cross platform browser automation for mobile devices