Cannot Login with Excel VBA Selenium

Cannot Login with Excel VBA Selenium

It is not visible because it is inside a form.

Login

You need to access via form:

Option Explicit
Public Sub EnterInfo()
    Dim d As WebDriver
    Set d = New ChromeDriver
    Const URL = https://teespring.com/login
    With d
        .Start Chrome
        .get URL
        With .FindElementByClass(js-email-login-form)
            .FindElementByCss(input[name=email]).SendKeys myEmail
            .FindElementByCss(input[name=password]).SendKeys myPassWord
            .FindElementByCss(input[type=submit]).Click
        End With
        Stop <==  Delete me after inspection
        .Quit
    End With
End Sub

Cannot Login with Excel VBA Selenium

Leave a Reply

Your email address will not be published. Required fields are marked *