cancel
Showing results for 
Search instead for 
Did you mean: 

How to deal with dynamic elements in Java Applet application

SOLVED
Highlighted
Occasional Contributor

How to deal with dynamic elements in Java Applet application

I have a task where I have to update a form and then Click OK for the final Confirmation. While recording I do update the form and then click OK for the confirmation but, while Playback the tests are failing at the final Confirmation panel. I have tried to grab the element and found that the value of the OK button changes everytime.

 

For example :

 Name Mapping :

Aliases.browser.pageOracleFusionMiddlewareFormsS.object.PluginEmbeddedFrame.Main0.MDIContainer15.EwtComponent14.ScrollBox13.ScrollBox_112.FormDesktopContainer11.FWindow554.LWComponent557.AlertPane559.LWComponent563.ButtonBar569.PushButton20​

 

For first attempt I got the values as PushButton5 and for the next attempt the value have changed to PushButton20.

 

I am not sure how can I resolve the issue.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Occasional Contributor

Re: How to deal with dynamic elements in Java Applet application

Hi Marsha,

 

Thank you for your suggestions. Can you please let me know how should I turnoff the settings for TestComplete.

 

Thanks,

 

Biswa

View solution in original post

Highlighted
Community Hero

Re: How to deal with dynamic elements in Java Applet application

6 REPLIES 6
Highlighted
Community Hero

Re: How to deal with dynamic elements in Java Applet application

Highlighted
Occasional Contributor

Re: How to deal with dynamic elements in Java Applet application

Thank you for the suggestion but, If you observe from the attachment (My project Name Mapping) then you can see that there is a dynamic window generated for every test and the window has the OK button which I need to use for my tests so, I am not sure how we can use wildcards for dynamic windows.

 

 

Highlighted
Community Hero

Re: How to deal with dynamic elements in Java Applet application

I have a task where I have to update a form and then Click OK for the final Confirmation. While recording I do update the form and then click OK for the confirmation but, while Playback the tests are failing at the final Confirmation panel. I have tried to grab the element and found that the value of the OK button changes everytime.

________________________

 

If PushButton is what's changing every time, then you use PushButton* in your mapping

 

If FWindow is also changing, then use FWindow* and PushButton* in your mapping. 

 

It also looks like you are letting TC automatically update the name mapping.  Turn that off and use the wildcards.  That way TestComplete will look for the pattern FWindow(some number) followed by a child farther down PushButton(some number) and you don't have to know what the numbers are.

 

 

Highlighted
Occasional Contributor

Re: How to deal with dynamic elements in Java Applet application

Hi Marsha,

 

Thank you for your suggestions. Can you please let me know how should I turnoff the settings for TestComplete.

 

Thanks,

 

Biswa

View solution in original post

Highlighted
Community Hero

Re: How to deal with dynamic elements in Java Applet application

Highlighted
Occasional Contributor

Re: How to deal with dynamic elements in Java Applet application

Thank you Marsha for your help! By turning off the setting in TestComplete the dynamic numbers for the elements were resolved and I have manually done the name mapping.

 

Thanks,

 

Biswa

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors