TagUI icon indicating copy to clipboard operation
TagUI copied to clipboard

SyntaxError: Expected token ')' - can't replicate the issue pending clarification

Open KennGuo opened this issue 5 months ago • 4 comments

//点击写信 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,代码如下:

Image 我实在找不到问题出在哪,当我把keyboard [ctrl]v删除后就正常了。 但是由于脚本逻辑,keyboard [ctrl]v是必须的,因为它包含excel的表格格式。请帮我看看哪里出了问题

KennGuo avatar Jul 09 '25 09:07 KennGuo