Pseudo

object Pseudo
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

case object Active extends Single

Selects the active link.

Selects the active link.

case object After extends Single

Insert content after every <p> element.

Insert content after every <p> element.

final case class AttrExists(name: String) extends Single

Selects all elements with a name attribute.

Selects all elements with a name attribute.

final case class AttrSelector(name: String, value: String, op: String) extends Single
case object Before extends Single

Insert content before every <p> element.

Insert content before every <p> element.

object ChainOps extends ChainOps[Pseudo]
Companion
class
trait ChainOps[Out]

Trait providing a nice chaining DSL.

Trait providing a nice chaining DSL.

Companion
object
case object Checked extends Single

Selects every checked <input> element.

Selects every checked <input> element.

final case class Composite extends Pseudo
final case class Custom(cssValue: String, pseudoType: PseudoType) extends Single
case object Disabled extends Single

Selects every disabled <input> element.

Selects every disabled <input> element.

case object Empty extends Single

Selects every <p> element that has no children.

Selects every <p> element that has no children.

case object Enabled extends Single

Selects every enabled <input> element.

Selects every enabled <input> element.

case object FirstChild extends Single

Selects every <p> elements that is the first child of its parent.

Selects every <p> elements that is the first child of its parent.

case object FirstLetter extends Single

Selects the first letter of every <p> element.

Selects the first letter of every <p> element.

case object FirstLine extends Single

Selects the first line of every <p> element.

Selects the first line of every <p> element.

case object FirstOfType extends Single

Selects every <p> element that is the first <p> element of its parent.

Selects every <p> element that is the first <p> element of its parent.

case object Focus extends Single

Selects the <input> element that has focus.

Selects the <input> element that has focus.

case object Hover extends Single

Selects links on mouse over.

Selects links on mouse over.

case object InRange extends Single

Selects <input> elements with a value within a specified range.

Selects <input> elements with a value within a specified range.

case object Invalid extends Single

Selects all <input> elements with an invalid value.

Selects all <input> elements with an invalid value.

final case class Lang(language: String) extends Single

Selects every <p> element with a lang attribute value starting with "it".

Selects every <p> element with a lang attribute value starting with "it".

case object LastChild extends Single

Selects every <p> elements that is the last child of its parent.

Selects every <p> elements that is the last child of its parent.

case object LastOfType extends Single

Selects every <p> element that is the last <p> element of its parent.

Selects every <p> element that is the last <p> element of its parent.

case object Link extends Single

Selects all unvisited link.

Selects all unvisited link.

final case class Not(selector: String) extends Single

Selects every element that is not a <p> element.

Selects every element that is not a <p> element.

Companion
object
object Not
Companion
class
final case class NthChild(query: NthQuery) extends NthChildBase

Selects every <p> element that is the second child of its parent.

Selects every <p> element that is the second child of its parent.

object NthChildBase
Companion
class
sealed abstract class NthChildBase(cls: String, query: NthQuery) extends Single
Companion
object
final case class NthLastChild(query: NthQuery) extends NthChildBase

Selects every <p> element that is the second child of its parent, counting from the last child.

Selects every <p> element that is the second child of its parent, counting from the last child.

final case class NthLastOfType(query: NthQuery) extends NthChildBase

Selects every <p> element that is the second <p> element of its parent, counting from the last child.

Selects every <p> element that is the second <p> element of its parent, counting from the last child.

final case class NthOfType(query: NthQuery) extends NthChildBase

Selects every <p> element that is the second <p> element of its parent.

Selects every <p> element that is the second <p> element of its parent.

case object OnlyChild extends Single

Selects every <p> element that is the only child of its parent.

Selects every <p> element that is the only child of its parent.

case object OnlyOfType extends Single

Selects every <p> element that is the only <p> element of its parent.

Selects every <p> element that is the only <p> element of its parent.

case object Optional extends Single

Selects <input> elements with no "required" attribute.

Selects <input> elements with no "required" attribute.

case object OutOfRange extends Single

Selects <input> elements with a value outside a specified range.

Selects <input> elements with a value outside a specified range.

case object ReadOnly extends Single

Selects <input> elements with a "readonly" attribute specified.

Selects <input> elements with a "readonly" attribute specified.

case object ReadWrite extends Single

Selects <input> elements with no "readonly" attribute.

Selects <input> elements with no "readonly" attribute.

case object Required extends Single

Selects <input> elements with a "required" attribute specified.

Selects <input> elements with a "required" attribute specified.

case object Selection extends Single

Selects the portion of an element that is selected by a user .

Selects the portion of an element that is selected by a user .

sealed abstract class Single(val cssValue: String, val pseudoType: PseudoType) extends Pseudo

A single Pseudo instance. Not a composite.

A single Pseudo instance. Not a composite.

''(Note: Not may have a nested value but is not a composite.''

case object Target extends Single

Selects the current active #news element (clicked on a URL containing that anchor name).

Selects the current active #news element (clicked on a URL containing that anchor name).

case object Valid extends Single

Selects all <input> elements with a valid value.

Selects all <input> elements with a valid value.

case object Visited extends Single

Selects all visited link.

Selects all visited link.

Types

type NthQuery = String

Value members

Concrete methods

def Attr(name: String, value: String): AttrSelector

Selects all elements with a name="value".

Selects all elements with a name="value".

def AttrContains(name: String, value: String): AttrSelector

Selects all elements with a name containing the word value.

Selects all elements with a name containing the word value.

def AttrEndsWith(name: String, value: String): AttrSelector

Selects all elements with a name ends with value.

Selects all elements with a name ends with value.

def AttrStartsWith(name: String, value: String): AttrSelector

Selects all elements with a name starting with value.

Selects all elements with a name starting with value.

Implicits

Implicits

implicit val order: Ordering[Single]
implicit def univEq: UnivEq[Single]