SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Apprentice
    Join Date
    Jul 2013
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Help with VisibilityOfAllElements

    I am trying to implement a custom wait method in our framework and using the VisibilityOfAllElements methods to ensure that selenium waits until the element becomes visible.
    Now this works fine for most of the elements but when the element has height: auto and width: 100% then this method fails to locate the element.

    Any idea how we can check for visibility of elements with the above mentioned properties.

  2. #2
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,642
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    Quote Originally Posted by Tarun81215 View Post
    I am trying to implement a custom wait method in our framework and using the VisibilityOfAllElements methods to ensure that selenium waits until the element becomes visible.
    Now this works fine for most of the elements but when the element has height: auto and width: 100% then this method fails to locate the element.

    Any idea how we can check for visibility of elements with the above mentioned properties.
    If you're getting NoSuchElement exceptions, you might want to recheck how your locating the element. VisibilityOfAllElements isn't a standard selenium binding method, you'll have to provide the source for further troubleshooting.
    David Lai
    SDET / Consultant
    LinkedIn profile

  3. #3
    Advanced Member
    Join Date
    Feb 2008
    Location
    Ahmedabad, India
    Posts
    550
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    this is bit weird solution but works everytime for me. Rather than waiting untill that element is visible go and change the CSS class of that element to none. and that element will be visible.

    Not a standard way to automate, however if nothing works, give it a try.
    GauranG Shah
    I don't make the software, Rather I make it better.
    My Blogs:
    All About Automation
    Spell Checker

 

 

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 © 2017 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 © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:34 PM.

Copyright BetaSoft Inc.