You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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.)
797
799
798
800
🔵 Asserting Anything:
@@ -893,12 +895,10 @@ You'd know this because the web page would contain something like the following
893
895
self.activate_jquery()
894
896
```
895
897
896
-
🔵 Some websites have a restrictive [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) to prevent users from loading jQuery and other external libraries onto their websites. If you need to use jQuery or another JS library on such a website, add ``--disable-csp`` on the command-line.
897
-
898
898
🔵 Here are some examples of using jQuery in your scripts:
899
899
900
900
```python
901
-
self.execute_script('jQuery, window.scrollTo(0, 600)') # Scrolling the page
901
+
self.execute_script("jQuery, window.scrollTo(0, 600)") # Scrolling the page
902
902
903
903
self.execute_script("jQuery('#annoying-widget').hide()") # Hiding elements on a page
(Most of the above commands can be done directly with built-in SeleniumBase methods.)
921
921
922
+
🔵 Some websites have a restrictive [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) to prevent users from loading jQuery and other external libraries onto their websites. If you need to use jQuery or another JS library on such a website, add ``--disable-csp`` on the command-line.
923
+
922
924
🔵 In the next example, JavaScript creates a referral button on a page, which is then clicked:
923
925
924
926
```python
@@ -963,7 +965,7 @@ To flush out all the failed deferred asserts into a single exception, make sure
0 commit comments