Some popup issue

2 Answers 183 Views
Dialog Edge
Ranjian
Top achievements
Rank 1
Iron
Ranjian asked on 18 Apr 2023, 07:35 AM | edited on 18 Apr 2023, 07:55 AM

Recently we have had some problems by using ArtOfTest(telerik testing framwork using 2022 version).

There are some methods doesn't work after migrating to Edge (Version 111.0.1661.41 (Official build) (64-bit)) which IE is retired that we had to change the browser.

Below is the code after change. we have to control the mouse to click popup and copy the message which should work by using AlertDialog of ArtOfTest. So is there some new solution or better way to fix this issue?

Manager.Current.DialogMonitor.AddDialog(new AlertDialog(Manager.Current.ActiveBrowser, DialogButton.OK));
            Manager.Current.DialogMonitor.Start();
            // to retreive pop up text
            var message = element.GetAttributeValue("onclick");

 

Ranjian
Top achievements
Rank 1
Iron
commented on 18 Apr 2023, 07:55 AM

Dose anyone have same problem?

2 Answers, 1 is accepted

Sort by
1
Elena
Telerik team
answered on 19 Apr 2023, 04:19 PM

Hello Ranjian,

The dialogs and their structure in the different browsers are quite different. Despite of this Test Studio provides the built in handlers for each type dialog - like the Alert one in this case. The shared code snippet differs a bit from what you've listed, but your approach is also a valid one. 

What might be causing the inconsistent behavior is that you are using an older version of Test Studio Testing Framework and a newer version of the browser. Each next version of any of the browsers may introduce some changes in the dialogs. Thus, Test Studio needs to apply changes in order to support that latest version of the browser. 

With that said my recommendation is to upgrade to the latest available release and then try to run the test again. The dialog should be handled as expected, but I can't gurantee that the message will be retrieved and this is because of the differences in the browser. 

Anyways, you still can give a try to the update and let me know if you see any difference in the test execution.

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 20 Apr 2023, 02:28 AM

Hi Elena,

Thank you for your advise, good point. I'll try to update my version of testing framework and run this case again.

By the way, do you also use the test studio? If so, which version is working on your local? 

Thank you for your meaningful advise again.

Regards,

Ranjian

 

Elena
Telerik team
commented on 20 Apr 2023, 10:30 AM

Hi Ranjian, 

I am glad to know the provided information makes sense to you.

And yes, I am also using Test Studio with its latest available release - 2023.1.329, and also latest browsers versions. 

Regards,
Elena

0
Ranjian
Top achievements
Rank 1
Iron
answered on 10 May 2023, 05:29 AM

Hi,

We have some trouble about update the version of telerik. There are too much machine need to update, and we run out of time, is there any other way to solve this issue?  Thank you.

Elena
Telerik team
commented on 10 May 2023, 03:27 PM

Hi Ranjian, 

I am sorry that you have any difficulties. However the different versions of the browsers are fully supported from a Test Studio version corresponding to the same release time. There is no other way to make the Testing Framework compatible with latest Edge except updating the product. 

Thank you for your understanding.

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