File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 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.)
Original file line number Diff line number Diff line change 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.' )
You can’t perform that action at this time.
0 commit comments