30 references to GetAttribute
System.Windows.Forms (2)
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
256get => GetAttribute("Name");
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (1)
114if (element.GetAttribute("name") == name)
System.Windows.Forms.Tests (28)
System\Windows\Forms\HtmlDocumentTests.cs (8)
844Assert.Equal("form1", collection[0].GetAttribute("id")); 846Assert.Equal("form2", collection[1].GetAttribute("id")); 880Assert.Equal("img1", collection[0].GetAttribute("id")); 882Assert.Equal("img2", collection[1].GetAttribute("id")); 1032Assert.Equal("link1", collection[0].GetAttribute("id")); 1034Assert.Equal("link2", collection[1].GetAttribute("id")); 1772Assert.Equal("form1", collection[0].GetAttribute("id")); 1774Assert.Equal("form2", collection[1].GetAttribute("id"));
System\Windows\Forms\HtmlElementTests.cs (20)
1849Assert.Empty(element.GetAttribute("NoSuchAttribute")); 1850Assert.Empty(element.GetAttribute("")); 1877Assert.Equal("id", element.GetAttribute("id")); 1878Assert.Equal("value", element.GetAttribute("customAttribute")); 1879Assert.Equal("value", element.GetAttribute("CUSTOMATTRIBUTE")); 1880Assert.Empty(element.GetAttribute("noValue")); 1881Assert.Empty(element.GetAttribute("NoSuchAttribute")); 1882Assert.Empty(element.GetAttribute("")); 1897Assert.Equal("id", element.GetAttribute("id")); 1898Assert.Equal("value", element.GetAttribute("customAttribute")); 1899Assert.Equal("value", element.GetAttribute("CUSTOMATTRIBUTE")); 1900Assert.Empty(element.GetAttribute("noValue")); 1901Assert.Empty(element.GetAttribute("NoSuchAttribute")); 1902Assert.Empty(element.GetAttribute("")); 1917Assert.Throws<ArgumentException>(() => element.GetAttribute(null)); 1937Assert.Equal("form1", collection[0].GetAttribute("id")); 1939Assert.Equal("form2", collection[1].GetAttribute("id")); 2449Assert.Equal(value, element.GetAttribute("customAttribute")); 2453Assert.Equal(value, element.GetAttribute("customAttribute")); 2457Assert.Equal("newValue", element.GetAttribute("customAttribute"));