Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FT] Create waits, clickable/not_clickable #249

Open
6 tasks
netzulo opened this issue Mar 19, 2019 · 0 comments
Open
6 tasks

[FT] Create waits, clickable/not_clickable #249

netzulo opened this issue Mar 19, 2019 · 0 comments
Labels
Awaiting-Triage Pending of be labeled from a Collaborator Feature New functionality proposal TODO

Comments

@netzulo
Copy link
Owner

netzulo commented Mar 19, 2019

Obtained Behaviour

Not have wait_clicable method for ControlBase and inherit classes

Expected Behaviour

  • Have wait_clicable method for ControlBase and inherit classes
  • Have wait_not_clicable method for ControlBase and inherit classes

Tests

  • Testcase for nav_base method ele_wait_clicable
  • Testcase for nav_base method ele_wait_not_clicable
  • Testcase for control_base method wait_clicable
  • Testcase for control_base method wait_not_clicable

Notes

class element_to_be_clickable(object):
    """ An Expectation for checking an element is visible and enabled such that
    you can click it."""
    def __init__(self, locator):
        self.locator = locator


    def __call__(self, driver):
        element = visibility_of_element_located(self.locator)(driver)
        if element and element.is_enabled():
            return element
        else:
            return False

For this HTML structure , elements always will be visible but not clicable.

<span style="opacity: 0.3">
  <button id="ember1771" data-container="body" data-trigger="hover" data-html="false" data-original-title="" class="ember-view confirm-btn"></button>
</span>
@netzulo netzulo self-assigned this Mar 19, 2019
@netzulo netzulo pinned this issue Mar 30, 2019
@netzulo netzulo added Feature New functionality proposal and removed Question labels Mar 30, 2019
@netzulo netzulo changed the title [QUESTION] Can have wait_clicable for controls ? [FEATURE] Create wais, clickable/not_clickable Mar 30, 2019
@netzulo netzulo changed the title [FEATURE] Create wais, clickable/not_clickable [FEATURE] Create waits, clickable/not_clickable Apr 1, 2019
@netzulo netzulo changed the title [FEATURE] Create waits, clickable/not_clickable [FT] Create waits, clickable/not_clickable Apr 6, 2019
@netzulo netzulo unpinned this issue Jan 28, 2020
@netzulo netzulo added Awaiting-Triage Pending of be labeled from a Collaborator and removed Testcase labels Feb 9, 2020
@netzulo netzulo removed their assignment Feb 9, 2020
@netzulo netzulo added the TODO label Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting-Triage Pending of be labeled from a Collaborator Feature New functionality proposal TODO
Projects
None yet
Development

No branches or pull requests

1 participant