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
(You may need to reopen the MAC Finder window to see changes from that.)
153
153
154
154
155
-
#### **Step 4:** Verify that Selenium and Chromedriver were successfully installed by checking inside a python command prompt
155
+
#### **Step 4:** Verify that Selenium and Chromedriver were successfully installed by checking inside a python command prompt. (NOTE: xkcd is a webcomic)
#### **Step 5:** Verify that SeleniumBase was successfully installed by running example tests
167
+
#### **Step 5:** Verify that SeleniumBase was successfully installed by running the example test
168
168
169
-
You can verify the installation of SeleniumBase by writing a simple script to perform basic actions such as navigating to a web page, clicking, waiting for page elements to appear, typing in text, scraping text on a page, and verifying text. (Copy/paste the following code into a new file called "my_first_test.py"). This may be a good time to read up on css selectors. If you use Chrome, you can right-click on a page and select "Inspect Element" to see the details you need to create such a script. At a quick glance, dots are for class names and pound signs are for IDs.
169
+
You can verify the installation of SeleniumBase by running a simple script to perform basic actions such as navigating to a web page, clicking, waiting for page elements to appear, typing in text, scraping text on a page, and verifying text. This may be a good time to read up on CSS selectors. If you use Chrome, you can right-click on a page and select "Inspect Element" to see the details you need to create such a script. With CSS selectors, dots represent class names and pound signs represent IDs.
170
170
171
171
```python
172
172
from seleniumbase import BaseCase
@@ -179,17 +179,16 @@ class MyTestClass(BaseCase):
179
179
self.click('a[rel="license"]')
180
180
text =self.wait_for_element_visible('center').text
181
181
self.assertTrue("reuse any of my drawings"in text)
182
-
self.assertTrue("You can use them freely"in text)
183
182
self.open("http://xkcd.com/1481/")
184
183
self.click_link_text('Blag')
185
-
self.wait_for_text_visible("The blag of the webcomic", "#site-description")
0 commit comments