Fix typos
This commit is contained in:
parent
90620377e4
commit
d26ee17b77
|
@ -292,7 +292,7 @@ nosetests [FILE_NAME.py]:[CLASS_NAME].[METHOD_NAME]
|
|||
<img src="https://img.shields.io/badge/Flaky Tests%3F-%20NO%21-11BBDD.svg" alt="NO MORE FLAKY TESTS!" />
|
||||
|
||||
✅ Automated/Manual Hybrid Mode:</h4>
|
||||
<p>SeleniumBase includes a solution called <b><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/masterqa/ReadMe.md">MasterQA</a></b>, which speeds up manual testing by having automation perform all the browser actions while the manual tester handles validatation.</p>
|
||||
<p>SeleniumBase includes a solution called <b><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/masterqa/ReadMe.md">MasterQA</a></b>, which speeds up manual testing by having automation perform all the browser actions while the manual tester handles validation.</p>
|
||||
|
||||
✅ Feature-Rich:
|
||||
<p>For a full list of SeleniumBase features, <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/features_list.md">Click Here</a>.</p>
|
||||
|
@ -670,7 +670,7 @@ text = self.get_text("header h2")
|
|||
attribute = self.get_attribute("#comic img", "title")
|
||||
```
|
||||
|
||||
🔵 Asserting existance of an element on a page within some number of seconds:
|
||||
🔵 Asserting existence of an element on a page within some number of seconds:
|
||||
|
||||
```python
|
||||
self.wait_for_element_present("div.my_class", timeout=10)
|
||||
|
@ -709,7 +709,7 @@ self.click('a[name*="partial_name"]')
|
|||
self.assert_text("Make it so!", "div#trek div.picard div.quotes")
|
||||
self.assert_text("Tea. Earl Grey. Hot.", "div#trek div.picard div.quotes", timeout=3)
|
||||
```
|
||||
(NOTE: ``self.find_text(TEXT, ELEMENT)`` and ``self.wait_for_text(TEXT, ELEMENT)`` also do this. For backwords compatibility, older method names were kept, but the default timeout may be different.)
|
||||
(NOTE: ``self.find_text(TEXT, ELEMENT)`` and ``self.wait_for_text(TEXT, ELEMENT)`` also do this. For backwards compatibility, older method names were kept, but the default timeout may be different.)
|
||||
|
||||
🔵 Asserting Anything:
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
|
||||
* <b>SeleniumBase</b> tests are run with <b>pytest</b>.
|
||||
* Chrome is the default browser if not specifed.
|
||||
* Chrome is the default browser if not specified.
|
||||
* During test failures, logs and screenshots from the latest test run are saved to the ``latest_logs/`` folder.
|
||||
* Example tests are located in <b>[SeleniumBase/examples/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples)</b>.
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ class OfflineTestClass(BaseCase):
|
|||
# Assert that the given SVG is visible on the page
|
||||
self.assert_element('svg[name="svgName"]')
|
||||
|
||||
# Verify that a slider control updates a progrss bar
|
||||
# Verify that a slider control updates a progress bar
|
||||
self.assert_element('progress[value="50"]')
|
||||
self.press_right_arrow("#myslider", times=5)
|
||||
self.assert_element('progress[value="100"]')
|
||||
|
|
|
@ -33,7 +33,7 @@ class MyTestClass(BaseCase):
|
|||
# Assert that the given SVG is visible on the page
|
||||
self.assert_element('svg[name="svgName"]')
|
||||
|
||||
# Verify that a slider control updates a progrss bar
|
||||
# Verify that a slider control updates a progress bar
|
||||
self.assert_element('progress[value="50"]')
|
||||
self.press_right_arrow("#myslider", times=5)
|
||||
self.assert_element('progress[value="100"]')
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
This is a mobile device test for Chromium-based browsers (such as MS Edge)
|
||||
Usage: pytest test_skype_site.py --mobile --browser=edge
|
||||
|
||||
Default mobile settings for User Agent and Device Metrics if not specifed:
|
||||
Default mobile settings for User Agent and Device Metrics if not specified:
|
||||
User Agent: --agent="Mozilla/5.0 (Linux; Android 9; Pixel 3 XL)"
|
||||
CSS Width, CSS Height, Pixel-Ratio: --metrics="411,731,3"
|
||||
"""
|
||||
|
|
|
@ -54,7 +54,7 @@ specified. Method calls and ``import`` lines get swapped.
|
|||
Both a language and an action must be specified.
|
||||
The ``-p`` action can be paired with one other action.
|
||||
When running with ``-c`` (or ``--copy``) the new file name
|
||||
will be the orginal name appended with an underscore
|
||||
will be the original name appended with an underscore
|
||||
plus the 2-letter language code of the new language.
|
||||
(Example: Translating ``test_1.py`` into Japanese with
|
||||
``-c`` will create a new file called ``test_1_ja.py``.)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h4> Here are some organizations that've used SeleniumBase:</h4>
|
||||
<h4> Here are some organizations that have used SeleniumBase:</h4>
|
||||
|
||||
* [HubSpot](https://www.hubspot.com/)
|
||||
* [Veracode](https://www.veracode.com/)
|
||||
|
@ -9,7 +9,7 @@
|
|||
* [MIT](https://web.mit.edu/)
|
||||
* [Harvard Medical School](https://hms.harvard.edu/)
|
||||
* [Mississippi State University](https://www.msstate.edu/)
|
||||
* [Queen's Univeristy](https://www.queensu.ca/)
|
||||
* [Queen's University](https://www.queensu.ca/)
|
||||
* [L1NNA Laboratory](https://l1nna.com/)
|
||||
* [First American](https://www.firstam.com/)
|
||||
* [StreamSets](https://streamsets.com/)
|
||||
|
|
|
@ -54,7 +54,7 @@ specified. Method calls and ``import`` lines get swapped.
|
|||
Both a language and an action must be specified.
|
||||
The ``-p`` action can be paired with one other action.
|
||||
When running with ``-c`` (or ``--copy``) the new file name
|
||||
will be the orginal name appended with an underscore
|
||||
will be the original name appended with an underscore
|
||||
plus the 2-letter language code of the new language.
|
||||
(Example: Translating ``test_1.py`` into Japanese with
|
||||
``-c`` will create a new file called ``test_1_ja.py``.)
|
||||
|
|
|
@ -33,7 +33,7 @@ class MyTestClass(BaseCase):
|
|||
# Assert that the given SVG is visible on the page
|
||||
self.assert_element('svg[name="svgName"]')
|
||||
|
||||
# Verify that a slider control updates a progrss bar
|
||||
# Verify that a slider control updates a progress bar
|
||||
self.assert_element('progress[value="50"]')
|
||||
self.press_right_arrow("#myslider", times=5)
|
||||
self.assert_element('progress[value="100"]')
|
||||
|
|
|
@ -48,7 +48,7 @@ Password: *********
|
|||
Here is the obfuscated password:
|
||||
$^*ENCRYPT=RXlYMSJWTz8HSwM=?&#$
|
||||
```
|
||||
(You can also use [unobfuscate.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/common/unobfuscate.py) to encrypt passwords without having them masked while typing them. Or you can use it to decrypt an obfuscated pasword.)
|
||||
(You can also use [unobfuscate.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/common/unobfuscate.py) to encrypt passwords without having them masked while typing them. Or you can use it to decrypt an obfuscated password.)
|
||||
|
||||
* Finally, in your tests you can now decrypt obfuscated passwords for use in login methods like this:
|
||||
```python
|
||||
|
|
|
@ -105,7 +105,7 @@ MASTERQA_WAIT_TIME_BEFORE_VERIFY = 0.5
|
|||
# If True, the automation will start in full-screen mode
|
||||
MASTERQA_START_IN_FULL_SCREEN_MODE = False
|
||||
|
||||
# The maximimum idle time allowed (in seconds) before timing out and exiting
|
||||
# The maximum idle time allowed (in seconds) before timing out and exiting
|
||||
MASTERQA_MAX_IDLE_TIME_BEFORE_QUIT = 600
|
||||
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ specified. Method calls and "import" lines get swapped.
|
|||
Both a language and an action must be specified.
|
||||
The ``-p`` action can be paired with one other action.
|
||||
When running with ``-c`` (or ``--copy``), the new file name
|
||||
will be the orginal name appended with an underscore
|
||||
will be the original name appended with an underscore
|
||||
plus the 2-letter language code of the new language.
|
||||
(Example: Translating "test_1.py" into Japanese with
|
||||
``-c`` will create a new file called "test_1_ja.py".)
|
||||
|
|
|
@ -246,7 +246,7 @@ def show_translate_usage():
|
|||
print(" Both a language and an action must be specified.")
|
||||
print(' The "-p" action can be paired with one other action.')
|
||||
print(' When running with "-c" (or "--copy"), the new file name')
|
||||
print(' will be the orginal name appended with an underscore')
|
||||
print(' will be the original name appended with an underscore')
|
||||
print(" plus the 2-letter language code of the new language.")
|
||||
print(' (Example: Translating "test_1.py" into Japanese with')
|
||||
print(' "-c" will create a new file called "test_1_ja.py".)')
|
||||
|
|
|
@ -73,7 +73,7 @@ class S3LoggingBucket(object):
|
|||
return "%s%s" % (self.bucket_url, file_name)
|
||||
|
||||
def save_uploaded_file_names(self, files):
|
||||
""" Keep a record of all file names that've been uploaded. Upload log
|
||||
""" Keep a record of all file names that have been uploaded. Upload log
|
||||
files related to each test after its execution. Once done, use
|
||||
already_uploaded_files to create an index file. """
|
||||
global already_uploaded_files
|
||||
|
|
|
@ -1757,7 +1757,7 @@ class BaseCase(unittest.TestCase):
|
|||
""" Brings driver control outside the current iframe.
|
||||
(If driver control is inside an iframe, the driver control
|
||||
will be set to one level above the current frame. If the driver
|
||||
control is not currenly in an iframe, nothing will happen.) """
|
||||
control is not currently in an iframe, nothing will happen.) """
|
||||
self.driver.switch_to.default_content()
|
||||
|
||||
def open_new_window(self, switch_to=True):
|
||||
|
@ -2665,7 +2665,7 @@ class BaseCase(unittest.TestCase):
|
|||
codec - The compression format for character encoding.
|
||||
(The default codec used by this method is 'utf-8'.)
|
||||
wrap - Replaces ' \n' with ' ' so that individual sentences
|
||||
from a PDF don't get broken up into seperate lines when
|
||||
from a PDF don't get broken up into separate lines when
|
||||
getting converted into text format.
|
||||
nav - If PDF is a URL, navigates to the URL in the browser first.
|
||||
(Not needed because the PDF will be downloaded anyway.)
|
||||
|
@ -2737,7 +2737,7 @@ class BaseCase(unittest.TestCase):
|
|||
codec - The compression format for character encoding.
|
||||
(The default codec used by this method is 'utf-8'.)
|
||||
wrap - Replaces ' \n' with ' ' so that individual sentences
|
||||
from a PDF don't get broken up into seperate lines when
|
||||
from a PDF don't get broken up into separate lines when
|
||||
getting converted into text format.
|
||||
nav - If PDF is a URL, navigates to the URL in the browser first.
|
||||
(Not needed because the PDF will be downloaded anyway.)
|
||||
|
@ -5364,7 +5364,7 @@ class BaseCase(unittest.TestCase):
|
|||
def wait_for_element_not_visible(self, selector, by=By.CSS_SELECTOR,
|
||||
timeout=None):
|
||||
""" Waits for an element to no longer be visible on a page.
|
||||
The element can be non-existant in the HTML or hidden on the page
|
||||
The element can be non-existent in the HTML or hidden on the page
|
||||
to qualify as not visible. """
|
||||
if not timeout:
|
||||
timeout = settings.LARGE_TIMEOUT
|
||||
|
|
|
@ -496,7 +496,7 @@ def pytest_addoption(parser):
|
|||
default=None,
|
||||
help="""Setting this overrides the default timeout
|
||||
by the multiplier when waiting for page elements.
|
||||
Unused when tests overide the default value.""")
|
||||
Unused when tests override the default value.""")
|
||||
for arg in sys.argv:
|
||||
if "--timeout=" in arg:
|
||||
raise Exception(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
The S3 Logging Plugin to upload all logs to the S3 bucket specifed.
|
||||
The S3 Logging Plugin to upload all logs to the S3 bucket specified.
|
||||
"""
|
||||
|
||||
import uuid
|
||||
|
|
|
@ -388,7 +388,7 @@ class SeleniumBrowser(Plugin):
|
|||
default=None,
|
||||
help="""Setting this overrides the default timeout
|
||||
by the multiplier when waiting for page elements.
|
||||
Unused when tests overide the default value.""")
|
||||
Unused when tests override the default value.""")
|
||||
|
||||
def configure(self, options, conf):
|
||||
super(SeleniumBrowser, self).configure(options, conf)
|
||||
|
|
|
@ -23,7 +23,7 @@ Output:
|
|||
Both a language and an action must be specified.
|
||||
The "-p" action can be paired with one other action.
|
||||
When running with "-c" (or "--copy"), the new file name
|
||||
will be the orginal name appended with an underscore
|
||||
will be the original name appended with an underscore
|
||||
plus the 2-letter language code of the new language.
|
||||
(Example: Translating "test_1.py" into Japanese with
|
||||
"-c" will create a new file called "test_1_ja.py".)
|
||||
|
@ -63,7 +63,7 @@ def invalid_run_command(msg=None):
|
|||
exp += " Both a language and an action must be specified.\n"
|
||||
exp += ' The "-p" action can be paired with one other action.\n'
|
||||
exp += ' When running with "-c" (or "--copy"), the new file name\n'
|
||||
exp += ' will be the orginal name appended with an underscore\n'
|
||||
exp += ' will be the original name appended with an underscore\n'
|
||||
exp += " plus the 2-letter language code of the new language.\n"
|
||||
exp += ' (Example: Translating "test_1.py" into Japanese with\n'
|
||||
exp += ' "-c" will create a new file called "test_1_ja.py".)\n'
|
||||
|
|
Loading…
Reference in New Issue