Trait

net.ruippeixotog.scalascraper.model

Element

Related Doc: package model

Permalink

trait Element extends AnyRef

A representation of a HTML DOM element.

Elements can be obtained by obtaining Document instances (for example, through a net.ruippeixotog.scalascraper.browser.Browser) and using one of its several methods. They provide several methods for traversing and retrieving infomation from the DOM of the page in which they are.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Element
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def attr(name: String): String

    Permalink

    Returns the value associated with an attribute of this element.

    Returns the value associated with an attribute of this element.

    name

    the name of the attribute

    returns

    the value associated with the given attribute.

  2. abstract def attrs: Map[String, String]

    Permalink

    The map of attributes of this element.

  3. abstract def childNodes: Iterable[Node]

    Permalink

    The list of child nodes of this element.

  4. abstract def children: Iterable[Element]

    Permalink

    The list of children of this element.

  5. abstract def hasAttr(name: String): Boolean

    Permalink

    Checks if an attribute is defined in this element.

    Checks if an attribute is defined in this element.

    name

    the name of the attribute

    returns

    true if the attribute is defined, false otherwise

  6. abstract def innerHtml: String

    Permalink

    The HTML representation of the content inside this element as a string.

  7. abstract def outerHtml: String

    Permalink

    The HTML representation of this element as a string.

  8. abstract def parent: Option[Element]

    Permalink

    The element of this element.

  9. abstract def select(query: String): ElementQuery

    Permalink

    Executes a query on this element using a CSS selector.

    Executes a query on this element using a CSS selector.

    query

    the CSS selector used to select elements to be returned

    returns

    an ElementQuery instance representing the sequence of resulting elements

  10. abstract def siblingNodes: Iterable[Node]

    Permalink

    The list of sibling nodes of this element.

  11. abstract def siblings: Iterable[Element]

    Permalink

    The list of siblings of this element.

  12. abstract def tagName: String

    Permalink

    The tag name of this element.

  13. abstract def text: String

    Permalink

    The text content inside this element.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped