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
Champion Level 3

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?

 

 

AlexKaras
Champion Level 3

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 Champion]
____
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
sonya_m
SmartBear Alumni (Retired)

Thank you, Community!

 

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


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: