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

            client.ClosePage("0");
            client.CloseBrowser();
        }
        public void ClosePageInitiated()
        {
            IBrowserClient client = new PlatinumBrowserClient();

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

            client.Open(pageId, "https://google.pl");
            client.ClosePage(pageId);
            client.CloseBrowser();
        }
        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();
            });
        }