Thank you for contacting us with additional details on the faced troubles.
As far as I understand you would like to take screenshots at certain moments of the test execution, however you are facing troubles with that. There are few suggestions on the topic I can share with you - and although some of these may not be applicable to cover the current requirements, please take a look at these below:
Visual capturing of the browser state
- as I noticed you used a coded approach to take screenshots, you may find this useful.
Browser and Desktop capture in a test list execution
- the test list settings allow you to take screenshots for certain steps, which properties
you have modified accordingly.
Recording the test list run
- recently we implemented a feature, which allows you to record a video of the test list execution.
As I am not familiar about all requirements you might have, I hope any of the propositions above will suit your needs. However, if this is not the case, I will need further details for the test you have troubles with. So, please, take some time to share your input on the below notes:
- does the test, you have troubles with, contain both recorded and coded steps?
- or this is possibly a unit test?
- which is the Test Studio version you currently have in use?
- can you please elaborate more on the scenario you need to cover?
- is the popup with Ok button an expected dialog?
- is there a step to handle that one?
- it seems the test fails - what is the reason for failure?
- can you please share the step failure details or execution log for further investigation?
- if you can share a sample test against a public accessible application, I can try to reproduce the same misbehavior on my end.
I hope the provided options will be suitable for you. However, in case you need additional assistance, please do not hesitate to get back to me.