Forum Discussion

ratra's avatar
ratra
New Contributor
2 years ago

Can we run Headless Testing without using Xpath?

My current Name Mapping done by 'idStr' and other options but not with Xpath but SmartBear recommending to use Xpath and CSS selectors for successfully Headless Testing.

Is there any way to run Headless Testing with normal Name Mapping instead of Xpath?

 

 

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    You have to use XPath as mentioned in the documentation.

  • ratra's avatar
    ratra
    New Contributor

    We already created many automation scripts using  'idStr' and other options so asking that Is there any way to run Headless Testing with normal Name Mapping instead of Xpath?

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    It's clearly stated in the documentation, "Before you start creating cross-platform web tests, make sure that your TestComplete project is configured to locate web objects by their XPath expressions and CSS selectors" - meaning normal name mapping can not be used.

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Is there any way to run Headless Testing with normal Name Mapping instead of Xpath?

    Alas, no way 😞