I have an excel file with the following data. I read these data and assign them to module variables: url, email, password respectively. Then I use those variables to enter values into a login form. The variables all are read correctly from the excel, BUT I am having issues with line 3 in this data: the "email" variable is empty for line 3, but its empty value is not set to the Login textbox; the code keeps writing to the Email textbox "[email protected]".
Does not matter if I move line 3 of the excel to the bottom or top; it always prints an email to the textbox.
Note that I don't have that issue with line 4 that has an empty password value.
I am suspecting has to do with the dropdown that shows when the program clicks the email textbox, because I see in the dropdown a list of all the emails I have tested with.
Code: Select all
1 url email password
2 http://test.com [email protected] 123456!
3 http://test.com 123456!
4 http://test.com [email protected]
var emailTxt = repo.LoginTest.LoginInput.Email; var passwordTxt = repo.LoginTest.LoginInput.Password; emailTxt.Click(); Delay.Milliseconds(0); emailTxt.PressKeys(uemail); Delay.Milliseconds(0); passwordTxt.Click(); Delay.Milliseconds(0); passwordTxt.PressKeys(upassword); Delay.Milliseconds(0);Any help on how I can fix this? Thanks!!!!!