Ask a Question

Not able to call page object

whuang
Regular Contributor

Not able to call page object

Hi there,

 

I am getting "You are trying to call the "page" method or property of the following name mapping object: Name mapping item: browser" when I run this code

Aliases.browser.Page("*").NativeWebObject.Find(xxx,xxx,xxx)

The name mapped item browser is any item that the ObjectType is Browser, this code was working perfectly before, but it started complaining just recently, what is more odd is this line of code only fail on a specific machine, I ran the exact same code on other machines, they all worked fine.

whuang_0-1629396292684.png

 

Does anyone have any idea what is wrong here?

 

Thanks in advance

3 REPLIES 3
Marsha_R
Community Hero

Re: Not able to call page object

What is the difference between the machine where the test fails and the ones where it runs?

 

Are the TestComplete versions different?

Are the browser versions different?

Are the app under test versions different?

Do they differ in any other updates?

 

 


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
AlexKaras
Community Hero

Re: Not able to call page object

Hi,

 

As the browser object is mapped to match any browser, likewise the page object, the most probable reason for this error is that some windowless browser process exists in your system. Quite often this happens with Internet Explorer.

So I would close all browsers on the problematic machine and then check with Task Manager if any browser process remained in the memory.

 

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
================================
sonya_m
Community Manager

Re: Not able to call page object

Thank you, Community!

 

@whuang does the suggestions help? If not, please provide more details.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: