Example #1
0
def test_can_download_phantom_for_linux():
    delete_old_install()
    path = PhantomJsDriverManager(os_type="linux").install()
    assert path.endswith("phantomjs")
Example #2
0
def test_can_user_phantom_driver_from_cache():
    delete_old_install()
    PhantomJsDriverManager(os_type="linux").install()
    path = PhantomJsDriverManager(os_type="linux").install()
    assert path.endswith("phantomjs")
Example #3
0
def test_can_download_phantom_for_windows():
    delete_old_install()
    path = PhantomJsDriverManager(os_type="win").install()
    assert path.endswith("phantomjs.exe")