@@ -70,11 +70,7 @@ def get_browser(
7070 f"Expected int for max_width and max_height, got { type (max_width )} and { type (max_height )} "
7171 )
7272
73- if driver == "phantomjs" :
74- if shutil .which ("phantomjs" ) is None :
75- raise EnvironmentError ("PhantomJS is not installed or not found in PATH" )
76- browser = webdriver .PhantomJS ()
77- elif driver == "firefox" :
73+ if driver == "firefox" :
7874 options = webdriver .FirefoxOptions ()
7975 options .add_argument ("--headless" )
8076 browser = webdriver .Firefox (options = options )
@@ -109,9 +105,7 @@ def main():
109105 parser = argparse .ArgumentParser ()
110106 parser .add_argument ("a" , type = Path , help = "Path to the first HTML file" )
111107 parser .add_argument ("b" , type = Path , help = "Path to the second HTML file" )
112- parser .add_argument (
113- "--driver" , choices = ["chrome" , "firefox" , "phantomjs" ], default = "firefox"
114- )
108+ parser .add_argument ("--driver" , choices = ["chrome" , "firefox" ], default = "firefox" )
115109 parser .add_argument ("--max-width" , default = 1000 )
116110 parser .add_argument ("--max-height" , default = 10000 )
117111 args = parser .parse_args ()
0 commit comments