With the rapid development of the cooperative vehicle infrastructure system, eco‐approach and departure has been attracting increasing attention for mitigating the impact of signalized intersections, which helps improve the energy efficiency of equipped vehicles. However, existing studies have rarely considered the balance of electric bus energy consumption and traveling time. Meanwhile, the joint effect of bus stops and signalized intersections, and their interactions were not discussed widely with connected and automated electric buses (CAEBs). In this study, an integrated CAEB trajectory planning methodology with the balance of traveling time and energy consumption is proposed. A bi‐level programming model is developed to obtain the optimal trajectories of CAEBs. Numerical experiments are conducted to analyse and compare the model with two baseline models. The results demonstrate the optimal performance of the derived scheme in terms of bus energy consumption, with approximately 30–50% energy savings. Furthermore, model sensitivity analysis is conducted to quantify the impacts of the related system parameters. The findings also reveal that the entry time, conversion coefficient, and final speed have significant impacts on electric bus energy consumption along signalized arterials with bus stops.