Selenium Webdriver + PhantomJS remains at about:blank for a specific site

后端 未结 5 1470
星月不相逢
星月不相逢 2020-12-03 21:45

I am trying to use PhantomJS with Selenium Webdriver and got success but for a specific website I see that it does not navigate to the URL. I have tried it with both Python

5条回答
  •  伪装坚强ぢ
    2020-12-03 21:52

    Following is a complete code solution for c# -

    PhantomJSDriverService service = PhantomJSDriverService.CreateDefaultService();
    service.IgnoreSslErrors = true;
    service.LoadImages = false;
    service.ProxyType = "none";
    
    driver = new PhantomJSDriver(service);
    

提交回复
热议问题