?
Solved

Auto login on web page

Posted on 2013-11-22
1
Medium Priority
?
233 Views
Last Modified: 2013-11-23
How could I auto login to:

http://snapfish.co.uk

Normally I would do this:

    Webbrowser2_ready_or_not = "False"
    WebBrowser2.Navigate ("http://snapfish.co.uk")
    Do Until Webbrowser2_ready_or_not = "True"
        DoEvents
    Loop
    txt1 = WebBrowser2.Document.body.innerHTML
    checker = InStr(1, txt1, "Log In")
    If checker > 0 Then
        Webbrowser2_ready_or_not = "False"
        WebBrowser2.Document.All.Item("sqat_logIn_Link").Click
        Do Until Webbrowser2_ready_or_not = "True"
            DoEvents
        Loop
        WebBrowser2.Document.All.Item("emailaddress").Value = "myusername"
        WebBrowser2.Document.All.Item("password").Value = "mypassword"
        Webbrowser2_ready_or_not = "False"
        WebBrowser2.Document.All.Item("loginsubmit").Click
        Do Until Webbrowser2_ready_or_not = "True"
            DoEvents
        Loop
    Else
    End If

    Exit Sub

Open in new window


But it is not working in this case.  I think it's a java thing.
0
Comment
Question by:hrolsons
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 39669767
Yes, their login window is now put up with javascript.  The form variables in your code do not exist on that page.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question