Forum Discussion

Amytav's avatar
Occasional Contributor
4 years ago

Run Remote Browser: Methods supported


We have some existing keyword tests with scripts where we use methods EvaluateXpath, FindChildByXpath etc.

Now we are running the same keyword tests through the Run Remote browser utility to perform crossbrowser tests across browsers/devices. The test seem to be failing at steps where EvaluateXpath, FindChildByXpath are used. What is the workaround to make the existing scripts compatible with cross browser tests through Run Remote Browser?

Any help will be greatly appreciated.

  • Amytav :




    Just o sum-up: as hkim5 already wrote, new cross-platform mode introduced in TC 14.40 is not compatible with old test code and works only for the new projects that use .FindElement() and .WaitElement() page methods only.

    The reason is that cross-platform mode runs Selenium under the hood and two mentioned methods are the only ones that are translated to Selenium calls during runtime.

    All other methods provided by TestComplete are not translated to Selenium calls and thus cannot be used for cross-platform testing.


16 Replies

  • you will need to create a new project and enable the scalable web tests setting to use the run remote browser step. the reason being that the way objects are identified are completely different (the older, existing tests will use the traditional name mapping with object properties, whereas the new scalable web tests that work with the run remote browser step will use the .findelement method to identify each of the objects that you are interacting with). with that said, to answer your question, there is no way to make your old tests (that use the old name mapping) work with the run remote browser step

    • Amytav's avatar
      Occasional Contributor

      Thanks Kim, for your reply.

      We are not using any name mapping objects in our scripts. Scripts are failing at the EvaluateXpath step (refer image attached, highlighted step). These scripts do work with virtual browsers, desktop local browsers, only failing with the Run Remote browser utility.

      • hkim5's avatar

        ok, one last really obvious question that I have to ask is, have you purchased a Device Cloud add on for your TestComplete instance?