Forum Discussion

ratra's avatar
ratra
New Contributor
10 months 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?

 

 

4 Replies

  • 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 ğŸ˜ž