多年来,我一直是你们的粉丝,希望有人能提供帮助。我一直在研究和解决这个问题已经有将近一年的时间了,但希望在那里有人可以提供帮助!
简而言之,我在网站上有一系列字段,并伴随着按钮。
像这样:
<div tabindex="9" class="gwt-PushButton gwt-PushButton-up" role="button" id="ClientSearchView.clientIdSubmitBtn" aria-pressed="false" style="width: 100px;"><input type="text" tabindex="-1" role="presentation" style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;">
<div class="html-face">Submit</div>
</div>
还有:
<div tabindex="0" class="gwt-PushButton gwt-PushButton-up" role="button" aria-pressed="false" id="BackDateSystemDatePopup.useSysDateBtn" style="width: 190px;"><input type="text" tabindex="-1" role="presentation" style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;">
<div class="html-face">Use Current System Date</div>
</div>
我尝试了使用fire事件方法的所有迭代,并且遍历了每个方法,没有错误,只是什么也没有发生。
我也尝试过object.click,但无济于事。似乎该网站使用aria状态进行验证以禁用事件侦听,如果有人对此有任何帮助或见解,我将深表歉意。