Skip to content

Commit 8978380

Browse files
committed
Update a ReadMe
1 parent d442719 commit 8978380

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

help_docs/js_package_manager.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ self.add_js_link(js_link)
5656
self.add_js_link("https://cdn.jsdelivr.net/npm/intro.js@5.1.0/intro.min.js")
5757
```
5858

59-
<div>🟨 You can load any JS package this way as long as you know the URL.</div>
60-
61-
<p>🟨 If you're wondering how SeleniumBase does this, here's the full Python code from <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/js_utils.py">js_utils.py</a>, which uses WebDriver's <code>execute_script()</code> method for making JS calls after escaping quotes with backslashes as needed:</p>
59+
<p>🟨 If you're wondering how SeleniumBase does this, here's the code from <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/js_utils.py">js_utils.py</a> that loads JavaScript packages:</p>
6260

6361
```python
6462
def add_js_link(driver, js_link):
@@ -109,7 +107,7 @@ def add_css_link(driver, css_link):
109107
driver.execute_script(script_to_add_css % css_link)
110108
```
111109

112-
<div>🟨 Website tours are just one of the many uses of the JS Package Manager.</div>
110+
<div>🗺️ Website tours are just one of the many uses of the JS Package Manager.</div>
113111
<p><div>🛂 The following example shows the <a href="https://github.com/craftpip/jquery-confirm">JqueryConfirm</a> package loaded into a website for creating fancy dialog boxes:</div></p>
114112

115113
<img src="https://seleniumbase.github.io/cdn/img/emoji_sports_dialog.png" alt="SeleniumBase" width="480" />

0 commit comments

Comments
 (0)