Kantu for Chrome is Selenium IDE Light plus additional features, open-source

Record and replay web macros with this free and open-source Chrome extension for web browser automation. The extension is an easy to use web macro recorder for web developers, web testers and especially for general web automation and form filling.

Download: Kantu Selenium IDE (Link goes to Chrome Web Store)

Firefox Selenium IDE users, please note: The current version of Kantu's Selenium IDE supports the most commonly used "Selenese" commands of the Firefox IDE, but by far not all. That is why we call it a Selenium IDE Light. The main focus of our extension is ease of use, good recording and reliable playback, and that is why we are adding new commands only step by step. The currently available Selenium IDE commands should cover most use cases, but if you miss a command that you need for your work, please let us know so that we can add it.

Screencast: Recording and Replay

This short screencast demos how to automate form filling on our online ocr website with Kantu. We record the macro, insert a PAUSE (3 seconds) command manually and then replay the macro twice.

Kantu for Chrome plus Selenium IDE Light. Automate Chrome easily.

Screenshot: Kantu for Chrome in action.

Please send feedback, suggestions and questions to team AT a9t9.com.

Kantu for Chrome is powered by Selenium IDE compatible commands

The open-source Kantu Webextension supports all important Selenium IDE commands. You find them in this list along with some examples and "how to use" comments.

If your favorite Firefox Selenium IDE command is still missing, please let us know. Also please report bugs to us and send us your new feature suggestions.

Kantu Example Macro

This macro runs in the original Selenium IDE for Firefox and unchanged in Kantu for Chrome, our alternative Selenium IDE for Chrome.

ocr.space chinese ocr
open /
type id=imageUrl http://dl.a9t9.com/ocrbenchmark/chs.png
select id=ocrLanguage label=ChineseSimplified
click link=Start OCR!
click //*[@id="sucOrErrMessage"]/strong
click id=btnShowOverlay

Import test cases from the Firefox Selenium IDE

In Kantu, select the (gear icon) and then "Import HTML". The HTML format is compatible to the classic Firefox Selenium IDE. And "Export HTML" allows you to save test cases in a format that can be read by the Firefox Selenium IDE.

Other useful functions

Loop button

The dropdown next to the Play button contains the loop feature - run macros as a loop. Looping a macro is useful for doing basic load testing with the Selenium IDE, for performance monitoring or to simply test the stability for the test case (macro) itself. The LOOP button is also used with csvRead to read a CSV file line by line.

Kantu for Chrome looping...

Read and write CSV files

Comma-separated values (CSV) files are useful as data input for for data-driven testing/automation or as data output for web scraping. In Kantu for Chrome the csvRead command gives you access the data inside CSV files, and the csvSave command allows you to write test results or extracted values to a CSV file.

CSV Manager: Import (load) and export (save) CSV files from the Kantu extension

The CSV manager tab (shown in the screenshot) allows you to import, export, view and delete CSV files to the local storage of the extension. So the CSV files are not directly accessed from the hard drive, but they are stored inside the web browser. The reason for this is that modern browser extension have no access to your hard drive. Just like with the macros, all CSV files are stored locally inside your browser (technically called local storage), nothing is uploaded to any kind of cloud service.

Test status reporting

The background of each macro indicates its test status: White = not yet run, Green = last run was ok and red = last run had an error.

Test status indicator...

Position support in link text locator

With CLICK link=Download@POS=3 you instruct the IDE to use the n-th (here n=3) occurrence of a locator. This is useful, for example, if a have a website with many download links, and you want to click the n-th once. POS is only supported with the the “normal text” locator link=... but not with XPATH and CSS selectors.

Internal variables

Some parameters can be controlled via Internal variables. All internal variables are valid only per macro run and they do not change the global default values. In other words, internal variables overwrite global default values inside the macro they are used.

  • !COL1, !COL2,... (read only) - Values read from CSV file with csvRead
  • !csvLine (read/write) - storing values to this variable appends them to the line used by csvSave. Use store | NULL | !csvLine to overwrite (not append) the current values.
  • !LOOP (read only) – current value of the loop counter (1,2,3… etc). Great for use with @POS=${!LOOP} to cycle through a list of links.
  • !MACRONAME (read) - Name of the macro this command is in
  • !REPLAYSPEED (read/write) - Set the replay speed to FAST (no delay between each step), MEDIUM (short, "human like" delay) or "SLOW" (2 seconds delay)
  • !RUNTIME (read) - Time elapsed since macro start. This value is very useful for performance testing and performance monitoring
  • !TIMEOUT_PAGELOAD (read/write) - How long to wait for page load
  • !TIMEOUT_WAIT (read/write) - Duration of the implicit wait for an element to appear
  • !URL (read only) - contains current browser URL that you see in the address bar. Previously, the storeLocator command was needed for this.

Performance Monitoring/Testing

The !RUNTIME internal variable contains the macro runtime and makes performance testing easy. In the example below we first click on the "Start OCR button " (OCR.space) and store the current run time in a variable. Then Kantu waits for the result (= web element) to appear. Once the element is found and the macro execution continues we measure the time again by reading the current value of !RUNTIME. The difference is the runtime performance of this step. In a next step you can, for example, write the value of "TimeForThisStep" to a CSV file with thecsvSave feature..

click link=Start OCR! Start the process to measure (in this case an OCR conversion)
store ${!RUNTIME} StartTime Store the start time
click //*[@id="sucOrErrMessage"]/strong Wait for the "Completed" message to appear...
store ${!RUNTIME} EndTime Log the current macro runtime
storeEval ${!EndTime}-${!StartTime} TimeforThisStep Calculate the runtime of the "yellow" step,
which is the difference between start and end time.

Setting the right macro replay speed

In (gear icon) > Replay settings you can select the default replay speed. FAST (no delay), MEDIUM (0.3s) and SLOW (2s). With FAST, Kantu CRX replays the macro as fast as it can. This is faster than any human could type, so on some websites that can cause problems, as they have not been tested for such a speed and sometimes Javascript code can not respond quickly enough. Typically MEDIUM is a good compromise between speed and being website-friendly. SLOW can be useful for testing and debugging. You can also change the replay speed for certain parts of a macro only with store | SLOW | !replayspeed.


Tip: Backup your macros

All macros are stored inside your web browser in what is called technically HTML5 local storage. Nothing is copied or moved to the cloud. This also means that once you uninstall the Kantu extension, your macros are gone! Please use the "Export" and "Export All" feature to create backups of your important test cases.


More Example Macros (Test cases)

The Kantu Selenium IDE github page contains the /testmacros folder with plenty of test macros. You can download and import all macros/selenium IDE scripts at once. For this, use the "Gear icon => Import HTML" feature and then select all the macros/scripts that you want to import (we call the test cases often macros - this is the same. We use the word macros as some users use the extension not for web testing, but for web automation. There the word macro and macro recorder is very common.)

Import many macros at once! - and do not forget to BACKUP (export) your macros once in while

For developers

The full source code of Kantu for Chrome is available on GitHub (License: GNU).

Follow a9t9 on Twitter
Contact Us
Download Kantu Freeware
Copyfish for Chrome/Firefox
Selenium IDE for Chrome
Subscribe to the a9t9 automation software newsletter . We'll send you updates on new releases that we're working on.