예제 #1
0
        public void CanLoadPageAndSearch()
        {
            _page.Navigate();

            var title = _page.GetTitle();

            title.Should().Be("Google");

            var searchBox = _page.GetSearchBox();

            searchBox.SendKeys("Hello Google");

            var value = searchBox.GetInputBoxValue();

            value.Should().Be("Hello Google");

            searchBox.Submit();

            var searchResultPageTitle = _page.GetTitle();

            searchResultPageTitle.Should().Be("Hello Google - Google Search");
        }