Hi everyone,
As mentioned in the title,
Can we call a client action by Webbrowser F12 Console ?
Thank you !!
Hello Kiet,
You can achieve this using Javascript on Console tab of developer tools.
For example if you want to click a button so first command to getElementById using Id of button then element.click();
thank you for suggesting, but I wanna know can we call directly the client action by using Javascript on the Console tab :)
Hi Kiet,
You can achieve this find the URL for your reference.
Thanks,
Hitesh
Thank you for the suggestion,
The solution in that topic is calling the $actions but it does not exist in the browser's console developer tools.
umm.. I think It's seem to be impossible to call a client action from browser's console developer tools :)
Thank for all suggestion !!
I am not sure if it is possible or no but as workaround you can add button in your page and assign your client action to on click of this button then call click() using console from developer tool
calling $actions is not available if you don't prepare for it inside your code.
You'd have to have a javascript node in each screen and block, making available the actions, (for example as a global variable on the windows object) It can get real messy with blocks being initialized and destroyed over time (think blocks inside a list, for example).
But for a quick way of debugging / executing parts of the code at will from inside dev tools, it could be an option.
As @Dorine Boudry said, I did want to do some testing but not want to touch the code :D.
But it seems to be impossible to do that. So thank you all for suggesting! :)
Have a nice day!