Skip to content

Commit

Permalink
Fix select in support package
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Dec 7, 2024
1 parent ba2b798 commit d6eb013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotnet/src/support/UI/SelectElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public void SelectByIndex(int index)

foreach (IWebElement option in this.Options)
{
if (option.GetDomProperty("index") == match)
if (option.GetDomAttribute("index") == match)
{
SetSelected(option, true);
return;
Expand Down Expand Up @@ -364,7 +364,7 @@ public void DeselectByIndex(int index)
string match = index.ToString(CultureInfo.InvariantCulture);
foreach (IWebElement option in this.Options)
{
if (match == option.GetDomProperty("index"))
if (match == option.GetDomAttribute("index"))
{
SetSelected(option, false);
return;
Expand Down

0 comments on commit d6eb013

Please sign in to comment.