ClassSettings.WebSettings
Definition
Namespace:ArtOfTest.WebAii.Core
Assembly:ArtOfTest.WebAii.dll
Syntax:
[DataContract]
public class Settings.WebSettings
Inheritance: objectSettings.WebSettings
Constructors
WebSettings()
Declaration
public WebSettings()
WebSettings(BrowserType)
Create a new Settings object.
Declaration
public WebSettings(BrowserType defaultBrowser)
Parameters
defaultBrowser
The default browser to use.
WebSettings(BrowserType, string)
Create a new Settings object.
Declaration
public WebSettings(BrowserType defaultBrowser, string baseUrl)
Parameters
defaultBrowser
The default browser to use.
baseUrl
The baseUrl to use.
WebSettings(WebSettings)
Create a clone of the passed in settings
Declaration
public WebSettings(Settings.WebSettings settingsToClone)
Parameters
settingsToClone
WebSettings(WebSettingsConfigSectionHandler)
Create a new Settings object from a config section.
Declaration
public WebSettings(WebSettingsConfigSectionHandler sectionHandler)
Parameters
sectionHandler
WebSettingsConfigSectionHandler
The config section handler that contains the settings.
WebSettings(string)
Create a new Settings.Web object.
Declaration
public WebSettings(string baseUrl)
Parameters
baseUrl
The baseUrl to use
Properties
AspNetDevServerPhysicalPath
Gets the physical path
Declaration
[Browsable(false)]
public string AspNetDevServerPhysicalPath { get; }
Property Value
AspNetDevServerPort
Gets/Sets the AspNetDevServer (if used) port to use. If this is not set (-1) a random port will be generated each time the manager is created.
Declaration
[DataMember]
public int AspNetDevServerPort { get; set; }
Property Value
AutoCalibrateBrowsers
Gets or sets whether or not to automatically calibrate the installed browsers which are selected for execution of the testlist. Note: Open browser instances will be closed or killed Default is false.
Declaration
[DataMember]
public bool AutoCalibrateBrowsers { get; set; }
Property Value
BaseUrl
Gets/Sets the base url to use for all NavigateTo commands. When set NavigateTo will be used as relative url. The hierarchy will be local, then Test List, then Project defined BaseUrl.
Declaration
[DataMember]
public string BaseUrl { get; set; }
Property Value
Browser
Serves as a wrapper of the DefaultBrowser property.
Declaration
public BrowserExecutionType Browser { get; set; }
Property Value
ChromiumFirstInteractionDelay
Gets or Sets initial wait time after Chromium browsers navigation to a new URL.
Declaration
[Browsable(false)]
[DataMember]
public int ChromiumFirstInteractionDelay { get; set; }
Property Value
ClientMessageReceivedTimeout
Gets/Sets amount of time to wait for a CDP browser to process a message
Declaration
[DataMember]
[Browsable(false)]
public int ClientMessageReceivedTimeout { get; set; }
Property Value
DefaultBrowser
Gets/Sets a supported default browser type (IE,FireFox ...etc). Default is InternetExplorer.
Declaration
[Browsable(false)]
[DataMember]
public BrowserType DefaultBrowser { get; set; }
Property Value
EnableScriptLogging
Gets/Sets whether or not to enable script logging. Default is false.
Declaration
[DataMember]
public bool EnableScriptLogging { get; set; }
Property Value
EnableSilverlight
Gets/Sets whether or not to enable Silverlight automation. Default is false.
Declaration
[DataMember]
[Obsolete("Silverlight support has been deprecated!")]
[Browsable(false)]
public bool EnableSilverlight { get; set; }
Property Value
EnableUILessRequestViewing
Gets/Sets whether or not to allow debugging of UILess page requests using a UI browser like IE. Default is false.
Declaration
[DataMember]
public bool EnableUILessRequestViewing { get; set; }
Property Value
ExecutingBrowsers
Declaration
[Browsable(true)]
[DataMember]
public List<BrowserExecutionType> ExecutingBrowsers { get; set; }
Property Value
FirefoxMinimumJSClickDelay
Gets or Sets the minimum wait time after Firefox browser performs a JS click.
Declaration
[Browsable(false)]
[DataMember]
public int FirefoxMinimumJSClickDelay { get; set; }
Property Value
KillBrowserProcessOnClose
Gets or sets whether to make sure the browser process is killed when closing the browser. Note: Firefox is a single process browser. If you are using multiple browser instances and this setting is on, it will kill all open instances of Firefox when you close one of the instances. Default is false.
Declaration
[DataMember]
public bool KillBrowserProcessOnClose { get; set; }
Property Value
KillBrowsersBeforeStart
Kill all executing browser instances before test list starts. Does not affect remote execution runs.
Declaration
[DataMember]
public bool KillBrowsersBeforeStart { get; set; }
Property Value
LocalWebServer
Gets/Sets the local web server to use to serve pages. Default is None.
Declaration
[DataMember]
public LocalWebServerType LocalWebServer { get; set; }
Property Value
RecycleBrowser
When set to true, once instance of the browser will be launched and recycled through out the test bed and tests until Manager.Dispose is called.
Declaration
[DataMember]
public bool RecycleBrowser { get; set; }
Property Value
SilverlightApplicationPath
Gets/Sets the path from which to load a silverlight application
Declaration
[DataMember]
[Obsolete("Silverlight support has been deprecated!")]
[Browsable(false)]
public string SilverlightApplicationPath { get; set; }
Property Value
SilverlightConnectTimeout
Gets/Sets the Silverlight Application load timeout
Declaration
[DataMember]
[Obsolete("Silverlight support has been deprecated!")]
[Browsable(false)]
public int SilverlightConnectTimeout { get; set; }
Property Value
UseBrowserExtension
Specify if Chrome or Edge extension should be used to communicate with the browser. Browser extension support has been deprecated! This will always return false.
Declaration
[DataMember]
[Obsolete("Browser extension support has been deprecated! This will always return false.")]
[Browsable(false)]
public bool UseBrowserExtension { get; set; }
Property Value
UseHttpProxy
Gets/Sets whether or not to use the built-in http proxy during automation. Default is false.
Declaration
[DataMember]
public bool UseHttpProxy { get; set; }
Property Value
UseMultiBrowserExecution
Declaration
[Browsable(false)]
[DataMember]
public bool UseMultiBrowserExecution { get; set; }
Property Value
VerboseHttpProxy
Gets/Sets whether the HTTP proxy produces lots of tracing output. Default is false.
Declaration
[DataMember]
public bool VerboseHttpProxy { get; set; }
Property Value
WebAppPhysicalPath
Gets/Sets the physical path to the application to test when running under the ASP.NET development server. Default is string.empty.
Declaration
[DataMember]
public string WebAppPhysicalPath { get; set; }
Property Value
WebComponents
Enable Web Components. Default is true (supported).
Declaration
[Browsable(true)]
[DataMember]
public bool WebComponents { get; set; }
Property Value
WebKitExecutionDelay
Declaration
[Browsable(false)]
public int WebKitExecutionDelay { get; set; }
Property Value
Methods
PersistToConfigSection(WebSettingsConfigSectionHandler)
Persist current Settings to a section handler.
Declaration
public void PersistToConfigSection(WebSettingsConfigSectionHandler sectionHandler)
Parameters
sectionHandler
SetWebAppPhysicalBase(string)
Set the WebApp Physical base to be used when using relative WebAppPhysicalBase.
Declaration
public void SetWebAppPhysicalBase(string physicalBase)
Parameters
physicalBase
Physical app base
Validate()
Declaration
public void Validate()