Ask a Question

Object recognition in web applications

SOLVED
Hieronimus
New Contributor

Object recognition in web applications

Hello,

 

It seems that there is a recent change in object recognition in web application with Chrome. When i use Object spy to reconize a control it now displays in fullname property a FindElement method, eg Sys.Browser("chrome").Page("https://mywebapplication.bzh").FindElement("//label[.=""Date d'intervention""]").

Previously it was a full path, eg Sys.Browser("chrome").Page("https://mywebapplication.bzh").Form("mainForm").Panel(0).Panel("page_content").Panel(1).Panel(1).Panel(0).Panel("s_crits").Panel(0).Panel("paramsDynamiques").Panel(0).Panel(0).Panel(0).Panel("crit_rapide_198291").Panel("crit_rapide_198291_s_selection").Panel(1).Panel(0).Panel(0).Panel(0).Label(0).

My problem is that I can no more handle objects near a specific objects using '.parent' of '.child(0)', '.textnode(0)' in my scripts.

Is the ".findElement" the new way testComplete reconize web objects on Chrome, is it just an option of the project? 

3 REPLIES 3
Marsha_R
Community Hero

When did you last update TestComplete and what version are you on now?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
Hieronimus
New Contributor

Ok I can auto reply to my question 😁, it was due to the parameter "Use XPath and CSS selectors for web objects (required for cross-plateform web tests).

I disabled the parameter and I got the previous behaviour for my automated tests.

Hurray for a quick fix!


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: