Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. Auto Login, Auto Select, Auto Click

Auto Login, Auto Select, Auto Click

Scheduled Pinned Locked Moved JavaScript
toolsjavascripthtmlioscom
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Music Remix
    wrote on last edited by
    #1

    I created an automated script using JavaScript. The script I developed performs an automatic login action to a website for my work attendance. I want to add an action to automatically select a presence option from a dropdown menu that contains a ( Pagi, Siang, Malam ) , and to add an action to perform an auto click on the absen masuk button. Here, I have my self-made script and the HTML dashboard after logging in. Below is the script I created for Auto Login:

    const username = "153515182112980001";
    const password = "soetomo1";

    const webView = new WebView();
    await webView.loadURL("https://e-absensi.rsudrsoetomo.jatimprov.go.id/absensi/public/login");

    webView.evaluateJavaScript(`
    document.getElementById("nomorindukpegawai").value = "${username}";
    document.getElementById("LoginForm_password").value = "${password}";
    document.getElementById("login-button").click();
    `);

    webView.present();

    For the HTML script after login, I have included it in the following link: HTML CODE For the username and password in the script above, I have masked them for the sake of my privacy. I created this script using my mobile phone and it runs in the iOS Scriptable app. My goal in creating this automation is to simplify the process of work attendance. Please assist me in resolving this issue. Thank you.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups