Skip to content

Commit 245b567

Browse files
committed
update topics index
1 parent 944d1fa commit 245b567

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

index.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -396,23 +396,6 @@ Projects should be done, tested, reviewed, and deployed to cloud.
396396
Presentation: describe your dev process and technology used. Not a project demo -- the class will use your cloud deployment and give feedback.
397397
</td>
398398
</tr>
399-
<!-- Final -->
400-
<!-- Lab Exam -->
401-
<tr valign="top">
402-
<td align="center" markdown="span">
403-
XX Dec
404-
</td>
405-
<td markdown="span">
406-
Written: 9:00-12:00 AM
407-
Coding: 13:00-16:00 PM
408-
*Dress Like a Programmer*
409-
</td>
410-
<td markdown="span">
411-
Programming exam will be to write a simple web application,
412-
with some info saved to a database. May have a separate problem on other topics we covered.
413-
[Additional details](review/web-dev-exam).
414-
</td>
415-
</tr>
416399
</table>
417400

418401
---

testing/Selenium-scraping.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1-
## Navigate to a Web Page
1+
"Page scraping" means to extract content from web pages.
2+
Its often used when the information you want is only available
3+
on web pages.
24

5+
These notes are the typical steps in doing page scraping
6+
with Selenium, but not a single example.
7+
8+
### Navigate to a Web Page
9+
10+
```python
311
driver.get("https://www.google.com")
12+
```
413

5-
## Find an element on the page
14+
### Find an element on the page
615

716
Suppose we want to find:
8-
```
17+
```html
918
<input type="text" id="input_username" name="username"
1019
placeholder="Type your name" />
1120
```
1221

1322
We can use:
1423

15-
```
24+
```python
1625
# find type id
1726
element = driver.find_element_by_id("input_username")
1827
# or find it by name
@@ -70,7 +79,7 @@ text - element.text
7079
## Don't Load Images (Make the Webdriver More Efficient)
7180

7281
For Firefox, use:
73-
```
82+
```python
7483
from selenium import webdriver
7584

7685
profile = webdriver.FirefoxProfile()

0 commit comments

Comments
 (0)