public function submitForm($xpath) {
    $element = $this->findElement($xpath, 1);
    $tagName = $this->browser->tagName($element["page_id"], $element["ids"][0]);
    if (strcmp(strtolower($tagName), "form") !== 0) {
      throw new DriverException("Can not submit something that is not a form");
    }
    $this->browser->trigger($element["page_id"], $element["ids"][0], "submit");
  }
public function submitForm($xpath) {
    $element = $this->findElement($xpath, 1);
    $tagName = $this->browser->tagName($element["page_id"], $element["ids"][0]);
    if (strcmp(strtolower($tagName), "form") !== 0) {
      throw new DriverException("Can not submit something that is not a form");
    }
    $this->browser->trigger($element["page_id"], $element["ids"][0], "submit");
  }
public function submitForm ( $ xpath ) { $ element = $ this -> findElement ( $ xpath , 1 ) ; $ tagName = $ this -> browser -> tagName ( $ element [ "page_id" ] , $ element [ "ids" ] [ 0 ] ) ; if ( strcmp ( strtolower ( $ tagName ) , "form" ) !== 0 ) { throw new DriverException ( "Can not submit something that is not a form" ) ; } $ this -> browser -> trigger ( $ element [ "page_id" ] , $ element [ "ids" ] [ 0 ] , "submit" ) ; }
Submits a form given an xpath selector
@param string $xpath
@throws DriverException
Submits a form given an xpath selector