ObjectState is invisible but its shown in application (Enabled/Exists = True)
Hello,
Application: Power Builder 12
Tests: Scripts - using Python
Identify objects: directly (true name)
Short introduction:
Lets say that i have app that letting u add a person to a country so it have 2 main windows:
Country_Object (country_name)
Person_Object (name,subname,gender)
In 80% countries if i click "add" button that opens Person_Object i can see 3 fields:
all of them are visible and i can make tests easly.
In 20% countries if i click "add" button that opens Person_Object i can see also 3 fields:
name,subname is visible for TC and i can write with my tests to these fields whatever i want but radiobuttion "gener" with option male/female is not clicable with objectspy (i mean i cant identify it).
If I open object browser and compare gender field properties between these 80% and 20% i can see difference:
80% has:
ControlIndex: 1
Visible: True
VisibleOnScreen: True
ObjectState: True
20% has:
ControlIndex: 2
Visible: False
VisibleOnScreen: False
ObjectState: False
In all 100% i can see all fields in my application but i cant identify them with object spy so my tests also cant identify them.
Ofc firstly i asked developer whats the diffrence between two the same objects (user perspective).
He said its all the same, just order may be diffrent (prolly affect for controlindex in TC) but it shouldnt matter right?
He have some "objects substitution" on opening user window event but it do nothing with that specifing field (gender: male/female)
He blames TC for that problem.
Countries/Users are just an example: i have that problem with a few fields ( usually radiobutton/dropdown).
Any1 of u know why TestComplete "visible" property in some cases are false if i can see these fields.