Forum Discussion

srijal71's avatar
srijal71
New Contributor
5 days ago

WebModule issues with Virtual Machine

I am currently using TestComplete in a Virtual Machine. I am using the Edge browser for the Web Module.

When I use ObjectMapper/Object Spy to select a web element, it highlights the entire browser window rather than the specific web element. The components get highlighted sometimes, but in most of the cases, it highlights the whole page. I am not sure why this is happening, as it works as expected sometimes, but mostly fails to recognise the web element. I am pretty much sure that this is not because of the component being embedded or dynamically displayed, as I have tried to capture the web elements in other webpages too(Amazon, eBay), but the same thing happens. Could someone please help me to understand what the issue could be and how we could fix this?

FYI: I have not tried it in other browsers yet, as the SmartBear extension has not been installed by the management yet.

Any help would be much appreciated.

4 Replies

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Icon for Champion Level 3 rankChampion Level 3

    This usually happens when TestComplete intermittently fails to attach to the page DOM and instead attaches to the SmartBear browser extension context. Since Edge is Chromium-based, the extension runs under a chrome-extension://…/BackgroundPage.html URL. When this context becomes active (more common on VMs), Object Spy/Object Mapper highlights the entire browser window instead of individual web elements. Recording may still work intermittently because it uses a more tolerant capture mechanism.

    Match VM and host display settings:
    Even with DPI set to 100%, ensure the host and VM use the same screen resolution and avoid dynamically resizing the VM window, as resolution changes can cause TestComplete to misidentify web elements.

    Isolation steps:

    1. Try identifying elements on a simple public site like w3schools.com.
    2. Close all Edge instances, reopen Edge first, fully load the page, then start TestComplete.
    3. Use a clean Edge profile with only the SmartBear extension enabled.
    4. Verify VM settings (disable enhanced graphics/3D acceleration, avoid dynamic DPI or resolution changes).

    Suggestions / next steps:

    • Prefer recording + Name Mapping over Object Spy as a workaround.
    • If possible, test in Chrome with the SmartBear extension.
    • If the issue reproduces on public sites, raise a SmartBear support incident and include:
      • VM type (Hyper-V/VMware/Citrix)
      • TestComplete and Edge versions
      • Confirmation that the URL switches to chrome-extension://…
      • Screenshots or a short repro video

    🤖 AI-assisted response
    👍 Found it helpful? Click Like
    ✅ Issue resolved? Click Mark as Solution

  • srijal71's avatar
    srijal71
    New Contributor

    Hi Raghvani, thank you very much for your reply. I have SmartBear Test Execution Extension installed and enabled. The DPI is set to 100% too. When I use the record feature in TestComplete, I am able to see it highlighting the specific web element. However, when I try to map the object or use Object Spy, it highlights the whole screen. Also, about the record and highlighting the web element, it happens intermittently as it sometimes highlights the web elements, sometimes it highlights the full page, even with the record feature.
    Also, when the whole page is highlighted, the URL is not the actual URL. It is something like chrome-extension://sdfkjndjfkdskjfndkjfndsjkfsdk/BackgroundPage.html. It may not be able to recognize DOM?
    I am told to work on VM as the apps are hosted in the VM, so I don't have any other alternatives. I am not sure what's going on. Any help is much appreciated. 

    • rraghvani's avatar
      rraghvani
      Icon for Champion Level 3 rankChampion Level 3

      Are you able to identify the UI objects shown in https://www.w3schools.com/, and are you able to record simple actions? Does it work?

      If it's working, then it's most likely relating to your web application. Verify your web application is supported, see Supported Technologies and Applications.

      If it's not working, then I suggest you get TestComplete installed on your local machine - you can still test your web application using Edge, on your local machine