"Fossies" - the Fresh Open Source Software Archive

Member "selenium-selenium-4.8.1/dotnet/src/webdriver/DevTools/v109/V109Domains.cs" (17 Feb 2023, 2669 Bytes) of package /linux/www/selenium-selenium-4.8.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C# source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "V109Domains.cs" see the Fossies "Dox" file reference documentation.

    1 // <copyright file="V109Domains.cs" company="WebDriver Committers">
    2 // Licensed to the Software Freedom Conservancy (SFC) under one
    3 // or more contributor license agreements. See the NOTICE file
    4 // distributed with this work for additional information
    5 // regarding copyright ownership. The SFC licenses this file
    6 // to you under the Apache License, Version 2.0 (the "License");
    7 // you may not use this file except in compliance with the License.
    8 // You may obtain a copy of the License at
    9 //
   10 //     http://www.apache.org/licenses/LICENSE-2.0
   11 //
   12 // Unless required by applicable law or agreed to in writing, software
   13 // distributed under the License is distributed on an "AS IS" BASIS,
   14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   15 // See the License for the specific language governing permissions and
   16 // limitations under the License.
   17 
   18 using System;
   19 using System.Collections.Generic;
   20 using System.Text;
   21 
   22 namespace OpenQA.Selenium.DevTools.V109
   23 {
   24     /// <summary>
   25     /// Class containing the domain implementation for version 109 of the DevTools Protocol.
   26     /// </summary>
   27     public class V109Domains : DevToolsDomains
   28     {
   29         private DevToolsSessionDomains domains;
   30 
   31         public V109Domains(DevToolsSession session)
   32         {
   33             this.domains = new DevToolsSessionDomains(session);
   34         }
   35 
   36         /// <summary>
   37         /// Gets the DevTools Protocol version for which this class is valid.
   38         /// </summary>
   39         public static int DevToolsVersion => 109;
   40 
   41         /// <summary>
   42         /// Gets the version-specific domains for the DevTools session. This value must be cast to a version specific type to be at all useful.
   43         /// </summary>
   44         public override DevTools.DevToolsSessionDomains VersionSpecificDomains => this.domains;
   45 
   46         /// <summary>
   47         /// Gets the object used for manipulating network information in the browser.
   48         /// </summary>
   49         public override DevTools.Network Network => new V109Network(domains.Network, domains.Fetch);
   50 
   51         /// <summary>
   52         /// Gets the object used for manipulating the browser's JavaScript execution.
   53         /// </summary>
   54         public override JavaScript JavaScript => new V109JavaScript(domains.Runtime, domains.Page);
   55 
   56         /// <summary>
   57         /// Gets the object used for manipulating DevTools Protocol targets.
   58         /// </summary>
   59         public override DevTools.Target Target => new V109Target(domains.Target);
   60 
   61         /// <summary>
   62         /// Gets the object used for manipulating the browser's logs.
   63         /// </summary>
   64         public override DevTools.Log Log => new V109Log(domains.Log);
   65     }
   66 }