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

info.dollarx.custommatchers.scalatest.IsPresent.scala Maven / Gradle / Ivy

There is a newer version: 0.35
Show newest version
package info.dollarx.custommatchers.scalatest

import info.dollarx.{Path, Browser}
import org.scalatest.matchers.{MatchResult, BeMatcher}


class IsPresent {
  def in(browser: Browser): BeMatcher[Path] = new BeMatcher[Path]{
    def apply(left: Path) =
      MatchResult(
        browser.isPresent(left),
        left.toString + " is expected to be present, but is absent",
        left.toString + " is expected to be absent, but is present"
      )
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy