samedi 5 septembre 2020

PhantomJSDriver gives fully loaded page after angularjs data binding but in server using proxy it gives page before binding data

Please let me know if any code changes need to be done. Page html is downloaded after binding data but in server gives html without binding. server is using proxy.

    Proxy proxy = new Proxy();
            proxy.HttpProxy = string.Format("XXXXXXXXXX");
            var service = PhantomJSDriverService.CreateDefaultService();

            service.ProxyType = "http";
            service.Proxy = proxy.HttpProxy;
            service.IgnoreSslErrors = true;
            service.IPAddress = "XXXXXXXXXXXXXXXX";
            //service.Port = 3128;
            service.HostName = "webpreprod.ooredoo.com.kw";
            //IWebDriver driver = new PhantomJSDriver();
            var driver = new PhantomJSDriver(service);
            
            driver.Url = URL;
            driver.Navigate();



Aucun commentaire:

Enregistrer un commentaire