GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
IWebElementExtension.cs
1// =============================================================================
2// GPAL - Generally Positive Automation Library
3// Copyright © 2026 Software Decisions, Inc. All rights reserved.
4//
5// This file is part of GPAL.
6// Licensed under the Business Source License 1.1
7//
8// Primary development, architecture, and vision by Michael B. Vederman,
9// CEO of Software Decisions, Inc., Texas.
10//
11// Internal development maintained privately.
12// Public releases appear on GitHub: https://github.com/SoftwareDecisionsInc/GPAL.
13//
14// See LICENSE for full terms, including Additional Use Grant.
15// =============================================================================
16
17using OpenQA.Selenium;
18using System;
19using System.Collections.Concurrent;
20using System.Collections.Generic;
21using System.Linq;
22using System.Text;
23using System.Threading.Tasks;
24
25// NOTE: not sure why this file was created and what it's used for. could be some iwebelement converter?
27{
28 [Obsolete]
29 public static class GPALElementExtension
30 {
31 private static readonly ConcurrentDictionary<GPALElement, int> nodeIdStorage = new ConcurrentDictionary<GPALElement, int>();
32
33 public static int NodeID(this GPALElement element)
34 {
35 return nodeIdStorage.TryGetValue(element, out int nodeId) ? nodeId : 0;
36 }
37
38 public static void NodeID(this GPALElement element, int value)
39 {
40 nodeIdStorage[element] = value;
41 }
42 }
43}
44