单击Web弹出消息(AHK)上的“是”按钮

时间:2019-08-23 07:22:16

标签: autohotkey

我试图在Web弹出消息上单击“是”按钮,但由于ID或名称不可用而无法执行此操作。有没有按内文点击的方法。

这是OuterHTML文本。

<td class="rwWindowContent" valign="top"><iframe name="confirm1566542118126" src="javascript:'<html></html>';" frameborder="0" style="border: 0px currentColor; border-image: none; width: 100%; height: 100%; display: none;"></iframe><div id="confirm1566542118126_content">
        <div class="rwDialogPopup radconfirm">
            <div class="rwDialogText" id="confirm1566542118126_message">
                Are you sure you would like to update all payment dates created against this Deposit to 8/22/2019?              
            </div>
            <div>
                <a class="rwPopupButton" style="float: right;" onclick="$find('confirm1566542118126').close(false);" href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">Cancel</span></span></a>
                <a class="rwPopupButton" style="float: right;" onclick="$find('confirm1566542118126').close(true);" href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">Yes</span></span></a>
            </div>
        </div>
    </div></td>

0 个答案:

没有答案