无法使用robotframework选择下拉元素。没有为刚才提到的元素提供ID,xpath,css或值。
单击菜单按钮后,我需要选择webtrack用户选项,这是下拉菜单中的最后一个选项,但是当检查元素时,没有id / xpath / css / value来标识路径。我尝试过:
Click Element id=ctl00_ctl00_HeaderContentPlaceHolder_MainMenuCell
Click Element Xpath://a[@type='Webtrack User']
<div class="rmSlide" style="visibility: visible; height: 463px; width: 232px; display: block; overflow: visible; left: 0px; top: 26px; z-index: 2;">
<ul class="rmVertical rmGroup rmLevel1" style="display: block; top: 0px; left: 0px; visibility: visible; transition: none 0s ease 0s;">
<li class="rmItem rmLast" style="z-index: 1;">
<a class="rmLink OtherTile rmExpanded" href="#" style="width: 231px;">
<img alt="" src="images/user-30px.png" class="rmLeftImage">
<span class="rmText rmExpandRight">Webtrack User »</span>
</a>
需要从下拉菜单中选择元素webtrack用户。