我正在尝试使用 Chrome 控制台选择页面中的所有按钮并以编程方式单击它们.与我正在玩的页面类似的页面是:http://api.openstack.org/api-ref.html#compute-ext
I'm trying to use the Chrome console to select all the buttons in a page and click them programmatically. A similar page to what I'm playing with is this one: http://api.openstack.org/api-ref.html#compute-ext
我已经尝试执行下面的命令,但它没有达到我想要的效果.
I already tried to execute the command below but it didn't do what I wanted.
$("btn small info").click()
这可能吗?我应该发出什么命令?
Is this possible at all? What command should I issue?
好吧,您要确保只选择该部分中的按钮,这样您就不会运行搜索.
Well, you want to make sure you only select the buttons in the section so you are not running the search.
$("#body .btn").trigger("click");
这篇关于以编程方式单击 Chrome 控制台中页面上的所有按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
如何通过电子应用程序中的 navigator.geolocation 获取How to getCurrentPosition via navigator.geolocation in Electron app?(如何通过电子应用程序中的 navigator.geolocation 获取当前位置?)
Electron 收据热敏打印机Receipt thermal printer in Electron(Electron 收据热敏打印机)
为什么 Chrome(在 Electron 内部)会突然重定向到 chWhy might Chrome (inside Electron) suddenly redirect to chrome-error://chromewebdata?(为什么 Chrome(在 Electron 内部)会突然重定向到 chrome
electron,browserify之后,fs.existsSync不是函数electron, after browserify, fs.existsSync is not a function(electron,browserify之后,fs.existsSync不是函数)
在电子中加载本地 html 文件的简单方法Easy way to load local html file in electron(在电子中加载本地 html 文件的简单方法)
与 Electron 相比,Chrome 应用程序的优缺点是什么What are the pros and cons of Chrome Apps compared to Electron?(与 Electron 相比,Chrome 应用程序的优缺点是什么?)