Skip to content

Commit 0aa8d26

Browse files
committed
NR/UITest: Simplify ById method
1 parent 50e1481 commit 0aa8d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NewsReader.UITest/UITest.Core/FindHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static class FindHelper
5656
MobilePlatform.Android => MobileBy.Id(automationId),
5757
MobilePlatform.IOS => MobileBy.Id(automationId),
5858
MobilePlatform.Windows => MobileBy.AccessibilityId(automationId),
59-
_ => throw new NotSupportedException($"Platform not supported: {driver.PlatformName}")
59+
var x => throw new NotSupportedException($"Platform not supported: {x}")
6060
};
6161

6262
private static AppiumElement WaitFind(Func<AppiumDriver, string, AppiumElement> func, AppiumDriver driver, string automationId, AppiumElement? owner = null)

0 commit comments

Comments
 (0)