invicti. auth
Contains form authentication helper methods.
Methods
applyOtp(otpopt)
Tries to find an OTP form and fill the specified password.
Parameters:
Name Type Attributes Description
otp
string <optional> The OTP token to fill.
click(el, delayopt)
Simulates a click for the specified el.
Parameters:
Name Type Attributes Description
el
string |
HTMLElement
The element to click.
delay
number <optional> The number of milliseconds (thousandths of a second) that
the click should be delayed by. Note that all delays are
timed from the beginning of the script execution and does
not work in sequence if you have several function calls with
delay.
Example
// Click element by id
invicti.auth.click('LoginButton');
// Click element by id after 2 seconds
invicti.auth.click('LoginButton', 2000);
// Click element by DOM element reference
invicti.auth.click(document.getElementsByTagName('BUTTON')[0]);