The electric vehicle maker’s shares are near record highs as Wall Street focuses on the company’s plans for robots and self-driving cars.