Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Method. GetAlertText, AcceptAlert, DismissAccept #30

Open
ghost opened this issue Oct 7, 2021 · 0 comments
Open

Add Method. GetAlertText, AcceptAlert, DismissAccept #30

ghost opened this issue Oct 7, 2021 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 7, 2021

TinySeleniumVBA WebDriver.cls

' ==========================================================================
' Alert operations
' ==========================================================================

' Get Alert Text                '2021/6/20 add ishi
Public Function GetAlertText(Optional ByVal sessionId As String = vbNullString) As String
    Dim Data    As New Dictionary
    If sessionId <> vbNullString Then
        Data.Add "sessionId", sessionId
    End If

    GetAlertText = Execute(CMD_W3C_GET_ALERT_TEXT, Data)
End Function

' Accept Alert                  '2021/6/20 add ishi
Public Function AcceptAlert(Optional ByVal sessionId As String = vbNullString)
    Dim Data    As New Dictionary
    If sessionId <> vbNullString Then
        Data.Add "sessionId", sessionId
    End If

    Execute CMD_W3C_ACCEPT_ALERT, Data
End Function

' Dismiss Accept                '2021/6/20 add ishi
Public Function DismissAccept(Optional ByVal sessionId As String = vbNullString)
    Dim Data    As New Dictionary
    If sessionId <> vbNullString Then
        Data.Add "sessionId", sessionId
    End If

    Execute CMD_W3C_DISMISS_ALERT, Data
End Function
@ghost ghost changed the title Method. GetAlertText, AcceptAlert, DismissAccept Add Method. GetAlertText, AcceptAlert, DismissAccept Oct 23, 2021
@uezo uezo added the DOM label Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant