Skip to content

Xpath selector in BaseCase.functions #129

@dickcarlee

Description

@dickcarlee

Hi @mdmintz , it's a perfect package!
I have met a question about BaseCase.functions, in most of functions, you check if the way of 'By' is 'page_utils.is_xpath_selector()' and that convenient, but this step isn't cover all of the functions, e.g: 'BaseCase.get_text()',
def get_text(self, selector, by=By.CSS_SELECTOR, timeout=settings.SMALL_TIMEOUT):
if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:
timeout = self._get_new_timeout(timeout)
self.wait_for_ready_state_complete()
time.sleep(0.01)
element = page_actions.wait_for_element_visible( self.driver, selector, by, timeout)
that's a little bit annoying.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions