[英]Is it possible to execute a function that is written from the javascript of a website with nightmare? Or any other way?
You know when you visit a page in a website and view the source code, sometimes you see an element execute a javascript function? 您知道当您访问网站上的页面并查看源代码时,有时会看到某个元素执行javascript函数吗? For example:
例如:
<button type="button" id="chocolate" onclick="EditShipment()">Click me</button>
Can I use nightmare to visit this page and execute EditShipment() ? 我可以使用噩梦来访问此页面并执行EditShipment()吗? And if so, is it possible to pass in our own arguments to that function's argument?
如果是这样,是否有可能将我们自己的参数传递给该函数的参数?
使用控制台并键入无需单击按钮即可执行的函数名称
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.