public void GetSiteSourceNotInitiated()
        {
            IBrowserClient client = new PlatinumBrowserClient();

            client.DeInit();
            client.CloseBrowser();
            RequestException ex = Assert.Throws <RequestException>(() => client.CurrentSiteSource("0"));

            Assert.That(ex, Is.Not.Null);
        }
        public void GetSiteSourceInitiated()
        {
            IBrowserClient client = new PlatinumBrowserClient();

            client.InitBrowser();
            string pageId = client.CreatePage();

            client.Open(pageId, "http://allegro.pl");
            Assert.DoesNotThrow(() =>
            {
                string response = client.CurrentSiteSource(pageId);
                Assert.NotNull(response);
                Assert.True(response.Contains("<div"));
                client.ClosePage(pageId);
                client.CloseBrowser();
            });
        }