cancel
Showing results for 
Search instead for 
Did you mean: 

Element appears twice in tree

DHB
Occasional Contributor

Element appears twice in tree

Hello, 


I am trying to test a web application written with smartgwt. Due to the dynamic content of the page I am using the FindAll functionality and different properties to identify the required elements.


Now I have the problem that the result of the search is not unique. While analysing the two objects of the result, I found out, that they are exactly the same (property comparison), but having a different object path:



  1. Sys.Process('iexplore').Page('http://192.168.150.129:18000/html/index.html').Panel('isc_0').Panel('isc_N').Panel('isc_P').Panel('i... 0).Cell(0, 2).TextNode(0)

  2. Sys.Process('iexplore').Page('http://192.168.150.129:18000/html/index.html').Panel('isc_0').Panel('isc_N').Panel('isc_P').Panel('i... 0).Table(0).Cell(0, 2).TextNode(0)


Please notice that the first element path contains the combination Cell.Cell close to the end, without a table for the second Cell object present.


Now I want to know if this is a bug or feature 😉


Thanks, 


Dirk

TC 7.52/8.70/9.20 Standard, DelphiScript

3 REPLIES 3
YMinaev
Staff

RE: Element appears twice in tree

Hi Dirk,



This looks quite strange. Are these two objects actually the same object (that is, not just two identical objects)? Also, what TC version are you using?
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
mazhar555
Contributor

RE: Element appears twice in tree

Hi i have faced the same problem. problem is described in the following thread.

http://www.automatedqa.com/forums/forum/post/?mode=singleThread&thread=1f18abdc-304b-481b-bed9-f4324...

i am using 7.52 Ent.
-
Muhammad Mazhar Mahmood
Certified Software Tester (CSTE)
DHB
Occasional Contributor

RE: Element appears twice in tree

Hi Jared, 



the objects are recognized by TestComplete as two identical objects, but they refer to one object on screen. The function "Highlight object on screen" highlights the same object on screen for both objects.


What I do not understand is, how could the cell.cell (1) combination exist without a table (2) in between. Please also notice attached screenshot and object files from stores.



My TestComplete version is 7.52 Enterprise (please refer to my footer). If you need the full version info: 7.52.678.7



Dirk

TC 7.52/8.70/9.20 Standard, DelphiScript

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors