Results 1 to 2 of 2

Thread: How to automate login a website

  1. #1
    Join Date
    Mar 2017

    How to automate login a website

    Im trying to automate login into a website, learning from https://www.mkyong.com/java/how-to-a...-java-example/ but doesnt work.

    Thanks in advance for your time.

    Below is the form from the website:
    <!-- contain main informative part of the site -->
    <div class="popup-box">
    <form action="/Account/Login?ReturnUrl=%2FIWL" class="sign-in-form validate-form" method="post"><input name="__RequestVerificationToken" type="hidden" value="a_8ZN5vSsGqEgzxHucsd08Uu_C75fj_FyLYRViTpaLDcyPhW76nROv4nGdHYDwuOg76EokWPFbqnhODLu9bMiZg8EK1Nw HOWyirOunPUhPo1" /> <fieldset>
    <strong class="title">Sign in</strong>
    <div class="form-row required-row">
    <label for="email">Email</label>
    <input class="required-email" type="text" id="email" name="email" autocomplete="off" />
    <div class="form-row required-row">
    <label for="password">Password</label>
    <input class="required" type="password" id="password" name="password" autocomplete="off" />
    <a class="link-line" href="/Account/ForgotPassword">Forgot your password?</a>
    <div class="form-row">
    <label for="code">Authentication code</label>
    <div class="row">
    <div class="input-holder required-row">
    <input class="required-number" type="text" id="code" name="code" autocomplete="off" />
    <div class="popup-holder">
    <meta class="fake-anchor" id="popup-1">
    <a class="opener-circle" href="#popup-1">?</a>
    <div class="inline-popup">
    <div class="popup-frame">
    Please enter your Google Authenticator generated code. Further help can be found here <a href="/p/loginhelp#googleauthenticator" target="_blank">here</a>
    <a href="#back" class="overlay"></a>
    <div class="btn-row">
    <input type="submit" value="Submit">

  2. #2
    Join Date
    Jan 2017
    It’s difficult to say without actually checking it out but over my head what I can think is the issue maybe with “Cross-Origin Request Blocked”. I would like to suggest you redirect your website with leading “www” using .htaccess in you are using Apache.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center