Incorrect code is generated when converting "Handle 'Logon' dialog" recorded step into coded step
When converting "Handle 'Logon' dialog" step into coded step, Test Studio generates the following code:
// Wait Until Dialog is Handled.
WaitUntilHandled(5000);
3 comments
ADMIN
Konstantin Petkov
Posted on:03 Sep 2013 10:23
Hi,
Yes. In general the dialog monitor needs to be aware about the dialog to handle. You can see a sample code here:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/advanced-topics/handling-html-popups-and-dialogs/built-in-dialog-handlers/handling-javascript-dialogs.aspx
So the handling of a dialog is about the test as a whole, not just the step.
I don't like changing the feedback item so please feel free to submit a FR about the ability to convert dialog handling steps in code. If more customers need that we will definitely consider it for a future versions of the product. Unfortunately it's not an easy change as we need to find other way in handling dialog to support that, but we also need to ensure the product is backwards compatible and supports whatever it supports right now regarding dialogs (Win, browsers, custom ones).
Thanks!
algot
Posted on:03 Sep 2013 08:48
Do you mean that if I will have test with "Handle dialog" step I won't be to convert it to code?
ADMIN
Konstantin Petkov
Posted on:02 Sep 2013 19:43
Hello,
Converting handle dialog steps into code is not supported. This issue is obsolete now.
Regards!