getSession()->getPage()->find("css", $arg1); # if (!$findName) { # throw new Exception($arg1 . " could not be found"); # } else { # $findName->click(); # } } /** * @Given /^there are clients:$/ */ public function thereAreClients(TableNode $table) { foreach ($table->getHash() as $row => $val) { echo $val['name'] . " - " . $val['Teléfono'] ."\n"; } # css=a[id$='_id_sufix']; } /** * @Given /^espero a que se cargue$/ */ public function esperoAQueSeCargue() { $this->getSession()->wait(5000); } /** * @Given /^relleno el campo "([^"]*)" con "([^"]*)"$/ */ public function rellenoElCampoCon($arg1, $arg2) { # $rem = ("[id*=$arg1]"); # echo $rem; $dom = new DomDocument; //load the html into the object $dom->loadHTML($html); //discard white space $dom->preserveWhiteSpace = false; $input_tags = $dom->getElementsByTagName('input'); echo $input_tags; # $element = getElementById("[id*=$arg1]"); # $element = $page->findAll('id', $arg1); } // // Place your definition and hook methods here: // // /** // * @Given /^I have done something with "([^"]*)"$/ // */ // public function iHaveDoneSomethingWith($argument) // { // doSomethingWith($argument); // } // }