Viji123
8 years agoOccasional Contributor
Issue in SetText() method
I wrote python script for a simple test scenario. Have to enter username and password in the edit box. I used the below code
username.SetText("admin")
password.Keys("abcdef")
save_button.Click()
When i run this , it enters the username, password and when it comes to click the save button the username got wiped off . Dont know how or why.
In the same example if i use username.Keys("admin") , the script works fine. Can anyone let me know why the SetText() is behaving differently in this scenario