Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
228 views
in Technique[技术] by (71.8m points)

excel - Not able to select element by ID or Name in IE automation

I am try to automate the webpage in my company but I am not able to hit "add" button, not by ID or even not by Name.

Below is HTML CODE . This webpage even opens link with keyboard shortcuts like ctrl+0 is used for add option button.

<div>
   <div class="btnCtrlNew">
     <table align="center" width="100%" cellpadding="0" cellspacing="0" border="0">
       <div id="cmdBtn_pnlMaster">
         <tr>
           <td width="100%" align="center">
             <input type="submit" name="cmdBtn$btnAdd" value="Add" id="cmdBtn_btnAdd" accesskey="A" title="Press Alt + A Key to Click Add" class="btnCtrl" />
             <input type="submit" name="cmdBtn$btnDelete" value="Delete" id="cmdBtn_btnDelete" accesskey="D" disabled="disabled" title="Press Alt + D Key to Click Delete" class="btnCtrl" onClick="return window.confirm(&#39;Confirm : Delete ?&#39;);" />
             <input type="submit" name="cmdBtn$btnSave" value="Save" id="cmdBtn_btnSave" accesskey="S" disabled="disabled" title="Press Alt + S Key to Click Save" class="btnCtrl" />
             <input type="submit" name="cmdBtn$btnSearch" value="Search" id="cmdBtn_btnSearch" accesskey="R" title="Press Alt + R Key to Click Search" class="btnCtrl" />
             <input type="submit" name="cmdBtn$btnCancel" value="Cancel" id="cmdBtn_btnCancel" accesskey="C" title="Press Alt + C Key to Click Cancel" class="btnCtrl" />
             <input type="submit" name="cmdBtn$btnExit" value="Exit" id="cmdBtn_btnExit" accesskey="X" title="Press Alt + X Key to Click Exit" class="btnCtrl" />
             <input type="submit" name="cmdBtn$btnPrint" value="Asset Additional Info." id="cmdBtn_btnPrint" accesskey="P" title="Press Alt + P Key to Click Print" class="btnCtrl" style="width:150px;" />
           </td>
         </tr>
       </div>
     </table>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...