Skip to content

Commit

Permalink
fix: C# / EnabledRegion -> EnabledFor (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
FriggaHel authored May 3, 2024
1 parent b0be12a commit 9871e38
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions visual-dotnet/SauceLabs.Visual/Models/SelectiveRegion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,49 +33,49 @@ private SelectiveRegion(Region region, DiffingOption? enableOnly, DiffingOption?
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion EnabledRegion(IWebElement element)
public static SelectiveRegion EnabledFor(IWebElement element)
{
return new SelectiveRegion(element, null, null);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion EnabledRegion(IWebElement element, DiffingOption flags)
public static SelectiveRegion EnabledFor(IWebElement element, DiffingOption flags)
{
return new SelectiveRegion(element, flags, null);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion EnabledRegion(Region region)
public static SelectiveRegion EnabledFor(Region region)
{
return new SelectiveRegion(region, DiffingOption.None, null);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion EnabledRegion(Region region, DiffingOption flags)
public static SelectiveRegion EnabledFor(Region region, DiffingOption flags)
{
return new SelectiveRegion(region, flags, null);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion DisabledRegion(IWebElement element)
public static SelectiveRegion DisabledFor(IWebElement element)
{
return new SelectiveRegion(element, null, DiffingOption.None);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion DisabledRegion(IWebElement element, DiffingOption flags)
public static SelectiveRegion DisabledFor(IWebElement element, DiffingOption flags)
{
return new SelectiveRegion(element, null, flags);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion DisabledRegion(Region region)
public static SelectiveRegion DisabledFor(Region region)
{
return new SelectiveRegion(region, null, DiffingOption.None);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion DisabledRegion(Region region, DiffingOption flags)
public static SelectiveRegion DisabledFor(Region region, DiffingOption flags)
{
return new SelectiveRegion(region, null, flags);
}
Expand Down

0 comments on commit 9871e38

Please sign in to comment.