Hello,
In several instances, I have needed to enter DateTime.Now.ToString() into a textbox, so I would initially record step to "enter text 'alan' into txtComment" and then customize that step in code. I use to have success in this, but within the past few months, I have not. I have even tried converting the step without modifying anything and I receive the same error. Below is what I have tried so far. We are using version 2012.2.1420.
As stated above, when simply converting the step to code, the test fails:
I know this is very simple to do, so I must be overlooking something.
Thanks,
Alan
In several instances, I have needed to enter DateTime.Now.ToString() into a textbox, so I would initially record step to "enter text 'alan' into txtComment" and then customize that step in code. I use to have success in this, but within the past few months, I have not. I have even tried converting the step without modifying anything and I receive the same error. Below is what I have tried so far. We are using version 2012.2.1420.
Pages...txtComment.Value = DateTime.Now.ToString();
Actions.SetText(Pages...txtComment, DateTime.Now.ToString());
As stated above, when simply converting the step to code, the test fails:
Actions.SetText(Pages...txtComment, "alan");
I know this is very simple to do, so I must be overlooking something.
Thanks,
Alan