-2

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

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

Could anyone please help.

Rakhi
  • 1
  • 2
    Please publish your code. – Ali Hesari Dec 07 '17 at 06:54
  • 1
    Possible duplicate of [Send keys not working selenium webdriver python](https://stackoverflow.com/questions/46770697/send-keys-not-working-selenium-webdriver-python) – undetected Selenium Dec 07 '17 at 07:05
  • Possible duplicate of [How to use Send() to pass a string like "password#99@TT"?](https://stackoverflow.com/questions/52622171/how-to-use-send-to-pass-a-string-like-password99tt) – user4157124 Aug 10 '19 at 21:13

1 Answers1

1

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

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

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

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

Murthi
  • 5,299
  • 1
  • 10
  • 15