Selenium/PhantomJS raises error

前端 未结 4 2100
谎友^
谎友^ 2020-12-15 10:55

I\'m trying to run PhantomJS driver in Python but I\'m getting error. I\'ve read that I should pass the whole path as an argument but it di

4条回答
  •  -上瘾入骨i
    2020-12-15 11:34

    For simplicity's sake place the executable in the same directory as your script:

    driver = webdriver.PhantomJS() # now there's no need for a path
    

提交回复
热议问题