imacros自动跑代码_如何使用iMacros自动执行重复的Web浏览器任务
imacros自動跑代碼
Computers are supposed to automate repetitive tasks – if you find yourself submitting forms over and over or repeatedly navigating a website by hand, try iMacros. It’s easy-to-use – all you have to do is perform an action once.
計算機應該可以自動執(zhí)行重復的任務(wù)-如果您發(fā)現(xiàn)自己一遍又一遍地提交表單或手動反復瀏覽網(wǎng)站,請嘗試iMacros。 它易于使用-您只需要做一次操作即可。
iMacros is ideal for anyone that does repetitive tasks in their web browser, whether you’re an average user repeatedly submitting tedious forms or a web developer performing regression testing across a complex website.
無論您是重復提交乏味表格的普通用戶,還是在復雜網(wǎng)站上執(zhí)行回歸測試的網(wǎng)絡(luò)開發(fā)人員,iMacros都是在其Web瀏覽器中執(zhí)行重復任務(wù)的任何人的理想選擇。
入門 (Getting Started)
The iMacros extension is available for Mozilla Firefox, Google Chrome, and Internet Explorer.
iMacros擴展可用于Mozilla Firefox , Google Chrome和Internet Explorer 。
After installing it, you’ll find an iMacros icon on your browser toolbar. This icon opens the iMacros sidebar.
安裝后,您會在瀏覽器工具欄上找到一個iMacros圖標。 此圖標將打開iMacros側(cè)欄。
錄制宏 (Recording a Macro)
The Record button allows you to record browser actions. iMacros keeps track of them and can play them back later. You can record practically anything you can do in your browser, from opening tabs to performing actions on websits. iMacros can also be a powerful form filler capable of filling out and submitting forms across multiple web pages.
使用“記錄”按鈕可以記錄瀏覽器操作。 iMacros會跟蹤它們,并在以后播放它們。 從打開選項卡到在網(wǎng)站上執(zhí)行操作,您幾乎可以在瀏覽器中記錄所有操作。 iMacros還可以是功能強大的表單填充器,能夠跨多個網(wǎng)頁填寫和提交表單。
We’ll create a really basic macro to show you how it works. First, we click the Record button.
我們將創(chuàng)建一個非常基本的宏來向您展示其工作原理。 首先,我們單擊“記錄”按鈕。
iMacros starts recording. As we can see, the macro will activate the first tab and load the How-To Geek website, since that’s the website we had open when we started recording.
iMacros開始記錄。 如我們所見,該宏將激活第一個選項卡并加載How-To Geek網(wǎng)站,因為這是我們開始記錄時打開的網(wǎng)站。
Next, we’ll use the search box on the How-To Geek website to perform a search.
接下來,我們將使用How-To Geek網(wǎng)站上的搜索框進行搜索。
iMacros saves our macro after we click Stop. We can click the Play button to play back the macro and iMacros will visit How-To Geek, select the form field, enter our search query, and submit the form. While you can achieve this result simply by bookmarking the search page here on How-To Geek, some websites aren’t as convenient. On websites that force you to submit a form field – or multiple form fields – to reach a destination page, you can use a macro to save time.
單擊“停止”后,iMacros將保存宏。 我們可以單擊“播放”按鈕以播放宏,iMacros將訪問How-To Geek,選擇表單字段,輸入搜索查詢,然后提交表單。 盡管您可以通過在How-To Geek上在此處添加搜索頁面的書簽來簡單地獲得此結(jié)果,但是某些網(wǎng)站并不方便。 在強迫您提交一個或多個表單字段以到達目標頁面的網(wǎng)站上,可以使用宏來節(jié)省時間。
This was an extremely short, basic macro. You can add as many actions as you want to the macro – after submitting the form, it could open several new tabs, navigate to websites, and perform other actions.
這是一個非常簡短的基本宏。 您可以在宏中添加任意數(shù)量的操作-提交表單后,它可以打開多個新標簽頁,導航到網(wǎng)站并執(zhí)行其他操作。
宏書簽 (Macro Bookmarks)
You can even save a macro as a bookmark. After renaming the saved macro with the Rename option, right-click it and select Add to bookmark. You’ll be able to launch your macro from your bookmarks with a single click.
您甚至可以將宏另存為書簽。 用“重命名”選項重命名保存的宏后,右鍵單擊它,然后選擇“添加到書簽”。 只需單擊一下就可以從書簽啟動宏。
Better yet, the macro will synchronize between your computers using your browser’s bookmark sync feature if you select the Make Bookmarklet option.
更好的是,如果選擇“制作書簽”選項,則宏將使用瀏覽器的書簽同步功能在計算機之間同步。
一些技巧 (A Few Tricks)
iMacros offers a few other features you can use while recording a macro. For example, you can save a page to disk or take a screenshot of it using either of the buttons on the Record pane.
iMacros提供了一些其他功能,可在錄制宏時使用。 例如,您可以使用“記錄”窗格上的任一按鈕將頁面保存到磁盤或?qū)ζ溥M行屏幕截圖。
To schedule a macro and have it run automatically, save the macro as a bookmark and install an extension like My Weekly Browsing Schedule for Firefox. , which allows you to automatically launch bookmarks. You can have the macro run automatically – for example, taking a screenshot of a web page every hour.
要安排宏并使其自動運行,請將宏另存為書簽并安裝擴展程序,例如“ Firefox的我的每周瀏覽日程表”。 ,它使您可以自動啟動書簽。 您可以讓宏自動運行-例如,每小時獲取一個網(wǎng)頁截圖。
You can schedule other actions, too – for example, press Record and send an email in Gmail to create an email-sending macro. Combine the macro with a scheduling add-on and you’ll be able to schedule and automatically send emails.
您也可以安排其他操作-例如,按記錄并在Gmail中發(fā)送電子郵件以創(chuàng)建電子郵件發(fā)送宏。 將宏與計劃加載項結(jié)合使用,您將能夠計劃并自動發(fā)送電子郵件。
演示版 (Demos)
You can run one of the included demo macros to get a feel for iMacros. Just select a macro and click the Play button. For example, the Demo-Open6Tabs macro opens six different browser tabs and loads a web page in each of them.
您可以運行其中包含的演示宏之一來體驗iMacros。 只需選擇一個宏,然后單擊“播放”按鈕即可。 例如,Demo-Open6Tabs宏將打開六個不同的瀏覽器選項卡,并在每個選項卡中加載一個網(wǎng)頁。
If you want to see how a macro works, you can right-click it and select Edit Macro to view its source. While you can write and edit macros by hand, you don’t have to – the Record button will do the tedious macro-writing for you.
如果要查看宏的工作方式,可以右鍵單擊它,然后選擇“編輯宏”以查看其源。 雖然您可以手動編寫和編輯宏,但不必這樣做-“記錄”按鈕將為您完成繁瑣的宏編寫。
iMacros offers a lot of flexibility – anything you can do in your browser, you can automate. Do you use iMacros for anything clever? Leave a comment and let us know.
iMacros提供了很大的靈活性-您可以在瀏覽器中執(zhí)行的任何操作都可以自動化。 您將iMacros用于任何聰明的東西嗎? 發(fā)表評論,讓我們知道。
翻譯自: https://www.howtogeek.com/113789/how-to-automate-repetitive-web-browser-tasks-with-imacros/
imacros自動跑代碼
總結(jié)
以上是生活随笔為你收集整理的imacros自动跑代码_如何使用iMacros自动执行重复的Web浏览器任务的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VUE调用pc端摄像头
- 下一篇: 网上订房系统的设计实现