MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / FindDeviceById

Method FindDeviceById

dotnet/src/webdriver/Interactions/Actions.cs:129–144  ·  view source on GitHub ↗
(string? name)

Source from the content-addressed store, hash-verified

127 }
128
129 private InputDevice? FindDeviceById(string? name)
130 {
131 foreach (var sequence in this.actionBuilder.ToActionSequenceList())
132 {
133 Dictionary<string, object> actions = sequence.ToDictionary();
134
135 string id = (string)actions["id"];
136
137 if (id == name)
138 {
139 return sequence.InputDevice;
140 }
141 }
142
143 return null;
144 }
145
146 /// <summary>
147 /// Gets the active pointer device for this Actions class.

Callers

nothing calls this directly

Calls 2

ToActionSequenceListMethod · 0.80
ToDictionaryMethod · 0.45

Tested by

no test coverage detected