Completed
Last Updated: 26 Sep 2014 12:10 by ADMIN
ADMIN
Konstantin Petkov
Created on: 25 Aug 2014 10:39
Type: Bug Report
0
SetText step in HTML converted to code fails due to missing clear text action
A customer reports the following problem:
- Record standard SetText action against a input field requiring date to enter
- Checks SimulateRealTyping - the step executes just fine typing the text as defined
- Convert the steps to code and execute it
Expect: Types the text as the non-coded one
Actual: Clicks and doesn't type anything

This is due to a difference between recorded and coded step - the latter missing to clear the text prior to typing.

Work-around: add the action as a first line in the code, for example
this.ActiveBrowser.Actions.SetText(Pages.Zorgverzekering2014.GeboorteDatumText, "");

Test to reproduce will be attached internally.
1 comment
ADMIN
Iliyan Panchev
Posted on: 26 Sep 2014 12:10
The fix will be included in the upcoming internal and major Test Studio releases. You need to re-record the steps and convert them again or just add this line at the beginning of the step: Actions.SetText(Pages.Zorgverzekering2014.BirthdateText, "");