SyntaxError: Expected token ')' - can't replicate the issue pending clarification
//点击写信 click //*[@id="ext-gen27"]
row = 3 max_row = 500
while row <= max_row
// echo 正在处理第 row 行…
// 获取G列的值
run python get_g_value.py `row` to g_value
wait 2
// 如果G列有值,先在浏览器中输入
if `py_result` != ''
// 定位到收件人框
click //*[@id="ext-gen159"]
type //*[@id="ext-gen159"] as [clear] `py_result`
run python copy_range.py `row`
wait 1
// 定位到正文区域
type //*[@id="ext-gen384"] as [clear]
click //*[@id="ext-gen384"]
keyboard [ctrl]v
wait 100
// 处理下一行
row = row + 4
Hey~上面是我的代码,它总是因为下面的错误而退出 ` D:\MoreApps\tagui\flows\Email>tagui emailUser.tag SyntaxError: Expected token ')'
phantomjs://code/emailUser.tag.js:2113 in injectJs phantomjs://code/bootstrap.js:456 ` 我检查了bootstrap.js:456,代码如下:
这是JS文件报错部分
虽然不知道怎么做,但是可以请教怎么实现鼠标下滑吗?
Hi @KennGuo I tried running below code but it does not give error. Can you also show the whole script other then below code to see what else could be the issue?
row = 1
// 获取G列的值
run python get_g_value.py `row` to g_value
wait 2
// 如果G列有值,先在浏览器中输入
if `py_result` != ''
// 定位到收件人框
click //*[@id="ext-gen159"]
type //*[@id="ext-gen159"] as [clear] `py_result`
run python copy_range.py `row`
wait 1
// 定位到正文区域
type //*[@id="ext-gen384"] as [clear]
click //*[@id="ext-gen384"]
keyboard [ctrl]v
wait 100
// 处理下一行
row = row + 4
For me, it tries to run without the error you have
RPA:src kensoh$ tagui t.tag -n
START - automation started - Thu Sep 11 2025 11:21:17 GMT+0100 (BST)
run python get_g_value.py '+row+' to g_value
wait 2
click //*[@id="ext-gen159"]
My TagUI version
RPA:src kensoh$ ./tagui
tagui v6.46: use following options and this syntax to run - ./tagui flow_filename option(s)
Hi @lemontree888 I think you can use the hover step. Can you share more on your scenario?
https://tagui.readthedocs.io/en/latest/reference.html#hover