Skip to content

Commit

Permalink
run flow in other languages (first, change src/tagui_config.txt)
Browse files Browse the repository at this point in the history
  • Loading branch information
kensoh committed Jun 21, 2018
1 parent f3f3a33 commit a1cf9cf
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ Flow Sample |Purpose
[9_misc](https://github.com/kelaberetiv/TagUI/blob/master/src/samples/9_misc)|shows how to use steps popup, frame, dom, js, { and } block
[a_facedetect](https://github.com/kelaberetiv/TagUI/blob/master/src/samples/a_facedetect)|uses face recognition to detect profile images on webpages
[b_visualoutlook](https://github.com/kelaberetiv/TagUI/issues/113#issuecomment-378194245)|uses visual recognition for desktop MS Outlook email sending
[c_chinese_flow](https://github.com/kelaberetiv/TagUI/blob/master/src/samples/c_chineseflow)|run flow in other languages (first, change src/tagui_config.txt)

# Cheat Sheet
### AUTOMATION WORKFLOW
Expand Down
53 changes: 53 additions & 0 deletions src/samples/c_chineseflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
https://ca.yahoo.com
// same as 1_yahoo example but written in chinese

// to run this, edit tagui/src/tagui_config.txt
// change the following line -
// var tagui_language = 'english';
// to below, to choose input language as chinese
// var tagui_language = 'chinese';

// during automation, the tagui_language variable can
// be changed to show output in different languages
tagui_language = 'chinese'

// try setting output to other languages, full list here
// https://github.com/kelaberetiv/TagUI#native-languages
// tagui_language = 'english'
// tagui_language = 'french'

输入 search-box 为 github
显示 search-box
点击 search-button

等待 6.6

number = 1
如果 number 多过或等于 1
快照 page

echo ''
echo '~ changing output language to english ~'
tagui_language = 'english'

让 n 从 1 到 3
快照 logo

text = 'abcde'
如果 text 包括 'bcd'
快照 page 到 results.png

echo ''
echo '~ changing output language to french ~'
tagui_language = 'french'

https://duckduckgo.com

输入 search_form_input_homepage 为 The search engine that doesn\'t track you.
快照 page 到 duckduckgo.png

echo ''
echo '~ changing output language to japanese ~'
tagui_language = 'japanese'

等待 4.4 秒

0 comments on commit a1cf9cf

Please sign in to comment.