class AdminSeleniumTestCase(SeleniumTestCase, StaticLiveServerTestCase):
Undocumented
Method | _assertOptionsValues |
Undocumented |
Method | admin_login |
Log in to the admin. |
Method | assertSelectedOptions |
Assert that the <SELECT> widget identified by selector has the selected options with the given values . |
Method | assertSelectOptions |
Assert that the <SELECT> widget identified by selector has the options with the given values . |
Method | deselect_option |
Deselect the <OPTION> with the value value inside the <SELECT> widget identified by the CSS selector selector . |
Method | has_css_class |
Return True if the element identified by selector has the CSS class klass . |
Method | select_option |
Select the <OPTION> with the value value inside the <SELECT> widget identified by the CSS selector selector . |
Method | wait_for |
Block until a CSS selector is found on the page. |
Method | wait_for_and_switch_to_popup |
Block until num_windows are present and are ready (usually 2, but can be overridden in the case of pop-ups opening other pop-ups). Switch the current window to the new pop-up. |
Method | wait_for_text |
Block until the text is found in the CSS selector. |
Method | wait_for_value |
Block until the value is found in the CSS selector. |
Method | wait_page_loaded |
Block until a new page has loaded and is ready. |
Method | wait_page_ready |
Block until the page is ready. |
Method | wait_until |
No summary |
Method | wait_until_invisible |
Block until the element described by the CSS selector is invisible. |
Method | wait_until_visible |
Block until the element described by the CSS selector is visible. |
Class Variable | available_apps |
Undocumented |
Inherited from SeleniumTestCase
:
Class Method | setUpClass |
Undocumented |
Class Method | _tearDownClassInternal |
Undocumented |
Method | disable_implicit_wait |
Disable the default implicit wait. |
Class Variable | external_host |
Undocumented |
Class Variable | implicit_wait |
Undocumented |
Property | allowed_host |
Undocumented |
Property | live_server_url |
Undocumented |
Inherited from LiveServerTestCase
(via SeleniumTestCase
):
Class Method | tearDownClass |
Undocumented |
Class Method | _create_server_thread |
Undocumented |
Class Method | _make_connections_override |
Undocumented |
Class Variable | host |
Undocumented |
Class Variable | port |
Undocumented |
Inherited from TransactionTestCase
(via SeleniumTestCase
, LiveServerTestCase
):
Class Method | _databases_names |
Undocumented |
Method | _fixture_setup |
Undocumented |
Method | _fixture_teardown |
Undocumented |
Method | _post_teardown |
No summary |
Method | _pre_setup |
No summary |
Method | _reset_sequences |
Undocumented |
Method | _should_reload_connections |
Undocumented |
Method | assertNumQueries |
Undocumented |
Method | assertQuerysetEqual |
Undocumented |
Class Variable | _disallowed_database_msg |
Undocumented |
Class Variable | databases |
Undocumented |
Class Variable | fixtures |
Undocumented |
Class Variable | reset_sequences |
Undocumented |
Class Variable | serialized_rollback |
Undocumented |
Inherited from SimpleTestCase
(via SeleniumTestCase
, LiveServerTestCase
, TransactionTestCase
):
Class Method | _add_databases_failures |
Undocumented |
Class Method | _remove_databases_failures |
Undocumented |
Class Method | _validate_databases |
Undocumented |
Method | __call__ |
Wrapper around default __call__ method to perform common Django test set up. This means that user-defined Test Cases aren't required to include a call to super().setUp(). |
Method | _assert_contains |
Undocumented |
Method | _assert_raises_or_warns_cm |
Undocumented |
Method | _assert_template_used |
Undocumented |
Method | _assertFooMessage |
Undocumented |
Method | _setup_and_call |
Perform the following in order: pre-setup, run test, post-teardown, skipping pre/post hooks if test is set to be skipped. |
Method | assertContains |
No summary |
Method | assertFieldOutput |
Assert that a form field behaves correctly with various inputs. |
Method | assertFormError |
Assert that a form used to render the response has a specific field error. |
Method | assertFormsetError |
Assert that a formset used to render the response has a specific error. |
Method | assertHTMLEqual |
Assert that two HTML snippets are semantically the same. Whitespace in most cases is ignored, and attribute ordering is not significant. The arguments must be valid HTML. |
Method | assertHTMLNotEqual |
Assert that two HTML snippets are not semantically equivalent. |
Method | assertInHTML |
Undocumented |
Method | assertJSONEqual |
Assert that the JSON fragments raw and expected_data are equal. Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library. |
Method | assertJSONNotEqual |
Assert that the JSON fragments raw and expected_data are not equal. Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library. |
Method | assertNoLogs |
Assert no messages are logged on the logger, with at least the given level. |
Method | assertNotContains |
Assert that a response indicates that some content was retrieved successfully, (i.e., the HTTP status code was as expected) and that text doesn't occur in the content of the response. |
Method | assertRaisesMessage |
Assert that expected_message is found in the message of a raised exception. |
Method | assertRedirects |
Assert that a response redirected to a specific URL and that the redirect URL can be loaded. |
Method | assertTemplateNotUsed |
Assert that the template with the provided name was NOT used in rendering the response. Also usable as context manager. |
Method | assertTemplateUsed |
Assert that the template with the provided name was used in rendering the response. Also usable as context manager. |
Method | assertURLEqual |
Assert that two URLs are the same, ignoring the order of query string parameters except for parameters with the same name. |
Method | assertWarnsMessage |
Same as assertRaisesMessage but for assertWarns() instead of assertRaises(). |
Method | assertXMLEqual |
Assert that two XML snippets are semantically the same. Whitespace in most cases is ignored and attribute ordering is not significant. The arguments must be valid XML. |
Method | assertXMLNotEqual |
Assert that two XML snippets are not semantically equivalent. Whitespace in most cases is ignored and attribute ordering is not significant. The arguments must be valid XML. |
Method | debug |
Perform the same as __call__(), without catching the exception. |
Method | modify_settings |
A context manager that temporarily applies changes a list setting and reverts back to the original value when exiting the context. |
Method | settings |
A context manager that temporarily sets a setting and reverts to the original value when exiting the context. |
Class Variable | _disallowed_connection_methods |
Undocumented |
Class Variable | _modified_settings |
Undocumented |
Class Variable | _overridden_settings |
Undocumented |
Instance Variable | async_client |
Undocumented |
Instance Variable | client |
Undocumented |
Inherited from LiveServerTestCase
(via StaticLiveServerTestCase
):
Class Method | setUpClass |
Undocumented |
Class Method | tearDownClass |
Undocumented |
Class Method | _create_server_thread |
Undocumented |
Class Method | _make_connections_override |
Undocumented |
Class Method | _tearDownClassInternal |
Undocumented |
Class Variable | host |
Undocumented |
Class Variable | port |
Undocumented |
Property | allowed_host |
Undocumented |
Property | live_server_url |
Undocumented |
Inherited from TransactionTestCase
(via StaticLiveServerTestCase
, LiveServerTestCase
):
Class Method | _databases_names |
Undocumented |
Method | _fixture_setup |
Undocumented |
Method | _fixture_teardown |
Undocumented |
Method | _post_teardown |
No summary |
Method | _pre_setup |
No summary |
Method | _reset_sequences |
Undocumented |
Method | _should_reload_connections |
Undocumented |
Method | assertNumQueries |
Undocumented |
Method | assertQuerysetEqual |
Undocumented |
Class Variable | _disallowed_database_msg |
Undocumented |
Class Variable | databases |
Undocumented |
Class Variable | fixtures |
Undocumented |
Class Variable | reset_sequences |
Undocumented |
Class Variable | serialized_rollback |
Undocumented |
Inherited from SimpleTestCase
(via StaticLiveServerTestCase
, LiveServerTestCase
, TransactionTestCase
):
Class Method | _add_databases_failures |
Undocumented |
Class Method | _remove_databases_failures |
Undocumented |
Class Method | _validate_databases |
Undocumented |
Method | __call__ |
Wrapper around default __call__ method to perform common Django test set up. This means that user-defined Test Cases aren't required to include a call to super().setUp(). |
Method | _assert_contains |
Undocumented |
Method | _assert_raises_or_warns_cm |
Undocumented |
Method | _assert_template_used |
Undocumented |
Method | _assertFooMessage |
Undocumented |
Method | _setup_and_call |
Perform the following in order: pre-setup, run test, post-teardown, skipping pre/post hooks if test is set to be skipped. |
Method | assertContains |
No summary |
Method | assertFieldOutput |
Assert that a form field behaves correctly with various inputs. |
Method | assertFormError |
Assert that a form used to render the response has a specific field error. |
Method | assertFormsetError |
Assert that a formset used to render the response has a specific error. |
Method | assertHTMLEqual |
Assert that two HTML snippets are semantically the same. Whitespace in most cases is ignored, and attribute ordering is not significant. The arguments must be valid HTML. |
Method | assertHTMLNotEqual |
Assert that two HTML snippets are not semantically equivalent. |
Method | assertInHTML |
Undocumented |
Method | assertJSONEqual |
Assert that the JSON fragments raw and expected_data are equal. Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library. |
Method | assertJSONNotEqual |
Assert that the JSON fragments raw and expected_data are not equal. Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library. |
Method | assertNoLogs |
Assert no messages are logged on the logger, with at least the given level. |
Method | assertNotContains |
Assert that a response indicates that some content was retrieved successfully, (i.e., the HTTP status code was as expected) and that text doesn't occur in the content of the response. |
Method | assertRaisesMessage |
Assert that expected_message is found in the message of a raised exception. |
Method | assertRedirects |
Assert that a response redirected to a specific URL and that the redirect URL can be loaded. |
Method | assertTemplateNotUsed |
Assert that the template with the provided name was NOT used in rendering the response. Also usable as context manager. |
Method | assertTemplateUsed |
Assert that the template with the provided name was used in rendering the response. Also usable as context manager. |
Method | assertURLEqual |
Assert that two URLs are the same, ignoring the order of query string parameters except for parameters with the same name. |
Method | assertWarnsMessage |
Same as assertRaisesMessage but for assertWarns() instead of assertRaises(). |
Method | assertXMLEqual |
Assert that two XML snippets are semantically the same. Whitespace in most cases is ignored and attribute ordering is not significant. The arguments must be valid XML. |
Method | assertXMLNotEqual |
Assert that two XML snippets are not semantically equivalent. Whitespace in most cases is ignored and attribute ordering is not significant. The arguments must be valid XML. |
Method | debug |
Perform the same as __call__(), without catching the exception. |
Method | modify_settings |
A context manager that temporarily applies changes a list setting and reverts back to the original value when exiting the context. |
Method | settings |
A context manager that temporarily sets a setting and reverts to the original value when exiting the context. |
Class Variable | _disallowed_connection_methods |
Undocumented |
Class Variable | _modified_settings |
Undocumented |
Class Variable | _overridden_settings |
Undocumented |
Instance Variable | async_client |
Undocumented |
Instance Variable | client |
Undocumented |
selector
has the
selected options with the given values
.selector
has the
options with the given values
.value
inside the <SELECT> widget
identified by the CSS selector selector
.selector
has the CSS class
klass
.value
inside the <SELECT> widget
identified by the CSS selector selector
.num_windows
are present and are ready (usually 2, but can
be overridden in the case of pop-ups opening other pop-ups). Switch the
current window to the new pop-up.