From 45e078775a78de5a6999f7c8c27423181af2838d Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Sun, 31 Oct 2021 10:28:14 -0400 Subject: [PATCH] Docs update: Open external links in new tabs --- README.md | 18 +++++++++--------- help_docs/recorder_mode.md | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index dd2d37ed..26af1976 100755 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@

SeleniumBase

-

Better web testing with Selenium and pytest.

+

Better web testing with Selenium and pytest.

-Latest Release on GitHub +Latest Release on GitHub Latest Release on PyPI SeleniumBase.io Docs -SeleniumBase GitHub Actions +SeleniumBase GitHub Actions SeleniumBase

@@ -918,11 +918,11 @@ pytest --reruns=1 --reruns-delay=1

https://github.com/mdmintz

-
Join the chat!
Tested with SeleniumBase
-SeleniumBase.io Docs
SeleniumBase PyPI downloads SeleniumBase Twitter followers
+
Join the chat!
Tested with SeleniumBase
+SeleniumBase.io Docs
SeleniumBase PyPI downloads SeleniumBase Twitter followers

SeleniumBase on GitHub -SeleniumBase on Gitter -SeleniumBase on Twitter -SeleniumBase on Instagram -SeleniumBase on Facebook

+SeleniumBase on Gitter +SeleniumBase on Twitter +SeleniumBase on Instagram +SeleniumBase on Facebook

diff --git a/help_docs/recorder_mode.md b/help_docs/recorder_mode.md index 50d745ec..009472ce 100755 --- a/help_docs/recorder_mode.md +++ b/help_docs/recorder_mode.md @@ -92,7 +92,7 @@ pytest TEST_NAME.py --trace --rec -s 🔴 As an alternative to activating Recorder Mode with the --rec command-line arg, you can also call self.activate_recorder() from your tests. This is only useful for tests that stay on the same URL because the Recorder will turn off when leaving the page where you activated the Recorder. The reason for this is because the standard Recorder Mode functions as a Chrome extension (and persists wherever the browser goes), whereas the method call version of Recorder Mode only lives in the page where it was called. -🔴 (Note that same domain/origin is not the same as same URL. Example: https://xkcd.com/353/ and https://xkcd.com/1537/ are two different URLs with the same domain/origin. That means that both URLs will share the same sessionStorage data, and that any changes to sessionStorage from one URL will carry on to the sessionStorage of a different URL when the domain/origin is the same. If you want to find out a website's origin during a test, just call: self.get_origin(), which returns the value of window.location.origin from the browser's console.) +🔴 (Note that same domain/origin is not the same as same URL. Example: https://xkcd.com/353 and https://xkcd.com/1537 are two different URLs with the same domain/origin. That means that both URLs will share the same sessionStorage data, and that any changes to sessionStorage from one URL will carry on to the sessionStorage of a different URL when the domain/origin is the same. If you want to find out a website's origin during a test, just call: self.get_origin(), which returns the value of window.location.origin from the browser's console.) 🔴 Inside recorded tests, you might find the self.open_if_not_url(URL) method, which opens the URL given if the browser is not currently on that page. This is used as a method in recorded scripts when SeleniumBase detects that a browser action (such as a click) has brought the test to that page. This method not only prevents an extra page load if not needed, but it also lets people know what page the test went to after a browser action was performed.