SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Object disabled

  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Object disabled

    Hi,
    I have a question...
    when i record application in two different actions for example say
    action1: invoking a webapplication
    action2: testing the functionality of that application

    till the end of action1 it works fine but once it goes to the second action it says Object disabled.....

    for some reason it is not able to read that application rather is not able to make it active..

    can somebody help me with this!!

    Thanks in advance..
    Ravi

  2. #2
    Member
    Join Date
    May 2005
    Location
    Noida
    Posts
    131
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object disabled

    Have you tried, Activating the window, Clicking on some object, or focussing on some object in that window before performing any other command.

    It should work.

    Regards

  3. #3
    Senior Member
    Join Date
    Oct 2005
    Location
    Universe
    Posts
    393
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object disabled

    Check for which particular object its throwing the "Object disabled" error message.

    Thanks,
    Wasim

  4. #4
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object disabled

    Strange, I've never seen that all the time I've been using QTP.

    Try something like:

    Browser("micClass:=Browser").Activate

    Mark Smith.

  5. #5
    Senior Member
    Join Date
    Oct 2005
    Location
    Universe
    Posts
    393
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object disabled

    Hi Mark,

    First of all congrats!! for completing 1500 posts, secondly "Activate" method works only for Standard Windows not for Browser Window.

    There are 2 sols for that.

    1. Handle1=Browser(xxx).object.hwnd
    Window(Handle1).Activate

    2. Browser(xxx).highlight

    Thanks,
    Wasim

  6. #6
    Member
    Join Date
    Apr 2006
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object disabled

    i tried all the options u guys gave me b4 i posted my query....

    as wasim said active doesnt work for browser.
    i also tried sync option with the browser to c if it can be recognized, but it wont...

    it be more specific with the question

    its a siebel application that i invoked in the first action and in the next action i am trying to test its functionality...

    siebel appl is recognized as
    browser("siebel application services").page("siebel application services").frame(.......

    and the error msg i get is "OBJECT DISABLED"

  7. #7
    Senior Member
    Join Date
    Oct 2005
    Location
    Universe
    Posts
    393
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object disabled

    What is the object after the Frame??

    Thanks,
    Wasim

  8. #8
    Member
    Join Date
    Apr 2006
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object disabled

    Browser("Siebel Financial Services").Page("Siebel Financial Services").Frame("My Contracts").SblTable("Contract Info")

    Ravi

  9. #9
    Senior Member
    Join Date
    Oct 2005
    Location
    Universe
    Posts
    393
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object disabled

    See, there can be two possibilities either the Frame is disabled or the SblTable.

    Try these two statements.
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">msgbox Browser(&quot;Siebel Financial Services&quot.Page(&quot;Siebel Financial Services&quot.Frame(&quot;My Contracts&quot.Object.disabled

    OR
    msgbox Browser(&quot;Siebel Financial Services&quot.Page(&quot;Siebel Financial Services&quot.Frame(&quot;My Contracts&quot.SblTable(&quot;Contract Info&quot.Object.disabled</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Thanks,
    Wasim

  10. #10
    Member
    Join Date
    Apr 2006
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object disabled

    why to disable the Object.
    i think this is becoz
    in the first action i invoked the application thats y its fine
    but in the second action i didnt invoke it, i just tried to record by setting the record options to record on any open window-siebel-based application....

    finally when its done doing the first action and goes to secnd action its not able to get the application up and active, thats y it says Object disabled... if i activate the application manually(click using mouse).. from that point it works fine.....

    can you suggest me now?

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:21 PM.

Copyright BetaSoft Inc.