Skip to content

Commit 48f9080

Browse files
authored
Update getRunTimeId
1 parent 22905e6 commit 48f9080

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/FlaUI.WebDriver/Controllers/SourceController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private void WriteElementToXml(XmlWriter writer, AutomationElement element, Syst
8383
WritePropertyAttribute(writer, "Name", element.Properties.Name);
8484
WritePropertyAttribute(writer, "Orientation", element.Properties.Orientation);
8585
WritePropertyAttribute(writer, "ProcessId", element.Properties.ProcessId);
86-
WritePropertyAttribute(writer, "RuntimeId", element.Properties.RuntimeId);
86+
WritePropertyAttribute(writer, "RuntimeId", Session.GetRuntimeId(element));
8787

8888
var bounds = element.BoundingRectangle;
8989
writer.WriteAttributeString("x", (bounds.X - rootBounds.X).ToString());

src/FlaUI.WebDriver/Session.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public void Dispose()
172172
App?.Dispose();
173173
}
174174

175-
private string? GetRuntimeId(AutomationElement element)
175+
public static string? GetRuntimeId(AutomationElement element)
176176
{
177177
if (!element.Properties.RuntimeId.IsSupported)
178178
{

0 commit comments

Comments
 (0)