efuller
7 years agoOccasional Contributor
Stop actions from being added to log
Hello Everyone,
I'm creating a script to remove entered text from 6 separate fields and because of the nature of the test, I have to do this at least 5 times.
The script works as intended, but on the final log you see the following:
My question is, is there a way to omit those from being added into the log? It really does make it convoluted after several runs and takes away from the pertinent information the log is going to give. Ideally, I would still have a log entry that would say, "All field values have been reset to null"
Here is the code I'm using:
def ClearAccountRegistrationFields(): Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.FirstName.FirstName_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.LastName.LastName_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.Email.Email_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.ConfirmEmail.ConfirmEmail_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.Password.Password_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.ConfirmPassword.ConfirmPassword_Field.SetText("")