Good day po, sana matulungan huhu.
Plan: To create a simple helper na mag au-auto top up ng funds sa razer gold. (to save time and effort)
Problem: I was able to change the value of the input na, kaso, walang nangyayari whenever I press (either manually or automatically) the NEXT BUTTON, because yung input.value is somehow parang empty pa, kaya not sya nag wewent through. Kumbaga, sa monitor lang sya nagbago or nag ka-value, pero not really the element itself.
My code:
element(input).value = pin;
element(button).click();
I tried to press random key sa input element (without deleting the initial value), then nag work na yung NEXT BUTTON. Bale, parang need nya ng keydown or keypress sa actual input element. So I added dispatchevent to simulate the keyboard chuchu. Unfortunately, nothing happened.
Edit. Is there any other way paba to change an input element's value? Other than, element.value = something ?
Ps. Hindi po ako sure if ok lang ba na gumawa ng ganitong type of program ha, it's really for personal use lang kasi talaga.
Plan: To create a simple helper na mag au-auto top up ng funds sa razer gold. (to save time and effort)
Problem: I was able to change the value of the input na, kaso, walang nangyayari whenever I press (either manually or automatically) the NEXT BUTTON, because yung input.value is somehow parang empty pa, kaya not sya nag wewent through. Kumbaga, sa monitor lang sya nagbago or nag ka-value, pero not really the element itself.
My code:
element(input).value = pin;
element(button).click();
I tried to press random key sa input element (without deleting the initial value), then nag work na yung NEXT BUTTON. Bale, parang need nya ng keydown or keypress sa actual input element. So I added dispatchevent to simulate the keyboard chuchu. Unfortunately, nothing happened.
Edit. Is there any other way paba to change an input element's value? Other than, element.value = something ?
Ps. Hindi po ako sure if ok lang ba na gumawa ng ganitong type of program ha, it's really for personal use lang kasi talaga.
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.