public function find($method, $selector) {
    $result = $this->command('find', $method, $selector);
    $found["page_id"] = $result["page_id"];
    foreach ($result["ids"] as $id) {
      $found["ids"][] = $id;
    }
    return $found;
  }
public function find($method, $selector) {
    $result = $this->command('find', $method, $selector);
    $found["page_id"] = $result["page_id"];
    foreach ($result["ids"] as $id) {
      $found["ids"][] = $id;
    }
    return $found;
  }
public function find ( $ method , $ selector ) { $ result = $ this -> command ( 'find' , $ method , $ selector ) ; $ found [ "page_id" ] = $ result [ "page_id" ] ; foreach ( $ result [ "ids" ] as $ id ) { $ found [ "ids" ] [ ] = $ id ; } return $ found ; }
Find elements given a method and a selector
@param $method
@param $selector
@return array
Find elements given a method and a selector