From 83a34364b39c38e40414b31a286bff9e3252cbaf Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Mon, 30 May 2016 16:57:46 -0400 Subject: [PATCH] Update comments --- seleniumbase/config/settings.py | 7 +++++++ seleniumbase/fixtures/page_utils.py | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/seleniumbase/config/settings.py b/seleniumbase/config/settings.py index a51a94bb..a103a93b 100755 --- a/seleniumbase/config/settings.py +++ b/seleniumbase/config/settings.py @@ -73,6 +73,13 @@ S3_SELENIUM_SECRET_KEY = "[S3 SECRET KEY]" # Default Email Credentials # (If tests send out emails, you can scan and verify them by using IMAP) +# Here's a list of imap strings for known email providers: +# - Gmail: imap.gmail.com +# - Outlook/Live: imap-mail.outlook.com +# - Yahoo Mail: imap.mail.yahoo.com +# - AT&T: imap.mail.att.net +# - Comcast: imap.comcast.net +# - Verizon: incoming.verizon.net EMAIL_USERNAME = "[TEST ACCOUNT GMAIL USERNAME]@gmail.com" EMAIL_PASSWORD = "[TEST ACCOUNT GMAIL PASSWORD]" EMAIL_IMAP_STRING = "imap.gmail.com" diff --git a/seleniumbase/fixtures/page_utils.py b/seleniumbase/fixtures/page_utils.py index 3efee5c1..70bcaa51 100755 --- a/seleniumbase/fixtures/page_utils.py +++ b/seleniumbase/fixtures/page_utils.py @@ -17,6 +17,12 @@ def jq_format(code): def get_domain_url(url): + """ + Use this to convert a url like this: + https://blog.xkcd.com/2014/07/22/what-if-book-tour/ + Into this: + https://blog.xkcd.com + """ url_header = url.split('://')[0] simple_url = url.split('://')[1] base_url = simple_url.split('/')[0]