无法使用autoIT通过密码输入# [英] Not able to pass # in my password using autoIT

查看:233
本文介绍了无法使用autoIT通过密码输入#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用硒的Chrome在Autoit中使用身份验证窗口.我的密码包含特殊字符,但是我的密码中没有输入#.

I am using Autoit for authentication window in chrome using selenium. My Password Contains special character, but # is not getting entered in my Password.

我的密码是"D#e $ r @ 2016"

My password is " D#e$r@2016"

任何人都可以帮忙.

推荐答案

以下代码可能会有所帮助,#在汽车IT中具有特殊含义.因此应使用花括号将其转义.

The following code may helps, # has special meaning in auto IT. so it should be escaped using braces.

方法1:send(" D{#}e$r@2016")

如果您将所有字符都作为原始字符发送,则将标志值设置为1.默认情况下,标志为0.

If you send all characters as raw then set the flag value to 1. By default, the flag is 0.

方法2:send(" D#e$r@2016",1)

这篇关于无法使用autoIT通过密码输入#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆