(Feb-25-2017, 09:25 AM)darshan Wrote: 1. I installed Selenium successfully via cmd prompt with the command "pip install selenium" however how to install phantomJS?Download phantomjs-2.1.1-windows.zip
Make a folder under root C:\ eg
C:\phantom
Place the unzipped files also
phantomjs.exe
in that folder.In code:
driver = webdriver.PhantomJS(executable_path='C:/phantom/phantomjs') driver.set_window_size(1920,1080)