【问题标题】:From autoit script the program is not taking the "#1" value from the password field从 autoit 脚本中,程序没有从密码字段中获取“#1”值
【发布时间】:2018-02-28 21:29:23
【问题描述】:

对于使用 selenium 的 Windows 身份验证,我正在使用下面的 autoit 脚本,但程序没有从

中获取“#1”值
WinWaitActive("Windows Security")

Send("Test\1234")

Send("{TAB}")

Send("testen#1")

Send("{ENTER}")

程序只读取“testen”,而不是读取“#1”... 有人可以为此提出解决方案吗?

【问题讨论】:

    标签: selenium autoit


    【解决方案1】:

    来自Send 文档:

    '#'

    哈希现在发送 Windows 击键;因此,Send("#r") 将发送 Win+r 以启动 Run() 对话框。

    如果您查看备注部分的表格顶部,您可能会看到:

    发送:{#}

    结果:#

    使用{#} 会阻止# 作为Windows 按键发送,而是发送文字字符#

    所以使用:

    Send("testen{#}1")
    

    或者你可以试试 Send() 的原始参数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多