SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Disabled buttons

    Is there a way to get back a boolean value indicating whether a button is enabled? I can only find Verify functions to do something like this, but they don't return any values. I have also tried the SetFocus() and HasFocus() functions, but SetFocus() will fail if the button is not enabled, and HasFocus() produces the following error when the button is not enabled: "Error: Internal error in agent - Child not found". Thanks for your help.

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Disabled buttons

    IsEnabled()




    ------------------

  3. #3
    Junior Member
    Join Date
    Jul 2002
    Location
    Chennai
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Disabled buttons

    What kind of application are you testing? The IsEnabled() function doesnot work efficiently with web applications. If it is a web application then you have to identify a disabled button using a workaround: -
    1. Move the mouse pointer near that button.
    2. Get the status of the mouse pointer.
    3. If the status is "Pointer" then the button is disabled else if the status is "Arrow" then the button is enabled.

    ------------------

  4. #4
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Disabled buttons

    cursor.gettype doesn't always return the correct type!!!

    Hahah

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 09:00 AM.

Copyright BetaSoft Inc.