Forum Discussion
If you use the Object Spy tool in TestComplete (https://support.smartbear.com/testcomplete/docs/testing-with/exploring-apps/object-spy/about.html) how do the fields show up there?
What is the reason for using DOM to find the values? Is this a specific requirement for your test case?
have you looked into using a Table checkpoint or an Web Comparison checkpoint?
When i do a spy, it shows as a table that takes much longer to retrieve the column valuesfor some reason.
Aliases.browser.Page("*").Panel(0).Panel(0).Panel(0).Section("content").Panel(1).Panel("applicantForm").Panel(0).Form("Application").Panel(0).Panel(0).Panel(5).Panel(0).Panel(0).Panel(1).Panel("coverageSummary").Panel(0).Panel(1).Table("pdTable")
- tristaanogre6 years agoEsteemed Contributor
It shouldn't take that long. TestComplete reads the DOM and translates it into objects.
Based upon the Alias you have presented, there are alot of components, including the page, that are not included in any sort of mapping.. Generally, once you obtain the table, you then can retrieve the contents of the cells by referencing the cell by row and column index.- tristaanogre6 years agoEsteemed Contributor
Additional note... when using NameMapping and Aliases, in the Alias part of the editor, you can exclude the unnecessary Panel objects.
Please read up on https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/about.html as this will help you in identifying your objects. From there, once you have the table mapped, you should be able to reference individual cells by row and column index and retrieve the contents from the cell.- Mathit6 years agoContributor
Thank you for your response.
I dont use Namemapping, could that be the reason it takes much longer to capture values on the grid?
sometimes, UI itself takes longer to load and then reading all the values. So will it reduce the time taken if I grab values using DOM?
Thanks again,
Related Content
- 9 months agoLuukdb
- 9 years agoilovechiku
Recent Discussions
- 3 days agovladd1