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