SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Feb 2009
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Check whether an Image is focussed

    Hi All,

    I need to check whether an image in Web Application is focussed.

    I tried the following codes

    Browser(X).page(X).frame(X).Image(Y).Getroproperty ("focused")
    Browser(X).page(X).frame(X).Image(Y).CheckProperty ("focused",1,5)
    Browser(X).page(X).frame(X).Image(Y).CheckProperty ("focused",True,5)

    In all the above cases it returns the value as 'False'. But for few other images in the same page it returns the correct value as 'True'

    Is there any other way to check??
    I searched the forum. couldnt find anything..
    Can anyone help me on this??

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Check whether an Image is focussed

    And how does a image come in focus? If i am seeing 10 images on a page how would I manually also know which one is in focus?

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

    Re: Check whether an Image is focussed

    This is very similar to issues where some objects are not shown in GUI but they have visible property as True

  4. #4
    Member
    Join Date
    Feb 2009
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check whether an Image is focussed

    Thanks for ur replies
    Tarun,
    I use Send Keys to Tab and bring the focus the Image control

  5. #5
    Member
    Join Date
    Feb 2009
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check whether an Image is focussed

    Additional info..
    The above code does not work for Image control with 'html tag' property value as 'IMG'.
    It works fine for Image control with 'html tag' property value as 'INPUT'.

  6. #6
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Check whether an Image is focussed

    That is because a input control can take focus while a image can't. So that is quite obvious from this observation

  7. #7
    Member
    Join Date
    Feb 2009
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check whether an Image is focussed

    So there is no other way to verify this??

 

 

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 11.54%
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 07:45 PM.

Copyright BetaSoft Inc.