diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/IBaseNavigationInfo.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/IBaseNavigationInfo.cs new file mode 100644 index 0000000000000..dd7ff37e4be23 --- /dev/null +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/IBaseNavigationInfo.cs @@ -0,0 +1,33 @@ +// +// Licensed to the Software Freedom Conservancy (SFC) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The SFC licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// + +using System; + +namespace OpenQA.Selenium.BiDi.BrowsingContext; + +public interface IBaseNavigationInfo +{ + BrowsingContext Context { get; } + + Navigation? Navigation { get; } + + DateTimeOffset Timestamp { get; } + + string Url { get; } +} diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/NavigationInfo.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/NavigationInfo.cs index 91d6a589e7370..25e994a11eedc 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/NavigationInfo.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/NavigationInfo.cs @@ -22,4 +22,4 @@ namespace OpenQA.Selenium.BiDi.BrowsingContext; public sealed record NavigationInfo(BiDi BiDi, BrowsingContext Context, Navigation? Navigation, DateTimeOffset Timestamp, string Url) - : BrowsingContextEventArgs(BiDi, Context); + : BrowsingContextEventArgs(BiDi, Context), IBaseNavigationInfo;