Interface SupportsAppTopLevelWindowOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.String> getAppTopLevelWindow()
      Get the hexadecimal handle of an existing application top level window to attach to.
      default T setAppTopLevelWindow​(java.lang.String identifier)
      Set the hexadecimal handle of an existing application top level window to attach to, for example 0x12345 (should be of string type).
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Field Detail

      • APP_TOP_LEVEL_WINDOW_OPTION

        static final java.lang.String APP_TOP_LEVEL_WINDOW_OPTION
        See Also:
        Constant Field Values
    • Method Detail

      • setAppTopLevelWindow

        default T setAppTopLevelWindow​(java.lang.String identifier)
        Set the hexadecimal handle of an existing application top level window to attach to, for example 0x12345 (should be of string type). Either this capability or app one must be provided on session startup.
        Parameters:
        identifier - E.g. "0x12345".
        Returns:
        self instance for chaining.
      • getAppTopLevelWindow

        default java.util.Optional<java.lang.String> getAppTopLevelWindow()
        Get the hexadecimal handle of an existing application top level window to attach to.
        Returns:
        Top level window handle.