Ask a Question

Run Remote Browser: Methods supported

SOLVED
Amytav
Occasional Contributor

Run Remote Browser: Methods supported

Hi,

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.

16 REPLIES 16
Amytav
Occasional Contributor

@tristaanogre , There is no FindAllElements. FindAllChildren does work but once the length is determined, we have more xpaths inside the iteration loop like :

@Amytav just checked with the TC product owner, and as of right now when we are using the cross platform web tests, only the findElement() method is available on the Page objects. 

Best,
Justin Kim

@Amytav :

 

Hi,

 

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.

 

Regards,
  /Alex [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
================================
Amytav
Occasional Contributor

@AlexKaras ,

Thank you for confirmation. Is there any method supported to store collection of objects in cross-platform mode introduced in TC 14.40? I believe selenium has method FindElements which does that but this is not supported in TC 14.40.

they are working on adding in the FindElements in the next iteration or so of TestComplete 🙂

Best,
Justin Kim

@hkim5 :

Thank you for the update.

 

@Amytav :

I also heard that they are going to introduce NameMapping support for cross-platform mode as well. So, I expect that cross-platform mode will be as usable as any other functionality in TestComplete soon. 🙂 (Yes, I understand that this is not what you like to hear when you need something like that right now. 🙂 )

 

Regards,
  /Alex [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
================================
Amytav
Occasional Contributor

@tristaanogre , @hkim5 , @AlexKaras 

Thank you for your input and feedback. Appreciate it.

cancel
Showing results for 
Search instead for 
Did you mean: