There are certain scenarios in which Test Studio will not record the correct image for an element, or not record an image at all. The known workflows are described in details below.
Test Studio records the image for combobox and textbox incorrectly. The reason behind is that the image of the element gets recorded once the element is modified - text is entered, option is selected from the combobox. Thus, during execution the recorded image will not be available on the page before the step, which uses it, passes.
To workaround this, you will need to record the correct image manually.
Currently the automatic capturing of images on displays with scaling settings different from 100%, will not record the correct element.
To solution will be to record the correct image manually.
When recording a WaitForExists step, by default the recorded element will not contain any image. This is to avoid breaking some already existing user logic.
If it is necessary, the solution will be to add the image manually.
In some occasions Test Studio might record two very similar images for the same element. This is because the images are compared to be binary the same and in some situations, the browser renders the same element slightly different.
In some scenarios the same element can have different image. For example, if we work against a combo box and change its value in two subsequent steps - from 1 to 2, then to 3. So, the step that changes 1 to 2 will have different image compared to the step that changes 2 to 3.
Test Studio allows you to capture manually a new image for an element and then apply it to the steps, which uses that element, separately. To cover the last listed scenario, you can follow these steps:
Open the target element to edit it and switch to the Element Image settings.
Record manually the new image, which will be valid for the second step - the one, which changes the combo box value from 2 to 3 - you can choose any of the three available options (Upload new file, Select from browser, Run to step).
Once the desired image is correctly recorded, in the Image Usage Details section choose the step to apply it to from the "Used By" dropdown and then click on the Apply button.
Save the changes. Switching the steps, which uses the element, from the same "Used By" dropdown, will display the different images accordingly.