Forum Discussion

googleid_109376's avatar
googleid_109376
Occasional Contributor
12 years ago

Cannot find object when is inside an invisible <div>

Hello,



I cannot find an object (even if I know its id) if it is inside a <div style="display: none">. I wanted to know if this behavior is normal. Thanks

  • How you are trying to find the object?

    This may be expected if you are using the Tree web model - it does not contain some web page elements - in this case you should use some of the following:


    • Page.NativeWebObject.Find


    • Page.QuerySelector


    • Page.FindChildByXPath