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