Skip to content

Commit 269e1f9

Browse files
committed
Add method: self.is_valid_url(url)
1 parent 94a3b9e commit 269e1f9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

help_docs/method_summary.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ self.assert_no_js_errors()
396396

397397
self.inspect_html()
398398

399+
self.is_valid_url(url)
400+
399401
self.is_chromium()
400402

401403
self.get_chrome_version()

seleniumbase/fixtures/base_case.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5244,6 +5244,10 @@ def inspect_html(self):
52445244
print(results)
52455245
return results
52465246

5247+
def is_valid_url(self, url):
5248+
""" Return True if the url is a valid url. """
5249+
return page_utils.is_valid_url(url)
5250+
52475251
def is_chromium(self):
52485252
""" Return True if the browser is Chrome, Edge, or Opera. """
52495253
self.__check_scope()

0 commit comments

Comments
 (0)