Skip to content

Commit 813c616

Browse files
Finished with Chapter 11
1 parent 0025d86 commit 813c616

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
1535111475457 geckodriver INFO geckodriver 0.21.0
2+
1535111475529 geckodriver INFO Listening on 127.0.0.1:49357
3+
1535111476468 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.k2WhpEWNbcMO"
4+
Running Firefox as root in a regular user's session is not supported. ($HOME is /home/samrat which is owned by samrat.)
5+
1535111502417 geckodriver INFO geckodriver 0.21.0
6+
1535111502431 geckodriver INFO Listening on 127.0.0.1:56739
7+
1535111503441 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.12Q9d4SXk6ho"
8+
Running Firefox as root in a regular user's session is not supported. ($HOME is /home/samrat which is owned by samrat.)
9+
1535111510484 geckodriver INFO geckodriver 0.21.0
10+
1535111510498 geckodriver INFO Listening on 127.0.0.1:49867
11+
1535111511513 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.exX9Dx4xbf6B"
12+
Running Firefox as root in a regular user's session is not supported. ($HOME is /home/samrat which is owned by samrat.)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from selenium import webdriver
2+
3+
browser=webdriver.Firefox()
4+
browser.get('https://inventwithpython.com')
5+
try:
6+
elem=browser.find_element_by_class_name('bookcover')
7+
print('Found <%s> element with that class name!'%(elem.tag_name))
8+
except:
9+
print('Was not able to find an element by that name.')

0 commit comments

Comments
 (0)