mirror of
https://github.com/alexhopeoconnor/bom-local-service.git
synced 2026-10-03 21:21:59 +10:00
- 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
23 lines
743 B
C#
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);
|
|
}
|
|
|