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

            Assert.DoesNotThrow(() => { client.InitBrowser(); });
            client.CloseBrowser();
        }
        public void CloseBrowserInitiated()
        {
            IBrowserClient client = new PlatinumBrowserClient();

            client.InitBrowser();
            client.CloseBrowser();
        }
        public void RefreshPageBrowserInitiated()
        {
            IBrowserClient client = new PlatinumBrowserClient();

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

            client.RefreshPage(pageId);
            client.CloseBrowser();
        }
        public void CloseBrowserInitiatedAndPageOpened()
        {
            IBrowserClient client = new PlatinumBrowserClient();

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

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