public function setFile($path)
    {
        $this->con->executeStep(
            sprintf('_sahi._setFile(%s, %s)', $this->getAccessor(), json_encode($path))
        );
    }
public function setFile($path)
    {
        $this->con->executeStep(
            sprintf('_sahi._setFile(%s, %s)', $this->getAccessor(), json_encode($path))
        );
    }
public function setFile ( $ path ) { $ this -> con -> executeStep ( sprintf ( '_sahi._setFile(%s, %s)' , $ this -> getAccessor ( ) , json_encode ( $ path ) ) ) ; }
Emulate setting filepath in a file input.

@param string $path file path
Emulate setting filepath in a file input .