All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.loyada.jdollarxexample.HasElement.scala Maven / Gradle / Ivy

There is a newer version: 0.35
Show newest version
package com.github.loyada.dollarx.custommatchers.scalatest

import com.github.loyada.dollarx.util.StringUtil.wrap
import com.github.loyada.dollarx.{PathParsers, Path, Browser}
import org.scalatest.matchers.{Matcher, MatchResult}

case class HasElement(path: Path) extends  Matcher[Browser] {
  def apply(browser: Browser) = MatchResult(
                   browser.isPresent(path),
                   wrap(path) + " is expected to be present, but is absent",
                   wrap(path) + " is expected to be absent, but is present")
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy