vendredi 1 novembre 2019

How to pass caret sign (^) to the selenium web driver send_keys() method

I am doing automated tests with python and selenim web driver and need to login to website using complex password.

I need to pass any special charecters including caret sign (^) to the send_keys method but it doesn't work.

For example I try to supply the following password to the method: 45pEq8wfIj^K

The send_keys method will send following: 45pEq8wfIjK (the caret sign is ommited)

I have tried to put the caret sign into curly braces and supply it to the method like {^} but the result were empty curly braces {}




Aucun commentaire:

Enregistrer un commentaire