public void BasicCheck_GetParent() { HtmlButton button = new HtmlButton(BasicTestPage); button.SearchProperties.Add(HtmlButton.PropertyNames.Id, "secondButton"); HtmlDiv div = new HtmlDiv(); CodedSelenium.UITestControl parent = button.GetParent(); div.CopyFrom(parent); div.Id.Should().Be("buttons"); }