com.hp.lft.sdk.web

Class BrowserDescription

  • All Implemented Interfaces:
    CloneableObject, Description, com.hp.lft.sdk.internal.MapHolder, java.lang.Cloneable


    public class BrowserDescription
    extends PropertiesDescription
    implements com.hp.lft.sdk.internal.MapHolder
    The description of a Web Browser test object.
    • Field Summary

      • Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

        properties
    • Constructor Summary

      Constructor and Description
      BrowserDescription()
      Initializes a new instance of the BrowserDescription class.
    • Method Summary

      Modifier and TypeMethod and Description
      protected voidcloneTo(java.lang.Object clonedObject) 
      static BrowserDescriptionfromMap(java.util.Map<java.lang.String,java.lang.Object> props)
      This method creates a new instance of BrowserDescription and initializes it with the given props map.
      java.lang.Objectget(java.lang.String capability)
      Returns the current value of a BrowserDescription capability.
      java.lang.StringgetBrowserTypeAsString()
      Returns the String value representation of Type.
      java.util.Map<java.lang.String,java.lang.Object>getMap()
      For internal use only.
      StringPropertygetOpenTitle()
      Returns the browser's initial title when first opened.
      StringPropertygetOpenUrl()
      Returns the URL from which the browser is first opened.
      StringPropertygetTitle()
      Returns the browser's title.
      BrowserTypegetType()
      Returns the type of the Browser.
      StringPropertygetUrl()
      Returns the current URL of the browser tab.
      voidset(java.lang.String capability, java.lang.Object value)
      Sets a BrowserDescription capability to the given value.
      voidsetOpenTitle(java.lang.String openTitle)
      Sets the browser's initial title when first opened.
      voidsetOpenTitle(StringProperty openTitle)
      Sets the browser's initial title when first opened.
      voidsetOpenUrl(java.lang.String openURL)
      Sets the URL from which the browser is first opened.
      voidsetOpenUrl(StringProperty openURL)
      Sets the URL from which the browser is first opened.
      voidsetTitle(java.lang.String title)
      Sets the browser's title.
      voidsetTitle(StringProperty title)
      Sets the browser's title.
      voidsetType(BrowserType type)
      Sets the type of the Browser.
      voidsetType(java.lang.String type)
      Sets the wanted type of browser for launching.
      voidsetUrl(java.lang.String url)
      Sets the current URL of the browser tab.
      voidsetUrl(StringProperty url)
      Sets the current URL of the browser tab.
      • Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

        getValueAs, getValueAsStringProperty, insertValue
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BrowserDescription

        public BrowserDescription()
        Initializes a new instance of the BrowserDescription class.
    • Method Detail

      • setOpenTitle

        public void setOpenTitle(StringProperty openTitle)
        Sets the browser's initial title when first opened.
        Parameters:
        openTitle - a StringProperty(or RegExpProperty) representing the browser's initial title when first opened.
      • setOpenTitle

        public void setOpenTitle(java.lang.String openTitle)
        Sets the browser's initial title when first opened.
        Parameters:
        openTitle - the browser's initial title when first opened.
      • getOpenTitle

        public StringProperty getOpenTitle()
        Returns the browser's initial title when first opened.
        Returns:
        the browser's initial title when first opened.
      • setOpenUrl

        public void setOpenUrl(StringProperty openURL)
        Sets the URL from which the browser is first opened.
        Parameters:
        openURL - a StringProperty(or RegExpProperty) representing the URL from which the browser is first opened.
      • setOpenUrl

        public void setOpenUrl(java.lang.String openURL)
        Sets the URL from which the browser is first opened.
        Parameters:
        openURL - the URL from which the browser is first opened.
      • getOpenUrl

        public StringProperty getOpenUrl()
        Returns the URL from which the browser is first opened.
        Returns:
        the URL from which the browser is first opened.
      • setUrl

        public void setUrl(StringProperty url)
        Sets the current URL of the browser tab.
        Parameters:
        url - a StringProperty(or RegExpProperty) representing the current URL of the browser tab.
      • setUrl

        public void setUrl(java.lang.String url)
        Sets the current URL of the browser tab.
        Parameters:
        url - the current URL of the browser tab.
      • getUrl

        public StringProperty getUrl()
        Returns the current URL of the browser tab.
        Returns:
        the current URL of the browser tab.
      • setTitle

        public void setTitle(StringProperty title)
        Sets the browser's title.
        Parameters:
        title - a StringProperty(or RegExpProperty) representing the browser's title.
      • setTitle

        public void setTitle(java.lang.String title)
        Sets the browser's title.
        Parameters:
        title - the browser's title.
      • getTitle

        public StringProperty getTitle()
        Returns the browser's title.
        Returns:
        the browser's title.
      • setType

        public void setType(BrowserType type)
        Sets the type of the Browser.
        Parameters:
        type - the type of the Browser.
      • setType

        public void setType(java.lang.String type)
        Sets the wanted type of browser for launching.
        Parameters:
        type - the wanted type of browser for launching.
      • getType

        public BrowserType getType()
        Returns the type of the Browser.
        Returns:
        the type of the Browser.
      • set

        public void set(java.lang.String capability,
                        java.lang.Object value)
                 throws GeneralLeanFtException
        Sets a BrowserDescription capability to the given value.
        Parameters:
        capability - the name of the capability to set value for.
        value - the new value of the capability.
        Throws:
        GeneralLeanFtException - if the set operation fails.
      • getMap

        public java.util.Map<java.lang.String,java.lang.Object> getMap()
        For internal use only.
        Specified by:
        getMap in interface com.hp.lft.sdk.internal.MapHolder
        Returns:
        for internal use only.
      • getBrowserTypeAsString

        public java.lang.String getBrowserTypeAsString()
        Returns the String value representation of Type.
        Returns:
        the String value representation of Type.
      • cloneTo

        protected void cloneTo(java.lang.Object clonedObject)
                        throws java.lang.CloneNotSupportedException
        Overrides:
        cloneTo in class com.hp.lft.sdk.internal.PropertiesDescriptionBase
        Throws:
        java.lang.CloneNotSupportedException