Skip to content

Add keyword Wait Until Element Visible #174

Closed

Description

@ombre42

Sometimes the element you want to interact with is already present in the DOM, but hidden via CSS, etc. If you try to interact with it you receive a ElementNotVisibleException. Having this keyword would make syncing with the application easier.

We have used an implementation of this keyword in a custom library, but I believe that the use case mentioned is common enough to warrant adding this to Selenium2Library.

Activity

  1. ombre42 commented on Feb 27, 2013

    @ombre42
    ContributorAuthor

    Forgot to mention -- I can implement if this enhancement request is accepted.

  2. MarkusBernhardt commented on Mar 2, 2013

    @MarkusBernhardt

    Our application is heavily using AJAX.
    So we need much more waiting keywords.
    Would it be possible to add a set of new keywords.
    If ok I could provide implementations.

    Element Should Be Clickable
    Element Should Not Be Clickable
    Element Should Be Selected
    Element Should Not Be Selected
    Element Should Not Contain
    Element Text Should Not Be
    Wait Until Element Is Clickable
    Wait Until Element Is Not Clickable
    Wait Until Element Is Selected
    Wait Until Element Is Not Selected
    Wait Until Element Is Visible
    Wait Until Element Is Not Visible
    Wait Until Page Not Contains
    Wait Until Page Not Contains Element
    Wait Until Title Is
    Wait Until Title Is Not
    Wait Until Title Contains
    Wait Until Title Not Contains

  3. emanlove commented on Mar 2, 2013

    @emanlove
    Member

    @ombre42 go ahead an implement a fix and test for those changes.

  4. MarkusBernhardt commented on Mar 4, 2013

    @MarkusBernhardt

    I have implemented all those keywords in
    https://github.com/MarkusBernhardt/robotframework-selenium2library

    Unittests are missing at the moment.

  5. hemakannan commented on Mar 15, 2013

    @hemakannan

    This would be very helpful. Just yesterday I was thinking it would be great to have this. Does this fall under the regular build you guys have ?

  6. ombre42 commented on Mar 15, 2013

    @ombre42
    ContributorAuthor

    @hemakannan - Not yet. My pull request awaiting approval.

  7. jrkoiter commented on May 7, 2013

    @jrkoiter

    I'm also in need for these keywords. Especially "Wait Until Element Is [Not] Visible". Is this going to be released anytime soon?

  8. MarkusBernhardt commented on May 8, 2013

    @MarkusBernhardt

    Hi,

    I have forked the python Selenium2Library some time ago and back ported those keywords.

    Could you try the library from:
    https://github.com/MarkusBernhardt/robotframework-selenium2library

    Please give feedback if you were successful.

    Cheers,
    Markus

  9. jrkoiter commented on May 16, 2013

    @jrkoiter

    I'm currently working around this lack of "wait related" keywords like this:

    Wait For Condition          return window.document.getElementById('someElementId').style.visibility != "visible"
    
  10. ghost assigned on Sep 2, 2013
  11. emanlove commented on Sep 2, 2013

    @emanlove
    Member

    Fixed under Selenium2Library version 1.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions