Files
bom-local-service/Services/Interfaces/ISelectorService.cs
T
alex ffd3636d1c Remove minutes ago parsing, use UTC timestamps directly
- Refactor TimeParsingService to parse time strings to UTC only
- Remove minutesAgo from RadarFrame and FrameMetadata models
- Update CaptureFramesStep to extract UTC timestamps directly
- Update CacheService to store/load ObservationTime instead of MinutesAgo
- Update BomRadarService to use AbsoluteObservationTime directly
- Remove all backward compatibility code for old cache folders
- Update documentation and test SPA to calculate minutes ago on client
- Fix step registration to register concrete types for DI resolution
- Fix hosted service registration to use reflection correctly
2025-12-23 21:52:42 +10:00

23 lines
743 B
C#

using BomLocalService.Models;
using BomLocalService.Services.Interfaces.Registration;
using Microsoft.Playwright;
namespace BomLocalService.Services.Interfaces;
/// <summary>
/// Service for finding page elements using configured selectors
/// </summary>
public interface ISelectorService : ISingletonService
{
/// <summary>
/// Finds an element using the configured selectors, trying each in order until one is found
/// </summary>
Task<ILocator?> FindElementAsync(IPage page, SelectorConfig config, CancellationToken cancellationToken = default);
/// <summary>
/// Gets a locator for the first selector (assumes element exists)
/// </summary>
ILocator GetLocator(IPage page, SelectorConfig config);
}