Hi,
I have a problem that I want to click a specific button on a webpage but there is different buttons with same name (in view source) but tabindex is different.I want to click a button where tabindex = 7.Any idea to do the specific task.
Here is the button related HTML Code.
Code
<TABLE id="tblFindCust" cellSpacing="0" borderColorDark="buttonface" cellPadding="0" width="100%" height="32px"
borderColorLight="black" border="0" style="BORDER: transparent 2px groove">
<TR valign="middle">
<TD id="FindCustomer1_ToolBar" width="239px" height="24" nowrap="nowrap">
<button class="menubuttoninset" id="btnNumberSearch" style="WIDTH: 23px; HEIGHT: 23px" onclick="TypeSearchClick(window.event.srcElement)" name="btnSearch" type="button" tabIndex="4"><IMG title="By customer phone number"alt="" src="Images/ByPhone.gif"></button>
<button class="Toolbar" id="btnSIMSearch" style="WIDTH: 23px; HEIGHT: 23px" onclick="TypeSearchClick(window.event.srcElement)"name="btnSearch" type="button" tabIndex="5"><IMG title="By SIM-card number" alt="" src="Images/BySim.gif"></button>
<button class="Toolbar" id="btnAccSearch" style="WIDTH: 23px; HEIGHT: 23px" onclick="TypeSearchClick(window.event.srcElement)" name="btnSearch" type="button" tabIndex="6"><IMG title="By personal account number" alt="" src="Images/ByAccountNumber.gif"></button>
<button class="Toolbar" id="btnContractSearch" style="WIDTH: 23px; HEIGHT: 23px" onclick="TypeSearchClick(window.event.srcElement)" name="btnSearch" type="button" tabIndex="7"><IMG title="By contract number" alt="" src="Images/Contract.gif"></button>
<button class="Toolbar" id="btnNameSearch" style="WIDTH: 23px; HEIGHT: 23px" onclick="TypeSearchClick(window.event.srcElement)" name="btnSearch" type="button" tabIndex="8"><IMG title="By customer name" alt="" src="Images/ByName.gif"></button>
<button class="Toolbar" id="btnINNSearch" style="WIDTH: 23px; HEIGHT: 23px" onclick="TypeSearchClick(window.event.srcElement)" name="btnSearch" type="button" tabIndex="9"><IMG title="By INN" alt="" src="Images/ByINN.gif"></button>
<button class="Toolbar" id="btnIMSISearch" style="WIDTH: 23px; HEIGHT: 23px" onclick="TypeSearchClick(window.event.srcElement)" name="btnSearch" type="button" tabIndex="11"><IMG title="By Network Resource Number" alt="" src="Images/ByUniqueNumber.gif"></button><button class="Toolbar" id="btnIdentificationSearch" style="WIDTH: 23px; HEIGHT: 23px" onclick="TypeSearchClick(window.event.srcElement)" name="btnSearch" type="button" tabIndex="11"><IMG title="By identity card ID" alt="" src="Images/ByIdentification.gif"></button><button class="Toolbar" id="btnContactSearch" style="WIDTH: 23px; HEIGHT: 23px" onclick="TypeSearchClick(window.event.srcElement);InitContactData()" name="btnSearch" type="button" tabIndex="14"><IMG title="By contact data" alt="" src="Images/ByContact.gif"></button></TD>
Display More
Thanks in advance for helping me.