public void Find_Hidden() { page.DisplayNoneInput.Should.Exist(). DisplayNoneInput.Should.BeHidden(). HiddenInput.Should.Exist(). HiddenInput.Should.BeHidden(). CollapseInput.Should.Exist(). CollapseInput.Should.BeHidden(). TypeHiddenInput.Should.Exist(). TypeHiddenInput.Should.BeHidden(); Assert.That(page.FailDisplayNoneInput.Exists(SearchOptions.Hidden()), Is.True); }
public void Find_Hidden() { _page.DisplayNoneInput.Should.Exist(). DisplayNoneInput.Should.BeHidden(). HiddenInput.Should.Exist(). HiddenInput.Should.BeHidden(). CollapseInput.Should.Exist(). CollapseInput.Should.BeHidden(). Opacity0Input.Should.Exist(). Opacity0Input.Should.BeHidden(). TypeHiddenInput.Should.Exist(). TypeHiddenInput.Should.BeHidden(). TypeHiddenInputWithDeclaredDefinition.Should.Exist(). TypeHiddenInputWithDeclaredDefinition.Should.BeHidden(); Assert.That(_page.FailDisplayNoneInput.Exists(SearchOptions.Hidden()), Is.True); }
public void SearchFailureData_ToStringForNotMissingElement_ElementName_By_SearchTime_SearchOptions() { SearchFailureData data = new SearchFailureData { ElementName = "anchor", By = By.XPath(".//a"), SearchTime = TimeSpan.FromSeconds(1.5d), SearchOptions = SearchOptions.Hidden() }; string expected = $@"Able to locate hidden ""anchor"" element that should be missing: - By: XPath "".//a"" - Search time: {data.SearchTime.Value.ToShortIntervalString()} - Search options: {data.SearchOptions}"; Assert.That(data.ToStringForNotMissingElement(), Is.EqualTo(expected)); }