Forum Discussion

John007's avatar
John007
New Contributor
5 months ago

Object showing Visible in Object Browser when set as Invisible in application

I have a desktop application build in .Net C# on Neutrino Framework, we have a requirement not to show 'Battery Icon', it is set to 'Enabled'  = false and 'Visible' = false in application, and it does not show on the application anymore. However, Object Browser shows Visible = True for this object.

Any idea why it would be? Thanks in advance!

 

 

 

3 Replies

  • John007's avatar
    John007
    New Contributor

    Correction, it is for 'Battery Icon', I updated the Original post.

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

    I'm not sure what Neutrino Framework is, and it's not supported by TestComplete, see Supported Development Tools.

    I'm guessing, under the hood, the Neutrino Framework is changing the correct property values. However, TestComplete is most likely not able to see this and is only seeing "above the hood".

    Are there any other properties, that change their values based on the state of your icon? If not, then just verify the Enabled property value.

  • Two things to try:

    1. Use the Object Browser to look at the control and its parent / children hierarchy. Then, make the control disappear in the running app. Afterwards, refresh or re‑inspect starting from the parent and navigate down through the children. See if anything in the hierarchy indicates a frame inside another frame or a container that changes visibility.
    2. Use the Refresh command in TestComplete’s Object Browser (or via script) to force the object tree to re‑synchronize. Look again at the control’s Visible, Exists, VisibleOnScreen, etc., after refresh. Also confirm whether the parent container or some frame is still “reporting” visible even if its content is hidden. https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/refresh-method.html 

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