是否有从程序上传铬扩展名的API,而不必打开浏览器?
我想要一种更简单的上传更新版本的方法--目前,这个过程很笨拙:
我希望能够为我写一个脚本来完成这个任务,但是我不知道我应该请求什么URL。
发布于 2014-04-07 21:47:20
发布于 2011-11-22 15:35:13
在Chrome中,没有公共API可以务实地更新项目。
发布于 2014-03-16 15:04:19
我刚做了这个。使用Jitbit宏记录器
将编辑url更改为您自己的扩展名,更改浏览器标题以等待,它应该在任何地方运行。
最后一部分是脚本(从开放的changelog.php开始),用于自动地将变更量的最后一行添加到细节中,如果没有定期更新的变更量,则可以忽略这一点。否则,创建一个返回此脚本的小脚本。
OPEN WEBSITE : https://chrome.google.com/webstore/developer/edit/cdfkaloficjmdjbgmckaddgfcghgidei?hl=en&gl=NL
WAIT FOR PROCESS : chrome : appear : 0 : 0
DELAY : 500
IF WINDOW EXISTS : Sign in - Google Accounts - Google Chrome : 0
MESSAGE BOX : Please select google account and sign in
DELAY : 500
WAIT FOR : Chrome Web Store - Google Chrome : appear : 0 : 0
WAIT FOR USER : 0 : 0 : 0 : 0
ENDIF
WAIT FOR : DuckieTV - 'Browser action' mode - Edit Item - Google Chrome : appear : 0 : 0
Keyboard : Tab : KeyPress
DELAY : 20
Keyboard : Tab : KeyPress
DELAY : 20
Keyboard : Tab : KeyPress
DELAY : 20
Keyboard : Tab : KeyPress
DELAY : 20
Keyboard : Space : KeyPress
WAIT FOR : Upload - Developer Dashboard - Google Chrome : appear : 0 : 0
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Space : KeyDown
DELAY : 84
Keyboard : Space : KeyUp
WAIT FOR : Open : appear : 0 : 0
TYPE TEXT : c:\wamp\www\deploy\browseraction-latest.zip
Keyboard : Enter : KeyDown
DELAY : 83
Keyboard : Enter : KeyUp
WAIT FOR : Open : disappear : 0 : 0
Keyboard : Tab : KeyDown
DELAY : 69
Keyboard : Tab : KeyUp
DELAY : 712
Keyboard : Space : KeyDown
DELAY : 100
Keyboard : Space : KeyUp
WAIT FOR : DuckieTV - 'Browser action' mode - Edit Item - Google Chrome : appear : 0 : 0
OPEN WEBSITE : http://localhost/duckietv/changelog.php
WAIT FOR : Changelog : appear : 0 : 0
DELAY : 2000
Keyboard : ControlLeft : KeyDown
Keyboard : A : KeyPress
Keyboard : C : KeyPress
DELAY : 500
Keyboard : F4 : KeyPress
Keyboard : ControlLeft : KeyUp
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : Tab : KeyPress
Keyboard : ControlLeft : KeyDown
Keyboard : F : KeyPress
Keyboard : ControlLeft : KeyUp
TYPE TEXT : Changelog:
Keyboard : Escape : KeyPress
Keyboard : End : KeyPress
Keyboard : Down : KeyPress
Keyboard : Enter : KeyPress
PASTEhttps://stackoverflow.com/questions/8228935
复制相似问题