2016-10-13 50 views
1

我無法在BMC項目中自動執行下拉菜單功能。嘗試了很多選擇。這會幫助我很多。請幫助..如何使用Webdriver在BMC項目中執行下拉菜單

<div id="WIN_0_913111809" class="df arfid913111809 ardbnCustomer Char" arid="913111809" artype="Char" ardbn="Customer" arlbox="0,4,114,17" style="z-index:993;top:2px; left:12px; width:309px; height:21px;" arwindowid="0"> 
 
<label id="label913111809" class="label f9" for="x-arid_WIN_0_913111809" style="top: 4px; left: 0px; width: 114px; height: 17px;">Customer*</label> 
 
<textarea id="arid_WIN_0_913111809" class="text sr " cols="20" maxlen="255" style="top:0px; left:119px; width:164px; height:21px;" armenu="COM:CPY:Company=Oper/Cust-Q_ForInteractionCust" mstyle="2" arautoc="2" arautocak="0" arautoctt="400" rows="1" title="" wrap="off"></textarea> 
 
<a class="btn btn3d menu" href="javascript:" style="top:0px; left:288px; width:21px; height:21px;"> 
 
<img class="btnimg" src="../../../../resources/images/mt_sprites.gif" alt="Menu for Customer*" title=""> 
 
</a> 
 
</div>​

<div class="MenuTableContainer" style="top: 20px;"> 
 
<table class="MenuTable" style="width: 386px;" cellspacing="0" cellpadding="0"> 
 
<tbody class="MenuTableBody"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<td class="MenuEntryNameHover" nowrap="">AARADHANA</td> 
 
<td class="MenuEntryNoSubHover" arvalue="AARADHANA"></td> 
 
</tr> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
<tr class="MenuTableRow"> 
 
</tbody> 
 
</table>

My screen looks like

+0

錯誤coing在我的代碼 - 元素應該已經「選擇」,但是「textarea」 –

+0

您可以粘貼代碼?如果您使用'SelectByIndex'或'SelectByText'方法,錯誤是顯而易見的,因爲您提供的HTML中沒有'