For more information, see webviewOptions object.Īpplication user model ID of a Microsoft Edge app package to launch, for example _8wekyb3d8bbwe!MSEDGE. Required if the server has authentication enabled.Īn optional dictionary that can be used to configure the WebView2 environment when launching a WebView2 app. ![]() Optional user name to use when connecting to a Windows Device Portal server. Required if the server has authentication enabled. Optional password to use when connecting to a Windows Device Portal server. For more information, see Remote Debugging - Windows 10 devices. For examples, see the Preferences file in the user data folder of Microsoft Edge.Īn address of a Windows Device Portal server to connect to, in the form of hostname/ip:port, for example 127.0.0.1:50080. ![]() The preferences are only applied to the user profile in use. For more information, see perfLoggingPrefs object.Ī dictionary with each entry consisting of the name of the preference and the value. (Supported only on Linux.)Ī dictionary with either a value for deviceName, or values for deviceMetrics and userAgent.Īn optional dictionary that specifies performance logging preferences. The preferences are applied to the Local State file in the user data folder.ĭirectory to store Microsoft Edge minidumps. crx).Ī dictionary with each entry consisting of the name of the preference and the value. Each item in the list should be a base-64 encoded packed extension (. Avoid the - prefix for switches.Ī list of extensions to install on startup. List of Microsoft Edge command line switches to exclude that EdgeDriver by default passes when starting Microsoft Edge. If true, and the WebDriver local end doesn't close the session, EdgeDriver doesn't clean up the temporary user data folder used by the Microsoft Edge instance. If true, Microsoft Edge only quits if the WebDriver local end closes the session. If false, Microsoft Edge quits when the WebDriver service shuts down, even if the WebDriver local end hasn't closed the session. for example, /Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge).Īn address of a debugger server to which to connect, in the form of hostname/ip:port, for example 127.0.0.1:38947.ĭefault value = false. Path to the Microsoft Edge binary to use (on macOS, the path should be the actual binary, not just the app. To pass arguments to the browser process when launching a WebView2 app, use webviewOptions.additionalBrowserArguments instead. If you're launching a WebView2 app, then these arguments are passed to your app instead of the underlying Microsoft Edge browser process. Arguments with an associated value should be separated by an = sign (for example, ). List of command-line arguments to pass to the Microsoft Edge process on launch. ![]() In other languages, the capabilities are stored under the ms:edgeOptions dictionary in DesiredCapabilities. In some languages, the capabilities are implemented by the EdgeOptions class. Most Microsoft Edge-specific capabilities are exposed through the EdgeOptions object. This article only lists capabilities specific to Microsoft Edge. options.AddAdditionalEdgeOption("wdpAddress", "remotehost:50080") įor standard capabilities that EdgeDriver accepts, see Selenium documentation and the W3C WebDriver standard. For the full list of accepted capabilities and value types, see EdgeOptions object. You must pass the full name of the capability and a value with the correct type. To use capabilities that don't have an associated convenience method, use the AddAdditionalEdgeOption method. Options.AddExtensions("/path/to/extension.crx") After you configure the EdgeOptions object, pass EdgeOptions into the EdgeDriver constructor. Using the EdgeOptions classĬreate an instance of EdgeOptions, which provides convenience methods to set Microsoft Edge-specific capabilities. For more information, see Choose a WebDriver testing framework. To learn more about how to configure capabilities, consult the documentation for your preferred WebDriver testing framework. For example, Selenium configures capabilities through the EdgeOptions class. WebDriver testing frameworks (such as Selenium) provide language bindings which typically have convenience methods so you don't need to configure the JSON map yourself. This article describes all supported capabilities for Microsoft Edge and provides details about passing the capabilities to EdgeDriver sessions.Ĭapabilities are passed to a WebDriver session as a JSON map, but it is not necessary or recommended to set them this way. To learn about starting a new EdgeDriver session, see Automating Microsoft Edge. ![]() Capabilities are options that you can use to customize and configure an EdgeDriver session.
0 Comments
Leave a Reply. |