单击Office 365的按钮
问题描述:
我有一个Office 365的按钮,我需要点击,它看起来像这样单击Office 365的按钮
<button class="_ho2_2 _ho2_4 ms-fwt-r ms-fcl-ns ms-bcl-nl o365button" aria-expanded="false" aria-haspopup="true" aria-label="user menu with submenu" type="button" autoid="_ho2_0">
<div tabindex="-1" class="_ho2_5">
<div class="_pe_12 _pe_e2">
<span class="_pe_g owaimg presenceJellyBeanBase presenceJellyBeanSmallBase presenceJellyBeanUnknownSmall _pe_i2 _pe_d2"></span>
</div>
<span class="_pe_h">
<div class="ms-Icon--person ms-icon-font-size-50 ms-icon-modifier-doughboy ms-bgc-nt ms-fcl-w-b ms-icon-modifier-personDoughboy ie _pe_b2">
<div>
<img class="_pe_e _pe_b2" style="top: 0px; width: 50px; display: inline;" aria-label="Contact photo" src="service.svc/s/GetPersonaPhoto?email=test1%40messageware.com&UA=0&size=HR96x96&sc=1487086023815">
</div>
</div>
</span>
</div>
</button>
文字“子菜单中的用户菜单”是唯一的相同字符串与Html中的其他按钮不同。
单击按钮的最佳方法是什么?见截屏: