Forum Discussion
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")
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,
- tristaanogre6 years agoEsteemed Contributor
I think you'll see some improvement, to be honest. TestComplete is built and structured around NameMapping and object identification.
Also, your page object is generic... Page('*')... so, if you have more than one page open, it needs to find which page you're working off of that matches... So, really, it all comes down to proper object identification.
You still haven't answered the question: Why do you want to use DOM? Is this some requirement?
Related Content
- 9 months agoLuukdb
- 9 years agoilovechiku
Recent Discussions
- 2 days agovladd1