We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f49c1 commit a61db3aCopy full SHA for a61db3a
sbase/steps.py
@@ -650,3 +650,19 @@ def accept_alert(context):
650
def dismiss_alert(context):
651
sb = context.sb
652
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
667
+ substring = normalize_text(substring)
668
+ sb.assert_url_contains(substring)
0 commit comments