Skip to content

Commit 5398a93

Browse files
JunlinZhutimotiusmargo
authored andcommitted
Merged PR 2803772: UX improvements to UI Recorder
Changes include the following: 1) Add Application Insights to log telemetry events (Will add new Application Insights key before merge to master) 2) Show recorded xpath in tree view 3) Enable root session selection 4) UIXPath.lib return xpath instead of xml node 5) Tree node inspection Related work items: #18822570
1 parent 5dbf74d commit 5398a93

35 files changed

+3509
-1039
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props" Condition="Exists('packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{971BE3D2-1EFF-4660-A8A8-C1A52966572C}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>AbsoluteXPath</RootNamespace>
11+
<AssemblyName>AbsoluteXPath</AssemblyName>
12+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
15+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
16+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
17+
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
18+
<IsCodedUITest>False</IsCodedUITest>
19+
<TestProjectType>UnitTest</TestProjectType>
20+
<NuGetPackageImportStamp>
21+
</NuGetPackageImportStamp>
22+
</PropertyGroup>
23+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24+
<DebugSymbols>true</DebugSymbols>
25+
<DebugType>full</DebugType>
26+
<Optimize>false</Optimize>
27+
<OutputPath>bin\Debug\</OutputPath>
28+
<DefineConstants>DEBUG;TRACE</DefineConstants>
29+
<ErrorReport>prompt</ErrorReport>
30+
<WarningLevel>4</WarningLevel>
31+
</PropertyGroup>
32+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
33+
<DebugType>pdbonly</DebugType>
34+
<Optimize>true</Optimize>
35+
<OutputPath>bin\Release\</OutputPath>
36+
<DefineConstants>TRACE</DefineConstants>
37+
<ErrorReport>prompt</ErrorReport>
38+
<WarningLevel>4</WarningLevel>
39+
</PropertyGroup>
40+
<ItemGroup>
41+
<Reference Include="appium-dotnet-driver">
42+
<HintPath>packages\Appium.WebDriver.4.0.0.1-beta\lib\net45\appium-dotnet-driver.dll</HintPath>
43+
</Reference>
44+
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework">
45+
<HintPath>packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
46+
</Reference>
47+
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions">
48+
<HintPath>packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
49+
</Reference>
50+
<Reference Include="System" />
51+
<Reference Include="System.Core" />
52+
<Reference Include="WebDriver">
53+
<HintPath>packages\Selenium.WebDriver.3.11.2\lib\net45\WebDriver.dll</HintPath>
54+
</Reference>
55+
</ItemGroup>
56+
<ItemGroup>
57+
<Compile Include="..\WebDriverAPI\AppSessionBase\CommonTestSettings.cs">
58+
<Link>CommonTestSettings.cs</Link>
59+
</Compile>
60+
<Compile Include="Alarms.cs" />
61+
<Compile Include="Calculator.cs" />
62+
<Compile Include="ValidXPath.cs" />
63+
<Compile Include="SimpleAttributeExpression.cs" />
64+
<Compile Include="Properties\AssemblyInfo.cs" />
65+
<Compile Include="Notepad.cs" />
66+
<Compile Include="DesktopSession.cs" />
67+
</ItemGroup>
68+
<ItemGroup>
69+
<None Include="packages.config" />
70+
</ItemGroup>
71+
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
72+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
73+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
74+
<PropertyGroup>
75+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
76+
</PropertyGroup>
77+
<Error Condition="!Exists('packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props'))" />
78+
<Error Condition="!Exists('packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets'))" />
79+
</Target>
80+
<Import Project="packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets" Condition="Exists('packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets')" />
81+
</Project>

Tests/AbsoluteXPath/AbsoluteXPath.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28307.329
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AbsoluteXPath", "AbsoluteXPath.csproj", "{971BE3D2-1EFF-4660-A8A8-C1A52966572C}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{971BE3D2-1EFF-4660-A8A8-C1A52966572C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{971BE3D2-1EFF-4660-A8A8-C1A52966572C}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{971BE3D2-1EFF-4660-A8A8-C1A52966572C}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{971BE3D2-1EFF-4660-A8A8-C1A52966572C}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {4E2EBE62-05BC-42C6-8002-CB40A0D39472}
24+
EndGlobalSection
25+
EndGlobal

Tests/AbsoluteXPath/Alarms.cs

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
//******************************************************************************
2+
//
3+
// Copyright (c) 2019 Microsoft Corporation. All rights reserved.
4+
//
5+
// This code is licensed under the MIT License (MIT).
6+
//
7+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
10+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
11+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
12+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
13+
// THE SOFTWARE.
14+
//
15+
//******************************************************************************
16+
17+
using System;
18+
using Microsoft.VisualStudio.TestTools.UnitTesting;
19+
using OpenQA.Selenium;
20+
21+
namespace AbsoluteXPath
22+
{
23+
[TestClass]
24+
public class Alarms
25+
{
26+
[TestMethod]
27+
public void TestMethod1()
28+
{
29+
DesktopSession desktopSession = new DesktopSession();
30+
TimeSpan.FromSeconds(2);
31+
32+
bool bSuccess = false;
33+
34+
try
35+
{
36+
// LeftClick on Button "Type here to search" at (59,39)
37+
Console.WriteLine("LeftClick on Button \"Type here to search\" at (59,39)");
38+
string xpath_LeftClickButtonTypehereto_59_39 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Pane[@ClassName=\"Shell_TrayWnd\"][@Name=\"Taskbar\"]/Pane[@ClassName=\"TrayDummySearchControl\"]/Button[@ClassName=\"Button\"][@Name=\"Type here to search\"]";
39+
var winElem_LeftClickButtonTypehereto_59_39 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickButtonTypehereto_59_39);
40+
if (winElem_LeftClickButtonTypehereto_59_39 != null)
41+
{
42+
winElem_LeftClickButtonTypehereto_59_39.Click();
43+
}
44+
else
45+
{
46+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickButtonTypehereto_59_39}");
47+
return;
48+
}
49+
50+
51+
// KeyboardInput VirtualKeys=""alarms"Keys.Space + Keys.SpaceKeys.Shift + "7" + Keys.ShiftKeys.Space + Keys.Space"clock"" CapsLock=False NumLock=False ScrollLock=False
52+
Console.WriteLine("KeyboardInput VirtualKeys=\"\"alarms\"Keys.Space + Keys.SpaceKeys.Shift + \"7\" + Keys.ShiftKeys.Space + Keys.Space\"clock\"\" CapsLock=False NumLock=False ScrollLock=False");
53+
System.Threading.Thread.Sleep(1000);
54+
winElem_LeftClickButtonTypehereto_59_39.SendKeys("alarms");
55+
winElem_LeftClickButtonTypehereto_59_39.SendKeys(Keys.Space + Keys.Space);
56+
winElem_LeftClickButtonTypehereto_59_39.SendKeys(Keys.Shift + "7" + Keys.Shift);
57+
winElem_LeftClickButtonTypehereto_59_39.SendKeys(Keys.Space + Keys.Space);
58+
winElem_LeftClickButtonTypehereto_59_39.SendKeys("clock");
59+
60+
61+
// LeftClick on ListItem "Alarms &amp; Clock, Trusted Microsoft Store app, Press right to swit" at (126,13)
62+
Console.WriteLine("LeftClick on ListItem \"Alarms &amp; Clock, Trusted Microsoft Store app, Press right to swit\" at (126,13)");
63+
string xpath_LeftClickListItemAlarmsCloc_126_13 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"Windows.UI.Core.CoreWindow\"][@Name=\"Cortana\"]/Pane[@ClassName=\"WebView\"][@Name=\"Bing\"]/Pane[@Name=\"Bing\"]/List[@Name=\"Results\"][@AutomationId=\"suggestionsList\"]/ListItem[starts-with(@Name,\"Alarms &amp; Clock, Trusted Microsoft Store app, Press right to swit\")][starts-with(@AutomationId,\"id_\")]";
64+
var winElem_LeftClickListItemAlarmsCloc_126_13 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickListItemAlarmsCloc_126_13);
65+
if (winElem_LeftClickListItemAlarmsCloc_126_13 != null)
66+
{
67+
winElem_LeftClickListItemAlarmsCloc_126_13.Click();
68+
}
69+
else
70+
{
71+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickListItemAlarmsCloc_126_13}");
72+
return;
73+
}
74+
75+
76+
// LeftClick on ListItem "Alarm" at (56,17)
77+
Console.WriteLine("LeftClick on ListItem \"Alarm\" at (56,17)");
78+
string xpath_LeftClickListItemAlarm_56_17 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"ApplicationFrameWindow\"][@Name=\"Alarms &amp; Clock\"]/Window[@ClassName=\"Windows.UI.Core.CoreWindow\"][@Name=\"Alarms &amp; Clock\"]/List[@AutomationId=\"TopNavMenuItemsHost\"]/ListItem[@Name=\"Alarm\"][@AutomationId=\"AlarmButton\"]";
79+
var winElem_LeftClickListItemAlarm_56_17 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickListItemAlarm_56_17);
80+
if (winElem_LeftClickListItemAlarm_56_17 != null)
81+
{
82+
winElem_LeftClickListItemAlarm_56_17.Click();
83+
}
84+
else
85+
{
86+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickListItemAlarm_56_17}");
87+
return;
88+
}
89+
90+
91+
// LeftClick on ListItem "Clock" at (54,10)
92+
Console.WriteLine("LeftClick on ListItem \"Clock\" at (54,10)");
93+
string xpath_LeftClickListItemClock_54_10 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"ApplicationFrameWindow\"][@Name=\"Alarms &amp; Clock\"]/Window[@ClassName=\"Windows.UI.Core.CoreWindow\"][@Name=\"Alarms &amp; Clock\"]/List[@AutomationId=\"TopNavMenuItemsHost\"]/ListItem[@Name=\"Clock\"][@AutomationId=\"ClockButton\"]";
94+
var winElem_LeftClickListItemClock_54_10 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickListItemClock_54_10);
95+
if (winElem_LeftClickListItemClock_54_10 != null)
96+
{
97+
winElem_LeftClickListItemClock_54_10.Click();
98+
}
99+
else
100+
{
101+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickListItemClock_54_10}");
102+
return;
103+
}
104+
105+
106+
// LeftClick on ListItem "Timer" at (56,21)
107+
Console.WriteLine("LeftClick on ListItem \"Timer\" at (56,21)");
108+
string xpath_LeftClickListItemTimer_56_21 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"ApplicationFrameWindow\"][@Name=\"Alarms &amp; Clock\"]/Window[@ClassName=\"Windows.UI.Core.CoreWindow\"][@Name=\"Alarms &amp; Clock\"]/List[@AutomationId=\"TopNavMenuItemsHost\"]/ListItem[@Name=\"Timer\"][@AutomationId=\"TimerButton\"]";
109+
var winElem_LeftClickListItemTimer_56_21 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickListItemTimer_56_21);
110+
if (winElem_LeftClickListItemTimer_56_21 != null)
111+
{
112+
winElem_LeftClickListItemTimer_56_21.Click();
113+
}
114+
else
115+
{
116+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickListItemTimer_56_21}");
117+
return;
118+
}
119+
120+
121+
// LeftClick on ListItem "Stopwatch" at (71,24)
122+
Console.WriteLine("LeftClick on ListItem \"Stopwatch\" at (71,24)");
123+
string xpath_LeftClickListItemStopwatch_71_24 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"ApplicationFrameWindow\"][@Name=\"Alarms &amp; Clock\"]/Window[@ClassName=\"Windows.UI.Core.CoreWindow\"][@Name=\"Alarms &amp; Clock\"]/List[@AutomationId=\"TopNavMenuItemsHost\"]/ListItem[@Name=\"Stopwatch\"][@AutomationId=\"StopwatchButton\"]";
124+
var winElem_LeftClickListItemStopwatch_71_24 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickListItemStopwatch_71_24);
125+
if (winElem_LeftClickListItemStopwatch_71_24 != null)
126+
{
127+
winElem_LeftClickListItemStopwatch_71_24.Click();
128+
}
129+
else
130+
{
131+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickListItemStopwatch_71_24}");
132+
return;
133+
}
134+
135+
136+
// LeftClick on Button "Reset" at (16,23)
137+
Console.WriteLine("LeftClick on Button \"Reset\" at (16,23)");
138+
string xpath_LeftClickButtonReset_16_23 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"ApplicationFrameWindow\"][@Name=\"Alarms &amp; Clock\"]/Window[@ClassName=\"Windows.UI.Core.CoreWindow\"][@Name=\"Alarms &amp; Clock\"]/Button[@Name=\"Reset\"][@AutomationId=\"StopWatchResetButton\"]";
139+
var winElem_LeftClickButtonReset_16_23 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickButtonReset_16_23);
140+
if (winElem_LeftClickButtonReset_16_23 != null)
141+
{
142+
winElem_LeftClickButtonReset_16_23.Click();
143+
}
144+
else
145+
{
146+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickButtonReset_16_23}");
147+
return;
148+
}
149+
150+
151+
// LeftClick on Button "Start" at (40,25)
152+
Console.WriteLine("LeftClick on Button \"Start\" at (40,25)");
153+
string xpath_LeftClickButtonStart_40_25 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"ApplicationFrameWindow\"][@Name=\"Alarms &amp; Clock\"]/Window[@ClassName=\"Windows.UI.Core.CoreWindow\"][@Name=\"Alarms &amp; Clock\"]/Button[@Name=\"Start\"][@AutomationId=\"StopwatchPlayPauseButton\"]";
154+
var winElem_LeftClickButtonStart_40_25 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickButtonStart_40_25);
155+
if (winElem_LeftClickButtonStart_40_25 != null)
156+
{
157+
winElem_LeftClickButtonStart_40_25.Click();
158+
}
159+
else
160+
{
161+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickButtonStart_40_25}");
162+
return;
163+
}
164+
165+
166+
// LeftClick on Button "Pause" at (34,28)
167+
Console.WriteLine("LeftClick on Button \"Pause\" at (34,28)");
168+
string xpath_LeftClickButtonPause_34_28 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"ApplicationFrameWindow\"][@Name=\"Alarms &amp; Clock\"]/Window[@ClassName=\"Windows.UI.Core.CoreWindow\"][@Name=\"Alarms &amp; Clock\"]/Button[@Name=\"Pause\"][@AutomationId=\"StopwatchPlayPauseButton\"]";
169+
var winElem_LeftClickButtonPause_34_28 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickButtonPause_34_28);
170+
if (winElem_LeftClickButtonPause_34_28 != null)
171+
{
172+
winElem_LeftClickButtonPause_34_28.Click();
173+
}
174+
else
175+
{
176+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickButtonPause_34_28}");
177+
return;
178+
}
179+
180+
181+
// LeftClick on Button "Reset" at (25,25)
182+
Console.WriteLine("LeftClick on Button \"Reset\" at (25,25)");
183+
string xpath_LeftClickButtonReset_25_25 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"ApplicationFrameWindow\"][@Name=\"Alarms &amp; Clock\"]/Window[@ClassName=\"Windows.UI.Core.CoreWindow\"][@Name=\"Alarms &amp; Clock\"]/Button[@Name=\"Reset\"][@AutomationId=\"StopWatchResetButton\"]";
184+
var winElem_LeftClickButtonReset_25_25 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickButtonReset_25_25);
185+
if (winElem_LeftClickButtonReset_25_25 != null)
186+
{
187+
winElem_LeftClickButtonReset_25_25.Click();
188+
}
189+
else
190+
{
191+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickButtonReset_25_25}");
192+
return;
193+
}
194+
195+
196+
// LeftClick on Button "Close Alarms &amp; Clock" at (19,22)
197+
Console.WriteLine("LeftClick on Button \"Close Alarms &amp; Clock\" at (19,22)");
198+
string xpath_LeftClickButtonCloseAlarm_19_22 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"ApplicationFrameWindow\"][@Name=\"Alarms &amp; Clock\"]/Window[@Name=\"Alarms &amp; Clock\"][@AutomationId=\"TitleBar\"]/Button[@Name=\"Close Alarms &amp; Clock\"][@AutomationId=\"Close\"]";
199+
var winElem_LeftClickButtonCloseAlarm_19_22 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickButtonCloseAlarm_19_22);
200+
if (winElem_LeftClickButtonCloseAlarm_19_22 != null)
201+
{
202+
winElem_LeftClickButtonCloseAlarm_19_22.Click();
203+
}
204+
else
205+
{
206+
Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickButtonCloseAlarm_19_22}");
207+
return;
208+
}
209+
210+
bSuccess = true;
211+
}
212+
finally
213+
{
214+
Assert.AreEqual(bSuccess, true);
215+
}
216+
}
217+
}
218+
}

0 commit comments

Comments
 (0)