sealed trait Query extends Product with Serializable
This trait is part of ScalaTest's Selenium DSL. Please see the documentation for
WebBrowser for an overview of the Selenium DSL.
Subclasses of this trait define different ways of querying for elements, enabling syntax such as the following:
click on id("q")
         ^
- Source
- WebBrowser.scala
- Alphabetic
- By Inheritance
- Query
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- 
      
      
      
        
      
    
      
        abstract 
        val
      
      
        by: By
      
      
      The Selenium Byfor this query.
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        canEqual(that: Any): Boolean
      
      
      - Definition Classes
- Equals
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        productArity: Int
      
      
      - Definition Classes
- Product
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        productElement(n: Int): Any
      
      
      - Definition Classes
- Product
 
- 
      
      
      
        
      
    
      
        abstract 
        val
      
      
        queryString: String
      
      
      The query string for this query. The query string for this query. For example, the query string for id("q")is"q".
Concrete Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        element(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Element
      
      
      Returns the first Elementselected by this query, or throwsTestFailedExceptionif noElementis selected.Returns the first Elementselected by this query, or throwsTestFailedExceptionif noElementis selected.The class of the Elementreturned will be a subtype ofElementif appropriate. For example, if this query selects a text field, the class of the returnedElementwill beTextField.- driver
- the - WebDriverwith which to drive the browser
- returns
- the - Elementselected by this query
 - Exceptions thrown
- TestFailedExceptionif nothing is selected by this query
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        findAllElements(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Iterator[Element]
      
      
      Returns an Iteratorover allElements selected by this query.Returns an Iteratorover allElements selected by this query.The class of the Elements produced by the returnedIteratorwill be a subtypes ofElementif appropriate. For example, if anElementrepresenting a text field is returned by theIterator, the class of the returnedElementwill beTextField.If no Elementsare selected by this query, this method will return an emptyIteratorwill be returned.- driver
- the - WebDriverwith which to drive the browser
- returns
- the - Iteratorover all- Elements selected by this query
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        findElement(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Option[Element]
      
      
      Returns the first Elementselected by this query, wrapped in aSome, orNoneif noElementis selected.Returns the first Elementselected by this query, wrapped in aSome, orNoneif noElementis selected.The class of the Elementreturned will be a subtype ofElementif appropriate. For example, if this query selects a text field, the class of the returnedElementwill beTextField.- driver
- the - WebDriverwith which to drive the browser
- returns
- the - Elementselected by this query, wrapped in a- Some, or- Noneif no- Elementis selected
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        productIterator: Iterator[Any]
      
      
      - Definition Classes
- Product
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        productPrefix: String
      
      
      - Definition Classes
- Product
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        webElement(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): WebElement
      
      
      Returns the first WebElementselected by this query, or throwsTestFailedExceptionif noWebElementis selected.Returns the first WebElementselected by this query, or throwsTestFailedExceptionif noWebElementis selected.- driver
- the - WebDriverwith which to drive the browser
- returns
- the - WebElementselected by this query
 - Exceptions thrown
- TestFailedExceptionif nothing is selected by this query