The id of COMPOSE button of Gmail is dynamic. So when it is clicked different xpath is recorded by Selenium IDE as follows:
//div[@id=':lw']/div/div , //div[@id=':as']/div/div
What can be the alternative ways of using the id or xpath?
The following is the HTML for COMPOSE button:
<div class="aic" id=":as"><div class="z0"><div tabindex="0" role="button" class="T-I J-J5Ji L3 T-I-KE" style="-moz-user-select: none;" gh="cm">COMPOSE</div></div></div>
Use below code for COMPOSE in Gmail