Micro Focus QTP (UFT) Forums
Run error: Object is disable - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Run error: Object is disable (/Thread-Run-error-Object-is-disable)



Run error: Object is disable - bea - 02-18-2009

Hi,
I am new in QTP and learnig how it works. My aplication is OracleForms 6i Gui and i begin recording with .Net + Web add-ins.
When i try to run the recorded session, i have an error -> Object is disabled
Line (26): "Window("Oracle Forms Runtime").WinObject("ui60Viewcore_W32_2").Click 10,7".
I don´t understand why. It´s a button yhat in previous screens worked.
Can anyone help me on this.
Thks


RE: Run error: Object is disable - sreekanth chilam - 02-18-2009

HI Bea,

Infact whatever script generated after u recorded is not the correct one that has to be generated.
(It should not be Coordinates Based Script(Click 10,7), where it should be OracleWindow(....).OracleButton(.....).Click )

Infact You should have "Oracle" Addin installed on ur machine inorder to identify Oracle Appl. based Objects.

Once it is installed, Select the "Oracle" Addin checkbox in Addin Manager window while starting the QTP.

Now QTP Can recognize the Oracle Forms,OracleButtons,OracleCheckBoxes..& So on So forth.


RE: Run error: Object is disable - bea - 02-20-2009

Hi,
Thanks for the suggestion, but i've tried yet with Oracle addin and the results are not best... its a client server Oracle appl. The objects of the expert views with the diferent addins are the same, win objects.
I have resolved yet the problem 'object is disable' with waitproperty "enabled", true.
Now i have another problems...
- with oracle addin - at the first edit field that appears i got the error 'cannot identify the object "Edit" (of class WinEdit) '
- with .net addin - qtp don't identify some recorded fields, that results in one screen in overlapping the data from various fields in the first that appears in the window..
Have you experience in QTP with Oracle Forms 6i GUI, not web?
Thanks in advance for the possible help
Regards


RE: Run error: Object is disable - Forrest Gump - 08-30-2011

Hi,

If Oralce addin is installed then, u must follow the procedure like this:
1. Connect VPN
2. Open QTP (Select only Oracle Add in)
3. Open borwser and then Oracle form

If you follow above procedure, then Oracle form objects will be displayed as shown below:
Code:
OracleWindow(....).OracleButton(.....).Click

Somebody pls answer my post: Oracle Regular Expression


RE: Run error: Object is disable - venkat99 - 09-08-2011

Hi,

In this perticular statement QTP has not identified that button.if QTP is not able identify any Object it will genarates the statements as winobject. while record session if qtp is not able to identify the Object it will switches to low level Recording and generates the statements with respect to the screen Coordinates these screen coordinates will depends on the resolution of screen so it will work some times it will not work some times


RE: Run error: Object is disable - sunnyk8 - 01-11-2012

bea,

in your line 26 , object should not be identified as WinObject, instead it should identify as Win or WebButton, try to use the add-ins in permutations and combinations way(Select only .NET, select only Web, select both etc,,,)

If this issue still exists, try to know if there is any shortcut on that button, lets say if we need to click Save button, if this button works as Alt+S then we can use SendKeys ,

we need to search a workaround for clicking that button if WinObject is the final case

sunny