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

Telerik Testing Framework - Handling modal html popup windows with a caption

3 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jean-Paul
Top achievements
Rank 1
Jean-Paul asked on 23 Dec 2014, 08:44 PM
Hi,

My query is relating to the Telerik Testing Framework. I have been looking into a scenario where I have a SharePoint 2010 form with modal html popups. The forms are SharePoint workflow generated forms and do not include any caption tag.

In the case where we have a modal html popup without a caption tag present, what is the recommend approach for locating and handling under the Telerik Testing Framework?

 

3 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 25 Dec 2014, 09:10 AM
Hello Jean-Paul,

Here is an article on how to handle modal popup window with a caption which is the title of this ticket.

Regarding handling modal window without a caption you can simply use press Enter key after the modal popup appears. I am providing you the code for pressing the Enter key below:

Manager.Desktop.KeyBoard.KeyPress(Keys.Enter, 100);

Please note that you need to add the System.Windows.Forms assembly.

Hope that helps.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Jean-Paul
Top achievements
Rank 1
answered on 26 Dec 2014, 04:27 AM
Hi Ivaylo,

Thank you for your post. My apologies as my question is relating to a html modal popup without a caption tag being present where I need to have access to the DOM.

To clarify, by simply forcing a windows enter key, the DOM tree will then need to be refreshed and access to the DOM made available via the Telerik Testing Framework?
0
Ivaylo
Telerik team
answered on 26 Dec 2014, 07:17 AM
Hello Jean-Paul,

Using the Enter key you can handle the modal popup, however if you would like to interact further you need to have caption as shown in the article provided.

Thank you for your understanding.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Jean-Paul
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Jean-Paul
Top achievements
Rank 1
Share this question
or