"Fossies" - the Fresh Open Source Software Archive

Member "selenium-selenium-4.8.1/dotnet/src/webdriver/Chromium/ChromiumAndroidOptions.cs" (17 Feb 2023, 2183 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 "ChromiumAndroidOptions.cs" see the Fossies "Dox" file reference documentation.

    1 // <copyright file="ChromiumAndroidOptions.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 // </copyright>
   18 
   19 using OpenQA.Selenium.Internal;
   20 
   21 namespace OpenQA.Selenium.Chromium
   22 {
   23     /// <summary>
   24     /// Generates the capabilities for automating Chromium applications on Android
   25     /// </summary>
   26     public class ChromiumAndroidOptions : AndroidOptions
   27     {
   28         private string androidProcess;
   29         private bool androidUseRunningApp;
   30 
   31         /// <summary>
   32         /// Initializes a new instance of the <see cref="ChromiumAndroidOptions"/> class.
   33         /// </summary>
   34         /// <param name="androidPackage"></param>
   35         public ChromiumAndroidOptions(string androidPackage) : base(androidPackage)
   36         {
   37         }
   38 
   39         /// <summary>
   40         /// Gets or sets a value indicating whether to use an already running app.
   41         /// </summary>
   42         public bool UseRunningApp
   43         {
   44             get { return this.androidUseRunningApp; }
   45             set { this.androidUseRunningApp = value; }
   46         }
   47 
   48         /// <summary>
   49         /// Gets or sets the process name of the Activity hosting the app. If not given, it
   50         /// is assumed to be the same as <see cref="AndroidActivity"/>.
   51         /// </summary>
   52         public string AndroidProcess
   53         {
   54             get { return this.androidProcess; }
   55             set { this.androidProcess = value; }
   56         }
   57     }
   58 }