Shinryuu Posted August 25, 2012 Posted August 25, 2012 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 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. Quote
IshaanRodrigues Posted August 29, 2012 Posted August 29, 2012 (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 August 29, 2012 by IshaanRodrigues Quote
Shinryuu Posted August 29, 2012 Author Posted August 29, 2012 They changed it then, the old source had <input type="button" class="input-button" etc etc. But yay, I'll mod my script now. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.