Skip to content

Commit 479ec65

Browse files
committed
Update the ReadMe
1 parent 293fd37 commit 479ec65

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,14 @@ Using ``--html=report.html`` gives you a fancy report of the name specified afte
314314
pytest my_test_suite.py --html=report.html
315315
```
316316

317+
![](https://cdn2.hubspot.net/hubfs/100006/images/PytestReport.png "Example Pytest Report")
318+
317319
You can also use ``--junitxml=report.xml`` to get an xml report instead. Jenkins can use this file to display better reporting for your tests.
318320

319321
```
320322
pytest my_test_suite.py --junitxml=report.xml
321323
```
322324

323-
![](https://cdn2.hubspot.net/hubfs/100006/images/PytestReport.png "Example Pytest Report")
324-
325325
#### **Nosetest Reports:**
326326

327327
The ``--report`` option gives you a fancy report after your test suite completes.
@@ -622,7 +622,7 @@ If the web page you're on already has jQuery loaded, you can start executing jQu
622622
You'd know this because the web page would contain something like the following in the HTML:
623623

624624
```html
625-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
625+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
626626
```
627627

628628
It's OK if you want to use jQuery on a page that doesn't have it loaded yet. To do so, run the following command first:
@@ -631,6 +631,8 @@ It's OK if you want to use jQuery on a page that doesn't have it loaded yet. To
631631
self.activate_jquery()
632632
```
633633

634+
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, use Firefox with SeleniumBase, which overrides the CSP to allow loading of any JS library.
635+
634636
Here are some examples of using jQuery in your scripts:
635637
```python
636638
self.execute_script('jQuery, window.scrollTo(0, 600)') # Scrolling the page

0 commit comments

Comments
 (0)