Forum Discussion

DHB's avatar
DHB
Occasional Contributor
14 years ago

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('isc_Q').Panel('isc_1Y').Panel('isc_1Z').Panel('isc_25').Panel(0).Table('isc_25table').Cell(4, 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('isc_Q').Panel('isc_1Y').Panel('isc_1Z').Panel('isc_25').Panel(0).Table('isc_25table').Cell(4, 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

3 Replies

  • 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?
  • DHB's avatar
    DHB
    Occasional Contributor

    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