示例#1
0
            public void GoogleAnalitics_Article_ArticleShareClick_FaceBookTop()
            {
                var url         = _params["PostUrl"].ToString();
                var exJson      = _params["ExJson"];
                var ignor       = _params["Ignor"].AsBsonArray;
                var eventAction = "article share click";

                _browser.ProxyApi.NewHarPost();
                _browser.Navigate(url);
                PostPage postPage = new PostPage(_browser);

                postPage.ClickOnFacebookTopBtn();
                Thread.Sleep(1000);
                GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests);
                string          errors          = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor);

                Assert.True(string.IsNullOrEmpty(errors), errors);
            }