We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b787c commit be1ce37Copy full SHA for be1ce37
dotnet/src/support/UI/SelectElement.cs
@@ -247,7 +247,7 @@ public void SelectByIndex(int index)
247
248
foreach (IWebElement option in this.Options)
249
{
250
- if (option.GetAttribute("index") == match)
+ if (option.GetDomProperty("index") == match)
251
252
SetSelected(option, true);
253
return;
@@ -364,7 +364,7 @@ public void DeselectByIndex(int index)
364
string match = index.ToString(CultureInfo.InvariantCulture);
365
366
367
- if (match == option.GetAttribute("index"))
+ if (match == option.GetDomProperty("index"))
368
369
SetSelected(option, false);
370
0 commit comments