Hi,
I am working in an accountant firm so my programming skills are yet to be developed.
We are trying to create a web automation using IE.
However, there are several items (buttons and textboxes), which are under several tabs:
One of the buttons have the same ID, and when pressing the button - we are moving to the next tab, however, when pressing again on the button - nothing is happening (maybe since the focus is on the first tab):
the button on the first tab:
the button on the second tab:
We tried to use the following code, with no success:
We would appreciate your help with this issue, since this is the only thing that preventing us from operating our new project.
Thank you in advance,
David
I am working in an accountant firm so my programming skills are yet to be developed.
We are trying to create a web automation using IE.
However, there are several items (buttons and textboxes), which are under several tabs:
HTML:
</table> <div id="page-wrap"> <div id="tabs" style="display: none;"> <br /> <ul style="z-index: 1; left: 19px; top: 20px; /*position: absolute;*/ height: 33px; width: 1053px" id="TabNames"> <li><a href="#fragment-1" style="width: 205px;"> Assignment Information </a> </li> <li><a href="#fragment-2" style="width: 205px;"> Country Information </a> </li> <li><a href="#fragment-3" style="width: 205px;"> Compensation</a> </li> <li><a href="#fragment-4" style="width: 205px;">Overrides</a></li>
the button on the first tab:
HTML:
<button tabindex="16" class="next-tab mover" id="btnSaveAndContinue" *******="return SendForm();" rel="2" onclientclick="needToConfirm=false;">Save & Continue »</button>
the button on the second tab:
HTML:
<button tabindex="16" class="next-tab mover" id="btnSaveAndContinue" *******="return SendForm();" rel="3" onclientclick="needToConfirm=false;">Save & Continue »</button>
We tried to use the following code, with no success:
HTML:
Dim finalout As VariantDim dd As HTMLObjectElement
Set dd = ie.Document.getElementById("fragment-2")
dd.getElementsByClassName("next-tab mover")(1).Click
We would appreciate your help with this issue, since this is the only thing that preventing us from operating our new project.
Thank you in advance,
David
Last edited: