mink - Behat Attachment File does not work -


i using ‘selenium2’ driver , trying test file upload form input field getting error as

exception thrown (//html/descendant-or-self::*[@id = 'imageid'])[1] 'd:/looks.jpg' not exist on file system 

my code in featurecontex.php bellow

>     $page = $this->getsession()->getpage(); >     $element = $page->find('css', '#imageid'); >     $element->attachfile('d:/looks.jpg'); 

did define files_path? mine in behat.yml. if have defined you'd provide filename should exist in folder defined.

  default:     context:       class:  'featurecontext'     extensions:       behat\minkextension\extension:         files_path: '/var/www/project/public/images'         base_url:  'https://local.dev' 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -