larryjfoster
New Member
- Joined
- Jul 19, 2017
- Messages
- 20
So it looks like the below code requires a mouse event to fire activity. Is it possible to replace a .click function with something that would function as an .onmouseup function
The below code does not return any errors though it does not do the 'FireEvent' either...
HTML:
<span class="timeClockButtonContainer">
<span data-dojo-type="dijit/_Widget" data-dojo-attach-point="ShiftStartBtn" data-dojo-attach-event="onMouseUp: _onShiftStartMouseUp " data-dojo-props="className: at('rel:', 'shiftStartDisabled').direction(at.from).transform(transformers.ShiftStartClass)" id="dijit__Widget_19" lang="en-us" widgetid="dijit__Widget_19" class="timeClockButton ShiftStartNormal ">
</span>
<span data-dojo-type="Framework/UI/mvc/Output" data-dojo-props="value: localize('lblESSShiftStartButton'), className: at('rel:', 'shiftStartDisabled').direction(at.from).transform(transformers.ButtonClass)" class="ClockButtonTextEnabled" id="Output_39" lang="en-us" widgetid="Output_39">In</span>
</span>
The below code does not return any errors though it does not do the 'FireEvent' either...
VBA Code:
Dim colNodes As Object
Dim objNode As Object
Dim strTarget As String
strTarget = "ShiftStartBtn"
'Click Clock In Button
Set colNodes = IE.document.getElementsByClassName("timeClockButtonContainer")
For Each objNode In colNodes
If objNode.getAttribute("data-dojo-attach-point") = strTarget Then Exit For
Next
If Not objNode Is Nothing Then
Debug.Print objNode.innerText
objNode.FireEvent "onmouseup"
End If
Last edited: