Refactored RobotiumWeb.js and now also check value of element if innerText is empty