Example #1
0
 /**
  * @return self
  */
 public function click()
 {
     $this->crawler->click($this->id);
     return $this;
 }
Example #2
0
 /**
  * @param  CrawlerInterface $crawler
  * @param  string           $id
  * @param  string           $text
  * @return string
  */
 public function text(CrawlerInterface $crawler, $id, $text)
 {
     return false !== mb_stripos($crawler->getText($id), (string) $text);
 }