Micro Focus QTP (UFT) Forums
Object not visible - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Object not visible (/Thread-Object-not-visible)

Pages: 1 2


Object not visible - Akhila - 01-30-2008

Hi Ankur,

I am regular visitor of your blog, its helping me a lot in learing QTP.
Thanks for creating such a nice blog.

I recorded a small script on deleting an Employee record.
When I tried to delete, it throughs a message saying "Are you sure to delete this data?", then I clicked on OK button.
But while running the script its not performing action on OK button, I am getting Run Error as follows:
<<<
Run Error Object not visible
Line (140): "Browser("ABC.com").Dialog("Windows Internet Explorer").WinButton("OK").Click".
>>>

I checked that Objects's physical description is correct.
Can you please help me in correcting this error.

Thanks,
Akhila


RE: Object not visible - Ankur - 01-30-2008

In "Browser("ABC.com")" include the visible property as mandatory property and then record the sequence.


RE: Object not visible - Akhila - 02-05-2008

Its working fine. Thanks Ankur
I have a doubt, actually I have not found visible property for the "Browser("ABC.com")", so in Object Repository for OK button I added visible property to object details window then marked it as mandatory property. Then script run was successful. Is it correct process?


RE: Object not visible - Ankur - 02-05-2008

Exactly, that's what I meant... good that you worked on your own and arrived at the solution.


RE: Object not visible - trips11 - 06-13-2008

Hi Ankur,

I have a similar issue and added Visible = True to Browser as well as on button. But still Its not clicking the ok button.

Where as when I give Browser("Browser_2").Dialog("Microsoft Internet Explorer").WinButton("OK").highlight it highlights the ok button but it does not click.

Please let me know what mistake I am doing.


RE: Object not visible - trips11 - 06-13-2008

Forgot to mention before. I get following error.

Cannot identify the object "OK" (of class WinButton). Verify that this object's properties match an object currently displayed in your application.

Line (147): "Browser("Browser_2").Dialog("Microsoft Internet Explorer").WinButton("OK").Click".

Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.


RE: Object not visible - peterlck - 04-12-2010

Hi Ankur,

I think I have similar issue with "Object Not Found" using QTP but with Flex controls. What I did was to make the FlexApplication(ui.swf") visible = True in Object Repository but I am still getting "Object Not Visible" using FlexComboBox. One thing I noticed is that the add/remove button for the Mandatory Properties in Object Properties is disabled. Do you know what else I could be missing?

Code:
Browser("FlexApp").FlexApplication("app").FlexApplication("ui.swf").FlexBox("index:27").FlexTextArea("component_password").SelectText 0,0
Browser("FlexApp").FlexApplication("app").FlexApplication("ui.swf").FlexBox("index:27").FlexTextArea("component_password").Input "abc123"
Browser("FlexApp").FlexApplication("app").FlexApplication("ui.swf").FlexBox("index:27").FlexButton("Login").Click
[b]Browser("FlexApp").FlexApplication("app").FlexApplication("ui.swf").FlexComboBox("quicklaunch").SelectText 0,0[/b]
Browser("FlexApp").FlexApplication("app").FlexApplication("ui.swf").FlexComboBox("quicklaunch").Input "xyz123"
Browser("FlexApp").FlexApplication("app").FlexApplication("ui.swf").FlexComboBox("quicklaunch").Type "ENTER"
Browser("FlexApp").FlexApplication("app").FlexApplication("ui.swf").FlexLinkBar("bannerLinks").Change "Logout"
Browser("FlexApp").Page("Page").Sync
Browser("FlexApp").CloseAllTabs



RE: Object not visible - peterlck - 04-13-2010

I am beginning to suspect that I am not able to Add/Remove the Mandatory Properties in Flex environtment could be due to the fact that I used Flex Builder 3 trail Version plug-in for QTP ?


RE: Object not visible - Arun Prakash - 07-10-2010

Hi Peterlck,

It will take some time to load that object.. put some wait,it will solve your problem.


RE: Object not visible - peterlck - 07-15-2010

Will you be able to explain more because I don't think wait is a solution as every step has a different wait duration based on the control operation Smile

Anyone has a better solution?, I tried with WaitProperty on visible, enabled, editabled and still experience the same problem which seems weird to me. Even when the object is visible, I am not able to Input text into FlexTextArea occasionally.

Cheers