Forum Discussion

tiffany_ip's avatar
tiffany_ip
Occasional Contributor
14 years ago

A way to set VisibleOnScreen property state to TRUE

Hello,



Environment: Windows 7, Java 7, TestComplete 9



I'm testing on a Java based application, so I have a JList that is clearly visible from the application, these are its properties:



Enabled: TRUE

Exists: TRUE

Visible: TRUE

VisibleOnScreen: FALSE  ( I can still see it)

wFocus: 0



So if I want to declare a variable like this:



var list = javaeditpane.LevelList;



--> it would give me an error that it is not found. (Object not found).



The only way that the VisibleOnScreen would change to TRUE as property is if I click on that list (it's empty).



Unfortunately I can't click on it to "focus" if I can't find it... :(



Is there a way to get the list to be VisibleOnScreen to true? Or some workaround to ignore that property?



Thanks!

17 Replies

  • Hi Ricardo,

     


    I think, first, we need to investigate why the controls aren't recognized. What kind of application (WPF, .NET, VCL) are you using? Also, please let us know the class name of the problematic window (you can check this in TestComplete's Object Browser).

  • richcoto's avatar
    richcoto
    Occasional Contributor
    it's a .EXE which is an RCP aplication, the name class is FNWND3105
  • Hi Ralyn,

     


    It's a read-only property. You can use the Activate method (or similar) to activate the window. As a result, the property value will be automatically updated.


     

  • Okay Tanya. So say suppose Ive got a Save button in my form.How do i set VisibleOnScreen Property for this?Is it anywhere in the checkpoints?
  • Ralyn,

     


    As a rule, this property is used to identify an object in Name Mapping (add it as in the mapping criteria) or when calling the Find method.