No logging phantomjs
This commit is contained in:
parent
8b2920c296
commit
8a75f200ca
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ def browser():
|
||||||
try:
|
try:
|
||||||
from selenium import webdriver
|
from selenium import webdriver
|
||||||
print "Starting phantomjs..."
|
print "Starting phantomjs..."
|
||||||
browser = webdriver.PhantomJS(executable_path=PHANTOMJS_PATH)
|
browser = webdriver.PhantomJS(executable_path=PHANTOMJS_PATH, service_log_path=os.path.devnull)
|
||||||
print "Set window size..."
|
print "Set window size..."
|
||||||
browser.set_window_size(1400, 1000)
|
browser.set_window_size(1400, 1000)
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
|
|
Loading…
Reference in a new issue