brew install gauge
npm install -g taiko
to start writing taico script open a terminal and type:
taiko
openBrowser()
goto("google.com")
write("taiko test automation")
click("Google Search")
with .code you can get the taiko js code
Commands:
.code taikoscript.js --> creates a js file with the code
.api --> shows all taiko commands
.api goto --> explanation of the command
.exit --> closes Taiko
Run taiko without gauge
taiko taikoscript.js --observe --> runs with browser headfull mode
taiko taikoscript.js --> runs headless
Examples in taiko:
write("something", into(textBox({placeholder: "Username"})))
click(checkBox(near("Username")))
click($("#button_id")) // Using CSS selector
click($("//input[@name='button_name']")) // XPath selector
gauge init js