Not able to call page object
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Does anyone have any idea what is wrong here?
Thanks in advance
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
/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
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Community!
@whuang does the suggestions help? If not, please provide more details.
Sonya Mihaljova
Community and Education Specialist
