Skip to content

Commit a61db3a

Browse files
committed
Update behave/BDD steps
1 parent 98f49c1 commit a61db3a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sbase/steps.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,3 +650,19 @@ def accept_alert(context):
650650
def dismiss_alert(context):
651651
sb = context.sb
652652
sb.dismiss_alert()
653+
654+
655+
@step("Assert URL '{url}'")
656+
@step('Assert URL "{url}"')
657+
def assert_url(context, url):
658+
sb = context.sb
659+
url = normalize_text(url)
660+
sb.assert_url(url)
661+
662+
663+
@step("Assert URL contains '{substring}'")
664+
@step('Assert URL contains "{substring}"')
665+
def assert_url_contains(context, substring):
666+
sb = context.sb
667+
substring = normalize_text(substring)
668+
sb.assert_url_contains(substring)

0 commit comments

Comments
 (0)