Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #28 from Gagnavarslan/get-active-element
Browse files Browse the repository at this point in the history
get_active_element implemented
  • Loading branch information
sbernatsky authored Jun 25, 2019
2 parents a384053 + 3bfb3be commit 2b139d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#


__version__ = '0.2.9.7'
__version__ = '0.2.9.8'

DEVSERVER_PORT = 8120 # django devserver for internal acceptance tests

Expand Down
4 changes: 4 additions & 0 deletions src/sst/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,10 @@ def _match_text(elem, regex):
return bool(re.search(regex, text))


def get_active_element():
return _test.browser.switch_to.active_element


def get_elements(tag=None, css_class=None, id=None, text=None,
text_regex=None, **kwargs):
"""Return element objects.
Expand Down

0 comments on commit 2b139d2

Please sign in to comment.