Jump to content

Recommended Posts

Posted

So I have an odd request, if djbob doesn't mind I'd like him or whoever manages the cPanel login page to give the login button a name or id, preferrably id. I made an automation script in Ruby that opens IE, moves to the cPanel login page, and submits it with the proper info. Problem is it fills the user and pass inputs but doesn't click the button because the getElementByClass method isn't supported, I tried, and so in attempting to run this line:

 

button = doc.getElementByClass("input-button")

 

the script crashes. The reasons for the script are: a) I can :D b ) I don't like typing passwords, I get paranoid in public and c) it's easier to remember passwords when they are in programs heh.

Posted (edited)

Hi,

 

This is the code for the login button:

 

 

<button id="login_submit" tabindex="3" type="submit" name="login">

 

 

So you should use getElementByID() method where id is "login_submit"

 

Check out whether this solves your purpose.

 

Note Admins:

 

I'm generally sharing the solution I have no intention of disclosing any code of yours in public.

Edited by IshaanRodrigues
Posted

They changed it then, the old source had <input type="button" class="input-button" etc etc. But yay, I'll mod my script now.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...