shellnium icon indicating copy to clipboard operation
shellnium copied to clipboard

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

Open eomcb opened this issue 2 years ago • 2 comments

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 "[email protected]"

Any Idea how to solve this? Thank you in advance

eomcb avatar Feb 17 '22 16:02 eomcb

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

eomcb avatar Feb 18 '22 12:02 eomcb

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

jakre1234 avatar May 15 '22 10:05 jakre1234

@jakre1234 thanks comments!

Rasukarusan avatar Feb 23 '23 09:02 Rasukarusan