Skip to content

Commit

Permalink
Fix testid ddeterminatioono for scalar property
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Apr 10, 2024
1 parent 1add053 commit 233776a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ public By ParseScalar(Scalar scalar)
{
return new By { Method = By.ByMethod.Id, Value = value.Substring(3, value.Length - 3), Region = region };
}
else if (value.StartsWith("testid ", StringComparison.OrdinalIgnoreCase))
{
return new By { Method = By.ByMethod.TestId, Value = value.Substring(7, value.Length - 7), Region = region };
}
else
{
return new By { Method = By.ByMethod.None, Value = value, Region = region };
Expand Down

0 comments on commit 233776a

Please sign in to comment.