Alert popup can't close by code after using the dialogElement of ArtOfTest.Common.Extensions

1 Answer 100 Views
Dialog Edge General Discussions
Ranjian
Top achievements
Rank 1
Iron
Ranjian asked on 18 May 2023, 07:57 AM | edited on 18 May 2023, 08:00 AM

Recently we found an issue about popup in Edge.

when we do some wrong behaviors, alert will show up. just like this (https://demo.atata.io/products).

And we used dialogElement(the namespace is ArtOfTest.Common.Extensions) to catch the message. It works but after that we can't control the page. Whatever we tried like refresh the page or press enter by code, it always stuck until alert is closed manually or time out. Is there some one has the same situation? And if so, how to solve it? 

Below is the code:

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 19 May 2023, 02:59 PM

Hello Ranjian,

I am not sure which version of the Telerik Ttesting Framework you currently use, but please, ensure to update it to the last available one. 

Then, this seems to be a Confirm dialog from the page, so it is recommended to use the Handler for confirm dialogs. Please, take the time to rework the used code as suggested in the sample article and chekc if it works for you. 

Thank you for your cooperation in advance.

Regards,
Elena
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Ranjian
Top achievements
Rank 1
Iron
commented on 22 May 2023, 06:40 AM

Hi Elena,

Thank you for your advices. As of version, teams replay me they already updated it, but still pending on this issue. We're doing POC with testing framework, in quite detail level and looking for selecting Telerik as our automation framework, pls help us get rid of this issue. 

Regards,

Ranjian

Elena
Telerik team
commented on 22 May 2023, 12:50 PM

Hi Ranjian, 

I am pleased to know you are already using the latest version of the testing Framework.

Next will be to change the code used for handling the dialogs as suggested in the sample about handling a confirm dialog in code. Take the time for this and let me know if you have any difficulties. 

Regards,
Elena

Tags
Dialog Edge General Discussions
Asked by
Ranjian
Top achievements
Rank 1
Iron
Answers by
Elena
Telerik team
Share this question
or