I need a javascript/jquery code that fills an input field (stake) and trigger the proper events : so the "place bet" button will be active and i (or the script) can click on it
The solution should look like: for example a javascript function with a (stake) parameter i can inject into the page and invoke it from my .net (c#) code
c# code:
string injectcode = "i need this code containing the setstake function";
[login to view URL](injectcode);
[login to view URL]("setstake('0.23');");
Then if you execute the code below it should redirect to the login page , because you are not logged in. But this is how it should work, if i am logged in it will sumbit the bet, but now only redirecting, so you do not have to register (login)
[login to view URL]("[login to view URL]("btn primary big upper")[0].click()");
w w w . c l o u d b e t . c o m
open any sport event and click on any odds , it will open a betslip and there will be the stake field and place bet button
I could solve this type of issue (by triggering keydown keyup) on other pages but on this page I can't figure it out
I tried firebug/ 2 library from github (autotype, simulate sequence) , but none of them worked