Forum Discussion

erikgt's avatar
erikgt
Contributor
3 months ago

Elements detected, clicked in wrong location with Chrome

Hi,

Since a few days, we've been noticing one of our TestExecute workers, running on v. 15.79.43.11 is detecting elements in the Chrome browser in the wrong location.

A collegue has similar issues on their desktop, running TestComplete v15.80.1.7.

Other TestExec workers and TestComplete instances running the same version (including the same version of the Chrome browser) do not experience this issue. 

Does anybody have an idea what might cause this?

We've checked the obvious things as screen resolution and Windows zoom level. 

The issue doesn't occur with our regular AUT, only during interaction with Chrome.

 

31 Replies

  • I assume this issue is not going to be resolved in the near future, will try to talk to IT if its possible to downgrade

    • rhu's avatar
      rhu
      Contributor

      We tried and downgraded chrome but it updated although we created a group policy that it should not.
      So if you know how to disable the chrome update it would be helpful if you coud post it here.

      • MarcusBe's avatar
        MarcusBe
        Contributor

        Not yet sure if this works im in the process of trying it out

        Method 1: Disable Services (Recommended)

        1. Press Win + R, type services.msc, and hit Enter.
        2. Locate Google Update Service (gupdate) and Google Update Service (gupdatem).
        3. Double-click each service, change the Startup type to Disabled, and click Apply.
        4. Switch to the "Recovery" tab and set "First failure" and "Second failure" to Take No Action.

         

        Method 2: Rename the Update Folder

        1. Navigate to C:\Program Files (x86)\Google\
        2. Rename the Update folder to something else (e.g., Update.bak).
  • rhu's avatar
    rhu
    Contributor

    It seems that Smartbear found a solution (I created a ticket and they responded).
    I also tried it out and it looks like it is working (but i did only a few tests).

    To solve an Issue that appears after upgrading to Chrome version 145.
    The issue is caused by a restrictive Google Chrome security policy. The active NativeMessagingAllowlist policy blocks all external communication modules that have not been explicitly authorized.

    To resolve the issue, please take the following steps.
    Update TestComplete to >= Version: 15.81.7.7 x64
    To enable TestComplete functionality, the customer needs to add the SmartBear host to the Allowlist via directly in the Registry Editor:
    Please Note Close TestComplete and Google Chrome before following this.
    - Registry Path: HKLM\SOFTWARE\Policies\Google\Chrome\NativeMessagingAllowlist
    - Policy Name: NativeMessagingAllowlist (If you do not have this folder, please add it manually.)
    - Value Type: REG_SZ (String Value) - add new string
    - Value Name: Next available number (e.g., 1)
    - Value Data: smartbear.testcomplete.native_messaging_host
    Then restart the Chrome browser.

    • scottroutesmart's avatar
      scottroutesmart
      Contributor

      They had me try the same back on March 2, and this did not resolve the issue for me at least.  I also have a ticket logged and followed up on it yesterday, and the response was "our team has reproduced this behavior and is working on Chrome 145 problem".

      I upgraded Chrome again today to the latest and double checked, but the issue is still occurring even with the RegKey in place.

  • jsc's avatar
    jsc
    Regular Contributor

    SmartBear​ is there any timeline when this issue will be fixed?
    I had to pin the version that is tested to 145.0.7632.110 so that the test is possible at all.

    The current version of Chrome is 147 and probably 99.99% of our users use this version!

    The chrome version that is supported by TestComplete is 138 - relased in June 2025!

    This is hilarious. We are testing versions in a browser that no user is still actively using.

    • jsc's avatar
      jsc
      Regular Contributor

      or did I miss the fix for it somehow? But I updated our versions of TestExecute today and it was still broken.

      • anthonybad91's avatar
        anthonybad91
        Occasional Contributor

        We are still having the issue as well. Put in a support ticket and they provided me with a beta version that apparently contains the fix, unfortunately due to IT policies we are unable to install the beta so I don't know if it works for sure but could be worth reaching out to support if you are able to install it

        Support said it will be in the 15.82 release which should be early May.

  • rmalhotra's avatar
    rmalhotra
    New Contributor

    I have the same issue 

    TestComplete Version: 15.81.7.7 x64

    Chrome Version: 147.0.7727.102  (chrome version and Display settings on VMs are organization managed)

    My project already has the Use CSS pixels for scaled pages option enabled