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 ca9602a commit 24153ecCopy full SHA for 24153ec
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