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. Clear #33

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

Add Method. Clear #33

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

Comments

@ghost
Copy link

ghost commented Oct 23, 2021

Clear value to element.

TinySeleniumVBA WebDriver.cls

' Clear value to element        '2021/7/4 add ishi
Public Sub Clear(ElementId As String, _
                 Optional ByVal sessionId As String = vbNullString)
    Dim Data As New Dictionary
    If sessionId <> vbNullString Then
        Data.Add "sessionId", sessionId
    End If
    Data.Add "id", ElementId
    Data.Add "text", vbNullString
    Data.Add "value", vbNullString
    
    Execute CMD_CLEAR_ELEMENT, Data
End Sub

TinySeleniumVBA WebElement.cls

' Clear value to element            '2021/7/4 add ishi
Public Sub Clear()
    Driver_.Clear ElementId_, SessionId_
End Sub
@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