phpunit selenium select with assign value -
when assign value not work
var $title = "name=order[contact][title]" ; var $title_val = "label=mr" ; public function fillcustomerinfo() { $this->select($this->title, $title_val); return $this; }
normal working
public function fillcustomerinfo() { $this->select("name=order[contact][title]","label=mr"); return $this;
}
so,how can assign value in function?
thanks in advance.
you can use this
var $title_val = "label=mr" ;
if call variable need use $this->title_val;
so.the correct code is
var $title = "name=order[contact][title]" ; var $title_val = "label=mr" ; public function fillcustomerinfo() { $this->select($this->title, $this->title_val); return $this; }
Comments
Post a Comment