Rasukarusan / shellnium

:dizzy: Selenium Webdriver for Bash (or Zsh).
https://shellnium-site.vercel.app
MIT License
173 stars 21 forks source link

Unable to send special characters like @ or [ ~ ] with send_keys() #15

Closed eomcb closed 1 year ago

eomcb commented 2 years ago

core.sh

send_keys() { local elementId=$1 local value=$2 $POST -d "{\"value\": [\"${value}\"]}" ${BASE_URL}/element/${elementId}/value >/dev/null }

I am unable to send special characters like @ with send_keys: send_keys $element "foo@bar.com"

Any Idea how to solve this? Thank you in advance

eomcb commented 2 years ago

Tested it with the demo and there it is also not possible to send e.g. a @-symbol.

jakre1234 commented 2 years ago

Man, it's not an issue. Try escaping the special characters with a back slash. It will resolve.

Rasukarusan commented 1 year ago

@jakre1234 thanks comments!