This is a migrated thread and some comments may be shown as answers.

Arguments in Generic Dialog

8 Answers 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prachi
Top achievements
Rank 1
Prachi asked on 18 Feb 2011, 01:58 PM
Hello,

I am using a generic dialog to identify a message box.
I provided all required details like:
Dialog Title
MatchPartial Title checkbox
ChildWindow text content
Button Partial text
Button id
Handle time out

But when i convert it into C# code,
 the ButtonPartialText and ButtonId arguments are nowhere in that code.
Those two informations must be there.

Thanks,
Prachi

8 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 21 Feb 2011, 03:44 PM
Hi Prachi,
   are you sure it's "Generic" dialog you're referring to (screenshot 1)? This dialog cannot be turned to code (screenshot 2). Could you please clarify?

All the best,
Stoich
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Prachi
Top achievements
Rank 1
answered on 22 Feb 2011, 06:21 AM
Hello,

Yes i am using Generic dialog and we can see its code if we use convert all steps into code option see image1 fot that.
and image2 is its code transaltion.
0
Cody
Telerik team
answered on 22 Feb 2011, 09:41 PM
Hi Prachi,

Looks like we have a code generation bug. Thanks for pointing this out to us!

Try this constructor instead:

GenericDialog genericDialog = new GenericDialog(ActiveBrowser, "dialog title here", true, "button text here", "");

All the best,
Cody
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Chery
Top achievements
Rank 1
answered on 27 Nov 2013, 09:18 AM
Hi,

I am facing an issue with a generic dialog, not able to do actions on it from my code, please find my code below, this is a unit test code generated using Test Studio. When I run the recorded test (*.tstest) from VS plugin, the code works.

GenericDialog RowDelete = new GenericDialog(ActiveApplication, "Delete", true, "");

RowDelete.ButtonText =

"Cancel";

Manager.Current.DialogMonitor.AddDialog(RowDelete);

Console.WriteLine("Delete dialog text : " + RowDelete.ButtonText);

RowDelete.WaitUntilHandled(5000);

/*****************************************/
I am getting following error,
/*****************************************/

System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
Result StackTrace: 
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
   at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
   at

 

Kindly help me thanks in advance.

Regards
Chery Jose

 

 

 

 

 

0
Velin Koychev
Telerik team
answered on 29 Nov 2013, 02:59 PM
Hi Chery,

I am sorry to hear that  you are experiencing this issue.

The code that you should use should look similar to this code sample:

GenericDialog RowDelete = new GenericDialog(ActiveApplication, "Delete", true,"");
Manager.Current.DialogMonitor.AddDialog(RowDelete);
Manager.Current.DialogMonitor.Start();
 
//you need add here some code to get to the dialog
 
RowDelete.WaitUntilHandled(5000);
Manager.Current.DialogMonitor.Stop();

If this doesn't help you, is there a way you can provide us with a copy of your test and if it is possible grant us access to your application so we can reproduce the issue on our end and give you a solution. 
If you decide to do so you can open  a support ticket instead of forum thread where all the information provided remains confidential.

Hope to hear from you soon.

Regards,
Velin Koychev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Nagmani
Top achievements
Rank 1
answered on 26 Aug 2016, 04:45 PM

Hi Telerik Team,

Almost from week, I am trying to select a cert from auto populated Win32 Generic Dialog Box and supply PIN after proper cert selection but no luck yet.

When I run Record function in Chrome browser, It records process but does not add steps of Cert selection and PIN Supply. During Run recorded steps Page navigates to browser and stops at Cert selection page. I had to click certs manualy and move forward with manual steps. I did try to Add step using Step Builder Dialog Element with Alert, Confirme , Prompt and Generic Steps but it does not pick the cert or do any thing. Can you help me with proper solution please?

When I record and run in IE Broser it records and run but in case if I will have to select another cert, It does not provide option to select next cert either by Index or text.

Your help would be highly appreciated.

 

Regards;

Nagmani

 

0
Nagmani
Top achievements
Rank 1
answered on 26 Aug 2016, 04:48 PM
Sorry I forgot to attach screenshots. I hope these screenshots would be able to help you to find solutions.
0
Elena
Telerik team
answered on 31 Aug 2016, 10:51 AM
Hello Nagmani,

Please note that the thread you pointed to is related to quite older version of Test Studio. However I reviewed the details and screenshots you provided. Obviously there is difference in what IE and Chrome detects while handling the certificate dialog. Since the issue appears while recording I will certainly need to be able to reproduce that behavior on my side to continue the investigation. Would it be possible to provide access to your application along with your test? 

If the above request could not be accomplished there is one more opportunity and this is to provide us a Fiddler trace of the problem page. We have about a 75% success rate using a Fiddler trace to simulate your web server and reproduce problems. To capture the trace please follow these steps:

1 Start Fiddler - note no browser should be open
2 Click Clear Cache
3 If your site uses HTTPS click Decrypt HTTPS traffic
4 Start Capture
5 Launch a browser
6 Navigate to the problem page and pop up.
7 Stop Capture
8 Save Capture
9 Put the .SAZ file into a .zip file and attach that to this support ticket

Looking forward to hearing from you! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Prachi
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Prachi
Top achievements
Rank 1
Cody
Telerik team
Chery
Top achievements
Rank 1
Velin Koychev
Telerik team
Nagmani
Top achievements
Rank 1
Elena
Telerik team
Share this question
or