I am using behat/mink/sahi. I am trying to attach file to an input type element using the xpath because i can not locate it with the normal function that behat already has. My full_path is already in the behat.yml file
/**
* @When I attach file
*/
public function iAttachFile()
{
$page = $this->getSession()->getPage();
$element = $page->find('xpath', "//input[@data-field-type='logo']");
$element->attachFile('full_path');
}