SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jul 2000
    Location
    sanjose,CA,USA
    Posts
    68
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Indetify active and inactive htmlpush button

    Hi
    I am trying to identify inactive htmlpush button,
    I used .isvisible,isactive method for active/inactive button ,script returned true for both buttons,
    also tried with cursor.gettype it returned POINTER for both buttons,
    Is there any specific method which can differentiate between active & inactive push button,
    Thanks
    Sri

  2. #2
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Indetify active and inactive htmlpush button

    You could always make a function, testcase, etc, which uses the button and then figure out what to check for if it worked (and, at the same time, what will be 'missing' if it didn't work).

    See what I mean?

    You'll probably want to make the 'button worked' case return to the original state (prior to pushing the button).
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  3. #3
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Indetify active and inactive htmlpush button

    I'm not sure what you mean by active. Are you trying to determine if the button has focus or are you trying to determine if it is enabled?

    If the latter, try .IsEnabled()
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  4. #4
    Member
    Join Date
    Jul 2000
    Location
    sanjose,CA,USA
    Posts
    68
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Indetify active and inactive htmlpush button

    Hi All
    The business requirement is
    If I select option say Cars,htmlpushbutton labeled "Aviation" should be inactive(not clickable) & button "Automobile" be active(clickable)
    If I select option Flights the htmlpushbutton labeled "Automobile" should be inactive(notclickable) & button "Aviation" be active(clickable)
    basically my script goes on selecting different options and each case will check the corresponding status of pushbuttons,
    I tried with .Isenabed() method it returned TRUE for both clickable and non clickable buttons.
    Thanks,
    Sri

  5. #5
    Senior Member
    Join Date
    Aug 2003
    Location
    NY
    Posts
    708
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Indetify active and inactive htmlpush button

    Hi Sri,

    Try using button.VerifyEnabled() inside a do-except block or just use the property bEnabled.

    HTH,
    Harshil

 

 

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.00%
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:43 AM.

Copyright BetaSoft Inc.