/** * @return Lead */ public function add() { $this->test->byXPath("//a[@title='Create Lead']")->click(); $this->waitPageToLoad(); $this->waitForAjax(); $lead = new Lead($this->test); return $lead->init(); }
public function entityNew() { $lead = new Lead($this->test); return $lead->init(); }