Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Karate SnippetsNew to Visual Studio Code? Get it now.
Karate Snippets

Karate Snippets

Rico Wilcke

|
1,374 installs
| (0) | Free
Snippets for Karate DSL
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Karate Snippets for VSCode

This extension adds snippets for Karate DSL.
Helps writing tests easy and fast, as there is no intellisense with Karate.

Features

  • Support for most used Karate Core (UI) actions

Demo

Snippets

Prefix Example
kclear→ clear("locator")
kclick→ click("locator")
kdeleteCookie→ deleteCookie("cookieName")
kdriverUrl→ driver "url"
kex1→ Examples Table - 1 Column
kex2→ Examples Table - 2 Column
kex3→ Examples Table - 3 Column
kex4→ Examples Table - 4 Column
kfeature→ Feature, Background and Scenario
kfocus→ focus("locator")
kinput→ input("locator", "string")
kmatchAttribute→ match attribute("locator", "attribute") == "expectedValue"
klog→ * print "variable:" variable
kmatchEnabled→ match enabled("locator") == true
kmatchText→ match text("locator") contains "expectedText"
kmatchValue→ match value("locator") == "expectedValue"
kmatchExists→ match exists("locator") == false
ksetValue→ value("locator", "value")
kscroll→ scroll("locator")
kscrollClick→ scroll("locator").click()
kscrollInput→ scroll("locator").input("text")
kselectLabel→ select("locator", "{}label")
kselectValue→ select("locator", "value")
kselectIndex→ select("locator", index)
kwaitFor→ waitFor("locator")
kwaitForEnabled→ waitForEnabled("locator")
kwaitForUrl→ waitForUrl("url")
kwaitForText→ waitForText("locator", "expectedText")
kwaitForResultCount→ waitForResultCount("locator", amount)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft