I'm show ya guys how to do three basic stuff.
1. Fill a form
2. Accept terms
2. Click submit button
Lets take this paidoffers website as an example http://www.paidoffers.co.uk/
See that signup button? lets click it using javascript, but before that make sure you've inspect element on! Right click anywhere, inspect element! for chrome you ask? figure it out yourself... please?
Alright next step:
We gonna select documenet then select that button, but to select the button we need its ID! go over the button, inspect element and see if you can see its ID.
See easy stuff! now lets select that,
document.getElementById("signup_button").click();
Oh shit! it actually clicked the button! thats right! Now we're here at the buttom and we need to fill that, hard? no way!
Now against same thing.. we need to get the IDs so we can fill it! .value method represents the value insite it.
document.getElementById("fullname").value="jones michael";
document.getElementById("email").value="jonesmichael@gmail.com";
document.getElementById("newPassword").value="123456789";
document.getElementById("newPasswordRepeat").value="123456789";
Alright that's getting too repetitive! lets move on. We need to check that checkbox too don't we? right to check the box we'll need to change the check property. To change checked property we target the element like usual, the target it's property .checked and set it to true? pretty damn simple huh?
document.getElementById("tos").checked = true;
Lastly we find the signup button ID and hit it!
document.getElementById("signup_button_b").click();Alright guys! we're done make sure to share this tutorial if you liked it!
language????
ReplyDeleteThis comment has been removed by the author.
Delete