Overview
This is our first script in TagUI!
Sample Code
//my first TagUI script!
https://google.com
enter //input[@id="lst-ib"] as google weather singapore[enter]
read //span[@id="wob_tm"] to temperature
echo "Current temperature in Singapore = " + temperature
Explanation
Line 1: | The // denotes comments in TagUI. |
---|---|
Line 2: | go to URL: https://google.com |
Line 3: | enter "google weather singapore" into the Google search field.
//input[@id="lst-ib"] |
Line 4: | read the current temperature into the variable temperature.
//span[@id="wob_tm"] |
Line 5: | Output the temperature to the command window using the echo command.
|
Where to go from here?
- TagUI Commands - List of TagUI Commands with explanations, examples and sample codes
- TagUI - Sikuli Commands - List of TagUI - Sikuli Commands with explanations, examples and sample codes
- TagUI Tips & Techniques - Many TagUI tips and techniques with explanations and sample codes
TagUI Tutorials
- TagUI tutorial 1 - goodreads.com
- TagUI tutorial 2 - bookdepository.com
Comments (0)